Lines Matching defs:sample

43  * @ref: external reference (e.g. db_id of sample)
560 * Hardware sample records, created some time after the event occurred, need to
674 * Hardware sample records, created some time after the event occurred, need to
704 * User space sample: start copying branch entries when the
726 * Kernel space sample: start copying branch entries when the ip
859 struct perf_sample *sample,
868 if (sample->ip) {
869 ip = sample->ip;
871 } else if (sample->addr) {
872 ip = sample->addr;
881 return thread_stack__push_cp(ts, ip, sample->time, ref, cp,
886 struct perf_sample *sample, u64 ref)
888 u64 tm = sample->time;
904 struct perf_sample *sample,
914 u64 addr = sample->addr;
915 u64 tm = sample->time;
916 u64 ip = sample->ip;
921 err = thread_stack__pop_ks(thread, ts, sample, ref);
933 err = thread_stack__pop_ks(thread, ts, sample, ref);
1019 struct perf_sample *sample, u64 ref)
1032 ret_addr = sample->ip + sample->insn_len;
1034 return thread_stack__push_cp(ts, ret_addr, sample->time, ref, cp,
1051 struct perf_sample *sample,
1092 sample->addr, ts->kernel_start);
1103 struct perf_sample *sample,
1108 struct thread_stack *ts = thread__stack(thread, sample->cpu);
1119 ts = thread_stack__new(thread, sample->cpu, crp, true, 0);
1139 err = thread_stack__bottom(ts, sample, from_al, to_al, ref);
1145 ts->insn_count += sample->insn_cnt;
1146 ts->cyc_count += sample->cyc_cnt;
1147 ts->last_time = sample->time;
1149 if (sample->flags & PERF_IP_FLAG_CALL) {
1150 bool trace_end = sample->flags & PERF_IP_FLAG_TRACE_END;
1155 if (!sample->ip || !sample->addr)
1158 ret_addr = sample->ip + sample->insn_len;
1159 if (ret_addr == sample->addr)
1163 to_al->sym, sample->addr,
1165 err = thread_stack__push_cp(ts, ret_addr, sample->time, ref,
1177 } else if (sample->flags & PERF_IP_FLAG_RETURN) {
1178 if (!sample->addr) {
1182 if (!(sample->flags & return_from_kernel))
1186 return thread_stack__pop_ks(thread, ts, sample, ref);
1189 if (!sample->ip)
1194 ts->stack[ts->cnt - 1].ret_addr != sample->addr)
1195 return thread_stack__x86_retpoline(ts, sample, to_al);
1197 err = thread_stack__pop_cp(thread, ts, sample->addr,
1198 sample->time, ref, from_al->sym);
1202 err = thread_stack__no_call_return(thread, ts, sample,
1205 } else if (sample->flags & PERF_IP_FLAG_TRACE_BEGIN) {
1206 err = thread_stack__trace_begin(thread, ts, sample->time, ref);
1207 } else if (sample->flags & PERF_IP_FLAG_TRACE_END) {
1208 err = thread_stack__trace_end(ts, sample, ref);
1209 } else if (sample->flags & PERF_IP_FLAG_BRANCH &&
1222 to_al->sym, sample->addr,
1224 err = thread_stack__push_cp(ts, 0, sample->time, ref, cp, false,