Lines Matching refs:sample

529 				struct perf_sample *sample,  in thread_stack__bottom()  argument
538 if (sample->ip) { in thread_stack__bottom()
539 ip = sample->ip; in thread_stack__bottom()
541 } else if (sample->addr) { in thread_stack__bottom()
542 ip = sample->addr; in thread_stack__bottom()
553 return thread_stack__push_cp(thread->ts, ip, sample->time, ref, cp, in thread_stack__bottom()
559 struct perf_sample *sample, in thread_stack__no_call_return() argument
568 if (sample->ip >= ks && sample->addr < ks) { in thread_stack__no_call_return()
572 sample->time, ref, in thread_stack__no_call_return()
581 to_al->sym, sample->addr, in thread_stack__no_call_return()
585 return thread_stack__push_cp(ts, 0, sample->time, ref, in thread_stack__no_call_return()
588 } else if (thread_stack__in_kernel(ts) && sample->ip < ks) { in thread_stack__no_call_return()
592 sample->time, ref, in thread_stack__no_call_return()
605 cp = call_path__findnew(cpr, parent, from_al->sym, sample->ip, in thread_stack__no_call_return()
610 err = thread_stack__push_cp(ts, sample->addr, sample->time, ref, cp, in thread_stack__no_call_return()
615 return thread_stack__pop_cp(thread, ts, sample->addr, sample->time, ref, in thread_stack__no_call_return()
642 struct perf_sample *sample, u64 ref) in thread_stack__trace_end() argument
657 ret_addr = sample->ip + sample->insn_len; in thread_stack__trace_end()
659 return thread_stack__push_cp(ts, ret_addr, sample->time, ref, cp, in thread_stack__trace_end()
664 struct perf_sample *sample, in thread_stack__process() argument
700 err = thread_stack__bottom(thread, ts, sample, from_al, to_al, in thread_stack__process()
707 ts->last_time = sample->time; in thread_stack__process()
709 if (sample->flags & PERF_IP_FLAG_CALL) { in thread_stack__process()
714 if (!sample->ip || !sample->addr) in thread_stack__process()
717 ret_addr = sample->ip + sample->insn_len; in thread_stack__process()
718 if (ret_addr == sample->addr) in thread_stack__process()
722 to_al->sym, sample->addr, in thread_stack__process()
726 err = thread_stack__push_cp(ts, ret_addr, sample->time, ref, in thread_stack__process()
728 } else if (sample->flags & PERF_IP_FLAG_RETURN) { in thread_stack__process()
729 if (!sample->ip || !sample->addr) in thread_stack__process()
732 err = thread_stack__pop_cp(thread, ts, sample->addr, in thread_stack__process()
733 sample->time, ref, from_al->sym); in thread_stack__process()
737 err = thread_stack__no_call_return(thread, ts, sample, in thread_stack__process()
740 } else if (sample->flags & PERF_IP_FLAG_TRACE_BEGIN) { in thread_stack__process()
741 err = thread_stack__trace_begin(thread, ts, sample->time, ref); in thread_stack__process()
742 } else if (sample->flags & PERF_IP_FLAG_TRACE_END) { in thread_stack__process()
743 err = thread_stack__trace_end(ts, sample, ref); in thread_stack__process()