Lines Matching refs:cpr

58 	struct call_path_root *cpr;  member
352 struct call_path_root *cpr; in call_path_root__new() local
354 cpr = zalloc(sizeof(struct call_path_root)); in call_path_root__new()
355 if (!cpr) in call_path_root__new()
357 call_path__init(&cpr->call_path, NULL, NULL, 0, false); in call_path_root__new()
358 INIT_LIST_HEAD(&cpr->blocks); in call_path_root__new()
359 return cpr; in call_path_root__new()
362 static void call_path_root__free(struct call_path_root *cpr) in call_path_root__free() argument
366 list_for_each_entry_safe(pos, n, &cpr->blocks, node) { in call_path_root__free()
370 free(cpr); in call_path_root__free()
373 static struct call_path *call_path__new(struct call_path_root *cpr, in call_path__new() argument
382 if (cpr->next < cpr->sz) { in call_path__new()
383 cpb = list_last_entry(&cpr->blocks, struct call_path_block, in call_path__new()
389 list_add_tail(&cpb->node, &cpr->blocks); in call_path__new()
390 cpr->sz += CALL_PATH_BLOCK_SIZE; in call_path__new()
393 n = cpr->next++ & CALL_PATH_BLOCK_MASK; in call_path__new()
401 static struct call_path *call_path__findnew(struct call_path_root *cpr, in call_path__findnew() argument
414 return call_path__new(cpr, parent, sym, ip, in_kernel); in call_path__findnew()
430 cp = call_path__new(cpr, parent, sym, ip, in_kernel); in call_path__findnew()
449 crp->cpr = call_path_root__new(); in call_return_processor__new()
450 if (!crp->cpr) in call_return_processor__new()
464 call_path_root__free(crp->cpr); in call_return_processor__free()
541 struct call_path_root *cpr = ts->crp->cpr; in thread_stack__bottom() local
556 cp = call_path__findnew(cpr, &cpr->call_path, sym, ip, in thread_stack__bottom()
571 struct call_path_root *cpr = ts->crp->cpr; in thread_stack__no_call_return() local
588 cp = call_path__findnew(cpr, &cpr->call_path, in thread_stack__no_call_return()
610 parent = &cpr->call_path; in thread_stack__no_call_return()
613 cp = call_path__findnew(cpr, parent, from_al->sym, sample->ip, in thread_stack__no_call_return()
652 struct call_path_root *cpr = ts->crp->cpr; 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()
718 struct call_path_root *cpr = ts->crp->cpr; in thread_stack__process() local
729 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, in thread_stack__process()