Lines Matching defs:thread
16 #include "util/thread.h"
30 #include "util/thread-stack.h"
693 struct thread *thread,
704 const char *comm = thread ? thread__comm_str(thread) : ":-1";
817 struct thread *thread,
836 thread__find_map_fb(thread, sample->cpumode, from, &alf);
837 thread__find_map_fb(thread, sample->cpumode, to, &alt);
865 struct thread *thread,
884 thread__find_symbol_fb(thread, sample->cpumode, from, &alf);
885 thread__find_symbol_fb(thread, sample->cpumode, to, &alt);
911 struct thread *thread,
930 if (thread__find_map_fb(thread, sample->cpumode, from, &alf) &&
934 if (thread__find_map_fb(thread, sample->cpumode, to, &alt) &&
962 struct machine *machine, struct thread *thread,
998 if (!thread__find_map(thread, *cpumode, start, &al) || !al.map->dso) {
1063 static int print_srccode(struct thread *thread, u8 cpumode, uint64_t addr)
1069 thread__find_map(thread, cpumode, addr, &al);
1073 &thread->srccode_state);
1098 static int ip__fprintf_sym(uint64_t addr, struct thread *thread,
1107 thread__find_map(thread, cpumode, addr, &al);
1137 struct thread *thread,
1157 x.thread = thread;
1165 machine, thread, &x.is64bit, &x.cpumode, false);
1167 printed += ip__fprintf_sym(entries[nr - 1].from, thread,
1172 printed += print_srccode(thread, x.cpumode, entries[nr - 1].from);
1184 len = grab_bb(buffer, start, end, machine, thread, &x.is64bit, &x.cpumode, false);
1189 len = grab_bb(buffer, start, end, machine, thread, &x.is64bit, &x.cpumode, false);
1198 printed += ip__fprintf_sym(ip, thread, x.cpumode, x.cpu, &lastsym, attr, fp);
1203 printed += print_srccode(thread, x.cpumode, ip);
1212 print_srccode(thread, x.cpumode, ip);
1243 len = grab_bb(buffer, start, end, machine, thread, &x.is64bit, &x.cpumode, true);
1244 printed += ip__fprintf_sym(start, thread, x.cpumode, x.cpu, &lastsym, attr, fp);
1248 machine, thread, &x.is64bit, &x.cpumode, false);
1254 print_srccode(thread, x.cpumode, sample->ip);
1271 print_srccode(thread, x.cpumode, start + off);
1278 struct thread *thread,
1287 thread__resolve(thread, &al, sample);
1308 struct thread *thread,
1318 thread__resolve(thread, &addr_al, sample);
1337 struct thread *thread,
1341 size_t depth = thread_stack__depth(thread, sample->cpu);
1352 if (thread->ts && sample->flags & PERF_IP_FLAG_RETURN)
1355 name = resolve_branch_sym(sample, evsel, thread, al, &ip);
1385 struct thread *thread __maybe_unused,
1392 struct thread *thread,
1398 arch_fetch_insn(sample, thread, machine);
1410 printed += perf_sample__fprintf_brstackinsn(sample, thread, attr, machine, fp);
1431 struct thread *thread,
1441 printed += perf_sample__fprintf_callindent(sample, evsel, thread, al, fp);
1449 thread__resolve_callchain(al->thread, &callchain_cursor, evsel,
1471 printed += perf_sample__fprintf_addr(sample, thread, attr, fp);
1479 printed += perf_sample__fprintf_insn(sample, attr, thread, machine, fp);
1483 &thread->srccode_state);
1794 struct thread *thread;
1808 perf_sample__fprintf_start(NULL, mctx->sample, mctx->thread, mctx->evsel,
1823 perf_sample__fprintf_start(NULL, mctx->sample, mctx->thread, mctx->evsel,
1829 struct thread *thread,
1839 .thread = thread,
1873 struct thread *thread,
1876 int depth = thread_stack__depth(thread, sample->cpu);
1881 if (thread->filter) {
1882 if (depth <= thread->filter_entry_depth) {
1883 thread->filter = false;
1890 const char *name = resolve_branch_sym(sample, evsel, thread, al,
1900 thread->filter = true;
1901 thread->filter_entry_depth = depth;
1917 struct thread *thread = al->thread;
1926 if (!show_event(sample, evsel, thread, al))
1934 perf_sample__fprintf_start(script, sample, thread, evsel,
1953 perf_sample__fprintf_bts(sample, evsel, thread, al, machine, fp);
1966 perf_sample__fprintf_addr(sample, thread, attr, fp);
1978 al->thread->lbr_stitch_enable = true;
1981 thread__resolve_callchain(al->thread, &callchain_cursor, evsel,
1997 perf_sample__fprintf_brstack(sample, thread, attr, fp);
1999 perf_sample__fprintf_brstacksym(sample, thread, attr, fp);
2001 perf_sample__fprintf_brstackoff(sample, thread, attr, fp);
2005 perf_sample__fprintf_insn(sample, attr, thread, machine, fp);
2016 &thread->srccode_state))
2021 perf_sample__fprint_metric(script, thread, evsel, sample, fp);
2033 int cpu, thread;
2045 for (thread = 0; thread < nthreads; thread++) {
2049 counts = perf_counts(counter->counts, cpu, thread);
2053 perf_thread_map__pid(counter->core.threads, thread),
2227 struct thread *thread = NULL;
2240 thread = machine__findnew_thread(machine, pid, tid);
2243 perf_sample__fprintf_start(script, sample, thread, evsel,
2249 thread__put(thread);
3330 pr_warning("Extra thread map event, ignoring.\n");