Lines Matching refs:cpr

58 	struct call_path_root *cpr;  member
344 struct call_path_root *cpr; in call_path_root__new() local
346 cpr = zalloc(sizeof(struct call_path_root)); in call_path_root__new()
347 if (!cpr) in call_path_root__new()
349 call_path__init(&cpr->call_path, NULL, NULL, 0, false); in call_path_root__new()
350 INIT_LIST_HEAD(&cpr->blocks); in call_path_root__new()
351 return cpr; in call_path_root__new()
354 static void call_path_root__free(struct call_path_root *cpr) in call_path_root__free() argument
358 list_for_each_entry_safe(pos, n, &cpr->blocks, node) { in call_path_root__free()
362 free(cpr); in call_path_root__free()
365 static struct call_path *call_path__new(struct call_path_root *cpr, in call_path__new() argument
374 if (cpr->next < cpr->sz) { in call_path__new()
375 cpb = list_last_entry(&cpr->blocks, struct call_path_block, in call_path__new()
381 list_add_tail(&cpb->node, &cpr->blocks); in call_path__new()
382 cpr->sz += CALL_PATH_BLOCK_SIZE; in call_path__new()
385 n = cpr->next++ & CALL_PATH_BLOCK_MASK; in call_path__new()
393 static struct call_path *call_path__findnew(struct call_path_root *cpr, in call_path__findnew() argument
406 return call_path__new(cpr, parent, sym, ip, in_kernel); in call_path__findnew()
422 cp = call_path__new(cpr, parent, sym, ip, in_kernel); in call_path__findnew()
441 crp->cpr = call_path_root__new(); in call_return_processor__new()
442 if (!crp->cpr) in call_return_processor__new()
456 call_path_root__free(crp->cpr); in call_return_processor__free()
533 struct call_path_root *cpr = ts->crp->cpr; in thread_stack__bottom() local
548 cp = call_path__findnew(cpr, &cpr->call_path, sym, ip, in thread_stack__bottom()
563 struct call_path_root *cpr = ts->crp->cpr; in thread_stack__no_call_return() local
580 cp = call_path__findnew(cpr, &cpr->call_path, in thread_stack__no_call_return()
602 parent = &cpr->call_path; in thread_stack__no_call_return()
605 cp = call_path__findnew(cpr, parent, from_al->sym, sample->ip, in thread_stack__no_call_return()
644 struct call_path_root *cpr = ts->crp->cpr; 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()
710 struct call_path_root *cpr = ts->crp->cpr; in thread_stack__process() local
721 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, in thread_stack__process()