Lines Matching refs:cp
22 static void call_path__init(struct call_path *cp, struct call_path *parent, in call_path__init() argument
25 cp->parent = parent; in call_path__init()
26 cp->sym = sym; in call_path__init()
27 cp->ip = sym ? 0 : ip; in call_path__init()
28 cp->db_id = 0; in call_path__init()
29 cp->in_kernel = in_kernel; in call_path__init()
30 RB_CLEAR_NODE(&cp->rb_node); in call_path__init()
31 cp->children = RB_ROOT; in call_path__init()
63 struct call_path *cp; in call_path__new() local
78 cp = &cpb->cp[n]; in call_path__new()
80 call_path__init(cp, parent, sym, ip, in_kernel); in call_path__new()
82 return cp; in call_path__new()
91 struct call_path *cp; in call_path__findnew() local
103 cp = rb_entry(node_parent, struct call_path, rb_node); in call_path__findnew()
105 if (cp->sym == sym && cp->ip == ip) in call_path__findnew()
106 return cp; in call_path__findnew()
108 if (sym < cp->sym || (sym == cp->sym && ip < cp->ip)) in call_path__findnew()
114 cp = call_path__new(cpr, parent, sym, ip, in_kernel); in call_path__findnew()
115 if (!cp) in call_path__findnew()
118 rb_link_node(&cp->rb_node, node_parent, p); in call_path__findnew()
119 rb_insert_color(&cp->rb_node, &parent->children); in call_path__findnew()
121 return cp; in call_path__findnew()