Lines Matching full:cp
14 static void call_path__init(struct call_path *cp, struct call_path *parent, in call_path__init() argument
17 cp->parent = parent; in call_path__init()
18 cp->sym = sym; in call_path__init()
19 cp->ip = sym ? 0 : ip; in call_path__init()
20 cp->db_id = 0; in call_path__init()
21 cp->in_kernel = in_kernel; in call_path__init()
22 RB_CLEAR_NODE(&cp->rb_node); in call_path__init()
23 cp->children = RB_ROOT; in call_path__init()
55 struct call_path *cp; in call_path__new() local
70 cp = &cpb->cp[n]; in call_path__new()
72 call_path__init(cp, parent, sym, ip, in_kernel); in call_path__new()
74 return cp; in call_path__new()
83 struct call_path *cp; in call_path__findnew() local
95 cp = rb_entry(node_parent, struct call_path, rb_node); in call_path__findnew()
97 if (cp->sym == sym && cp->ip == ip) in call_path__findnew()
98 return cp; in call_path__findnew()
100 if (sym < cp->sym || (sym == cp->sym && ip < cp->ip)) in call_path__findnew()
106 cp = call_path__new(cpr, parent, sym, ip, in_kernel); in call_path__findnew()
107 if (!cp) in call_path__findnew()
110 rb_link_node(&cp->rb_node, node_parent, p); in call_path__findnew()
111 rb_insert_color(&cp->rb_node, &parent->children); in call_path__findnew()
113 return cp; in call_path__findnew()