Lines Matching refs:cp
32 struct call_path cp[CALL_PATH_BLOCK_SIZE]; member
79 struct call_path *cp; member
192 return ts->stack[ts->cnt - 1].cp->in_kernel; in thread_stack__in_kernel()
208 cr.cp = tse->cp; in thread_stack__call_return()
330 static void call_path__init(struct call_path *cp, struct call_path *parent, in call_path__init() argument
333 cp->parent = parent; in call_path__init()
334 cp->sym = sym; in call_path__init()
335 cp->ip = sym ? 0 : ip; in call_path__init()
336 cp->db_id = 0; in call_path__init()
337 cp->in_kernel = in_kernel; in call_path__init()
338 RB_CLEAR_NODE(&cp->rb_node); in call_path__init()
339 cp->children = RB_ROOT; in call_path__init()
371 struct call_path *cp; in call_path__new() local
386 cp = &cpb->cp[n]; in call_path__new()
388 call_path__init(cp, parent, sym, ip, in_kernel); in call_path__new()
390 return cp; in call_path__new()
399 struct call_path *cp; in call_path__findnew() local
411 cp = rb_entry(node_parent, struct call_path, rb_node); in call_path__findnew()
413 if (cp->sym == sym && cp->ip == ip) in call_path__findnew()
414 return cp; in call_path__findnew()
416 if (sym < cp->sym || (sym == cp->sym && ip < cp->ip)) in call_path__findnew()
422 cp = call_path__new(cpr, parent, sym, ip, in_kernel); in call_path__findnew()
423 if (!cp) in call_path__findnew()
426 rb_link_node(&cp->rb_node, node_parent, p); in call_path__findnew()
427 rb_insert_color(&cp->rb_node, &parent->children); in call_path__findnew()
429 return cp; in call_path__findnew()
462 u64 timestamp, u64 ref, struct call_path *cp, in thread_stack__push_cp() argument
479 tse->cp = cp; in thread_stack__push_cp()
497 if (tse->cp->sym == sym) in thread_stack__pop_cp()
534 struct call_path *cp; in thread_stack__bottom() local
548 cp = call_path__findnew(cpr, &cpr->call_path, sym, ip, in thread_stack__bottom()
550 if (!cp) in thread_stack__bottom()
553 return thread_stack__push_cp(thread->ts, ip, sample->time, ref, cp, in thread_stack__bottom()
564 struct call_path *cp, *parent; in thread_stack__no_call_return() local
580 cp = call_path__findnew(cpr, &cpr->call_path, in thread_stack__no_call_return()
583 if (!cp) in thread_stack__no_call_return()
586 cp, true); in thread_stack__no_call_return()
600 parent = ts->stack[ts->cnt - 1].cp; in thread_stack__no_call_return()
605 cp = call_path__findnew(cpr, parent, from_al->sym, sample->ip, in thread_stack__no_call_return()
607 if (!cp) in thread_stack__no_call_return()
610 err = thread_stack__push_cp(ts, sample->addr, sample->time, ref, cp, in thread_stack__no_call_return()
631 if (tse->cp->sym == NULL && tse->cp->ip == 0) { in thread_stack__trace_begin()
645 struct call_path *cp; in thread_stack__trace_end() local
652 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, NULL, 0, in thread_stack__trace_end()
654 if (!cp) in thread_stack__trace_end()
659 return thread_stack__push_cp(ts, ret_addr, sample->time, ref, cp, in thread_stack__trace_end()
711 struct call_path *cp; in thread_stack__process() local
721 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, in thread_stack__process()
724 if (!cp) in thread_stack__process()
727 cp, false); in thread_stack__process()