Lines Matching full:sample
43 * @ref: external reference (e.g. db_id of sample)
561 * Hardware sample records, created some time after the event occurred, need to
675 * Hardware sample records, created some time after the event occurred, need to
705 * User space sample: start copying branch entries when the in thread_stack__br_sample_late()
727 * Kernel space sample: start copying branch entries when the ip in thread_stack__br_sample_late()
860 struct perf_sample *sample, in thread_stack__bottom() argument
869 if (sample->ip) { in thread_stack__bottom()
870 ip = sample->ip; in thread_stack__bottom()
872 } else if (sample->addr) { in thread_stack__bottom()
873 ip = sample->addr; in thread_stack__bottom()
882 return thread_stack__push_cp(ts, ip, sample->time, ref, cp, in thread_stack__bottom()
887 struct perf_sample *sample, u64 ref) in thread_stack__pop_ks() argument
889 u64 tm = sample->time; in thread_stack__pop_ks()
905 struct perf_sample *sample, in thread_stack__no_call_return() argument
915 u64 addr = sample->addr; in thread_stack__no_call_return()
916 u64 tm = sample->time; in thread_stack__no_call_return()
917 u64 ip = sample->ip; in thread_stack__no_call_return()
922 err = thread_stack__pop_ks(thread, ts, sample, ref); in thread_stack__no_call_return()
934 err = thread_stack__pop_ks(thread, ts, sample, ref); in thread_stack__no_call_return()
1020 struct perf_sample *sample, u64 ref) in thread_stack__trace_end() argument
1033 ret_addr = sample->ip + sample->insn_len; in thread_stack__trace_end()
1035 return thread_stack__push_cp(ts, ret_addr, sample->time, ref, cp, in thread_stack__trace_end()
1050 struct perf_sample *sample, in thread_stack__x86_retpoline() argument
1091 sample->addr, ts->kernel_start); in thread_stack__x86_retpoline()
1102 struct perf_sample *sample, in thread_stack__process() argument
1107 struct thread_stack *ts = thread__stack(thread, sample->cpu); in thread_stack__process()
1118 ts = thread_stack__new(thread, sample->cpu, crp, true, 0); in thread_stack__process()
1138 err = thread_stack__bottom(ts, sample, from_al, to_al, ref); in thread_stack__process()
1144 ts->insn_count += sample->insn_cnt; in thread_stack__process()
1145 ts->cyc_count += sample->cyc_cnt; in thread_stack__process()
1146 ts->last_time = sample->time; in thread_stack__process()
1148 if (sample->flags & PERF_IP_FLAG_CALL) { in thread_stack__process()
1149 bool trace_end = sample->flags & PERF_IP_FLAG_TRACE_END; in thread_stack__process()
1154 if (!sample->ip || !sample->addr) in thread_stack__process()
1157 ret_addr = sample->ip + sample->insn_len; in thread_stack__process()
1158 if (ret_addr == sample->addr) in thread_stack__process()
1162 to_al->sym, sample->addr, in thread_stack__process()
1164 err = thread_stack__push_cp(ts, ret_addr, sample->time, ref, in thread_stack__process()
1176 } else if (sample->flags & PERF_IP_FLAG_RETURN) { in thread_stack__process()
1177 if (!sample->addr) { in thread_stack__process()
1181 if (!(sample->flags & return_from_kernel)) in thread_stack__process()
1185 return thread_stack__pop_ks(thread, ts, sample, ref); in thread_stack__process()
1188 if (!sample->ip) in thread_stack__process()
1193 ts->stack[ts->cnt - 1].ret_addr != sample->addr) in thread_stack__process()
1194 return thread_stack__x86_retpoline(ts, sample, to_al); in thread_stack__process()
1196 err = thread_stack__pop_cp(thread, ts, sample->addr, in thread_stack__process()
1197 sample->time, ref, from_al->sym); in thread_stack__process()
1201 err = thread_stack__no_call_return(thread, ts, sample, in thread_stack__process()
1204 } else if (sample->flags & PERF_IP_FLAG_TRACE_BEGIN) { in thread_stack__process()
1205 err = thread_stack__trace_begin(thread, ts, sample->time, ref); in thread_stack__process()
1206 } else if (sample->flags & PERF_IP_FLAG_TRACE_END) { in thread_stack__process()
1207 err = thread_stack__trace_end(ts, sample, ref); in thread_stack__process()
1208 } else if (sample->flags & PERF_IP_FLAG_BRANCH && in thread_stack__process()
1221 to_al->sym, sample->addr, in thread_stack__process()
1223 err = thread_stack__push_cp(ts, 0, sample->time, ref, cp, false, in thread_stack__process()