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()
338 static void call_path__init(struct call_path *cp, struct call_path *parent, in call_path__init() argument
341 cp->parent = parent; in call_path__init()
342 cp->sym = sym; in call_path__init()
343 cp->ip = sym ? 0 : ip; in call_path__init()
344 cp->db_id = 0; in call_path__init()
345 cp->in_kernel = in_kernel; in call_path__init()
346 RB_CLEAR_NODE(&cp->rb_node); in call_path__init()
347 cp->children = RB_ROOT; in call_path__init()
379 struct call_path *cp; in call_path__new() local
394 cp = &cpb->cp[n]; in call_path__new()
396 call_path__init(cp, parent, sym, ip, in_kernel); in call_path__new()
398 return cp; in call_path__new()
407 struct call_path *cp; in call_path__findnew() local
419 cp = rb_entry(node_parent, struct call_path, rb_node); in call_path__findnew()
421 if (cp->sym == sym && cp->ip == ip) in call_path__findnew()
422 return cp; in call_path__findnew()
424 if (sym < cp->sym || (sym == cp->sym && ip < cp->ip)) in call_path__findnew()
430 cp = call_path__new(cpr, parent, sym, ip, in_kernel); in call_path__findnew()
431 if (!cp) in call_path__findnew()
434 rb_link_node(&cp->rb_node, node_parent, p); in call_path__findnew()
435 rb_insert_color(&cp->rb_node, &parent->children); in call_path__findnew()
437 return cp; in call_path__findnew()
470 u64 timestamp, u64 ref, struct call_path *cp, in thread_stack__push_cp() argument
487 tse->cp = cp; in thread_stack__push_cp()
505 if (tse->cp->sym == sym) in thread_stack__pop_cp()
542 struct call_path *cp; in thread_stack__bottom() local
556 cp = call_path__findnew(cpr, &cpr->call_path, sym, ip, in thread_stack__bottom()
558 if (!cp) in thread_stack__bottom()
561 return thread_stack__push_cp(thread->ts, ip, sample->time, ref, cp, in thread_stack__bottom()
572 struct call_path *cp, *parent; in thread_stack__no_call_return() local
588 cp = call_path__findnew(cpr, &cpr->call_path, in thread_stack__no_call_return()
591 if (!cp) in thread_stack__no_call_return()
594 cp, true); in thread_stack__no_call_return()
608 parent = ts->stack[ts->cnt - 1].cp; in thread_stack__no_call_return()
613 cp = call_path__findnew(cpr, parent, from_al->sym, sample->ip, in thread_stack__no_call_return()
615 if (!cp) in thread_stack__no_call_return()
618 err = thread_stack__push_cp(ts, sample->addr, sample->time, ref, cp, in thread_stack__no_call_return()
639 if (tse->cp->sym == NULL && tse->cp->ip == 0) { in thread_stack__trace_begin()
653 struct call_path *cp; in thread_stack__trace_end() local
660 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, NULL, 0, in thread_stack__trace_end()
662 if (!cp) in thread_stack__trace_end()
667 return thread_stack__push_cp(ts, ret_addr, sample->time, ref, cp, in thread_stack__trace_end()
719 struct call_path *cp; in thread_stack__process() local
729 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, in thread_stack__process()
732 if (!cp) in thread_stack__process()
735 cp, false); in thread_stack__process()