Lines Matching refs:sample
537 struct perf_sample *sample, in thread_stack__bottom() argument
546 if (sample->ip) { in thread_stack__bottom()
547 ip = sample->ip; in thread_stack__bottom()
549 } else if (sample->addr) { in thread_stack__bottom()
550 ip = sample->addr; in thread_stack__bottom()
561 return thread_stack__push_cp(thread->ts, ip, sample->time, ref, cp, in thread_stack__bottom()
567 struct perf_sample *sample, in thread_stack__no_call_return() argument
576 if (sample->ip >= ks && sample->addr < ks) { in thread_stack__no_call_return()
580 sample->time, ref, in thread_stack__no_call_return()
589 to_al->sym, sample->addr, in thread_stack__no_call_return()
593 return thread_stack__push_cp(ts, 0, sample->time, ref, in thread_stack__no_call_return()
596 } else if (thread_stack__in_kernel(ts) && sample->ip < ks) { in thread_stack__no_call_return()
600 sample->time, ref, in thread_stack__no_call_return()
613 cp = call_path__findnew(cpr, parent, from_al->sym, sample->ip, in thread_stack__no_call_return()
618 err = thread_stack__push_cp(ts, sample->addr, sample->time, ref, cp, in thread_stack__no_call_return()
623 return thread_stack__pop_cp(thread, ts, sample->addr, sample->time, ref, in thread_stack__no_call_return()
650 struct perf_sample *sample, u64 ref) in thread_stack__trace_end() argument
665 ret_addr = sample->ip + sample->insn_len; in thread_stack__trace_end()
667 return thread_stack__push_cp(ts, ret_addr, sample->time, ref, cp, in thread_stack__trace_end()
672 struct perf_sample *sample, in thread_stack__process() argument
708 err = thread_stack__bottom(thread, ts, sample, from_al, to_al, in thread_stack__process()
715 ts->last_time = sample->time; in thread_stack__process()
717 if (sample->flags & PERF_IP_FLAG_CALL) { in thread_stack__process()
722 if (!sample->ip || !sample->addr) in thread_stack__process()
725 ret_addr = sample->ip + sample->insn_len; in thread_stack__process()
726 if (ret_addr == sample->addr) in thread_stack__process()
730 to_al->sym, sample->addr, in thread_stack__process()
734 err = thread_stack__push_cp(ts, ret_addr, sample->time, ref, in thread_stack__process()
736 } else if (sample->flags & PERF_IP_FLAG_RETURN) { in thread_stack__process()
737 if (!sample->ip || !sample->addr) in thread_stack__process()
740 err = thread_stack__pop_cp(thread, ts, sample->addr, in thread_stack__process()
741 sample->time, ref, from_al->sym); in thread_stack__process()
745 err = thread_stack__no_call_return(thread, ts, sample, in thread_stack__process()
748 } else if (sample->flags & PERF_IP_FLAG_TRACE_BEGIN) { in thread_stack__process()
749 err = thread_stack__trace_begin(thread, ts, sample->time, ref); in thread_stack__process()
750 } else if (sample->flags & PERF_IP_FLAG_TRACE_END) { in thread_stack__process()
751 err = thread_stack__trace_end(ts, sample, ref); in thread_stack__process()