Lines Matching full:cpr
28 struct call_path_root *cpr; in call_path_root__new() local
30 cpr = zalloc(sizeof(struct call_path_root)); in call_path_root__new()
31 if (!cpr) in call_path_root__new()
33 call_path__init(&cpr->call_path, NULL, NULL, 0, false); in call_path_root__new()
34 INIT_LIST_HEAD(&cpr->blocks); in call_path_root__new()
35 return cpr; in call_path_root__new()
38 void call_path_root__free(struct call_path_root *cpr) in call_path_root__free() argument
42 list_for_each_entry_safe(pos, n, &cpr->blocks, node) { in call_path_root__free()
46 free(cpr); in call_path_root__free()
49 static struct call_path *call_path__new(struct call_path_root *cpr, in call_path__new() argument
58 if (cpr->next < cpr->sz) { in call_path__new()
59 cpb = list_last_entry(&cpr->blocks, struct call_path_block, in call_path__new()
65 list_add_tail(&cpb->node, &cpr->blocks); in call_path__new()
66 cpr->sz += CALL_PATH_BLOCK_SIZE; in call_path__new()
69 n = cpr->next++ & CALL_PATH_BLOCK_MASK; in call_path__new()
77 struct call_path *call_path__findnew(struct call_path_root *cpr, in call_path__findnew() argument
90 return call_path__new(cpr, parent, sym, ip, in_kernel); in call_path__findnew()
106 cp = call_path__new(cpr, parent, sym, ip, in_kernel); in call_path__findnew()