Lines Matching defs:thread
16 #include "util/thread.h"
31 #include "util/thread-stack.h"
775 struct thread *thread,
793 const char *comm = thread ? thread__comm_str(thread) : ":-1";
917 struct thread *thread,
938 thread__find_map_fb(thread, sample->cpumode, from, &alf);
939 thread__find_map_fb(thread, sample->cpumode, to, &alt);
956 struct thread *thread,
975 thread__find_symbol_fb(thread, sample->cpumode, from, &alf);
976 thread__find_symbol_fb(thread, sample->cpumode, to, &alt);
994 struct thread *thread,
1013 if (thread__find_map_fb(thread, sample->cpumode, from, &alf) &&
1017 if (thread__find_map_fb(thread, sample->cpumode, to, &alt) &&
1037 struct machine *machine, struct thread *thread,
1075 if (!thread__find_map(thread, *cpumode, start, &al) || (dso = map__dso(al.map)) == NULL) {
1144 static int print_srccode(struct thread *thread, u8 cpumode, uint64_t addr)
1150 thread__find_map(thread, cpumode, addr, &al);
1154 thread__srccode_state(thread));
1188 static int ip__fprintf_sym(uint64_t addr, struct thread *thread,
1196 thread__find_map(thread, cpumode, addr, &al);
1229 struct thread *thread,
1249 x.thread = thread;
1257 machine, thread, &x.is64bit, &x.cpumode, false);
1259 printed += ip__fprintf_sym(entries[nr - 1].from, thread,
1265 printed += print_srccode(thread, x.cpumode, entries[nr - 1].from);
1277 len = grab_bb(buffer, start, end, machine, thread, &x.is64bit, &x.cpumode, false);
1282 len = grab_bb(buffer, start, end, machine, thread, &x.is64bit, &x.cpumode, false);
1291 printed += ip__fprintf_sym(ip, thread, x.cpumode, x.cpu, &lastsym, attr, fp);
1296 printed += print_srccode(thread, x.cpumode, ip);
1308 print_srccode(thread, x.cpumode, ip);
1339 len = grab_bb(buffer, start, end, machine, thread, &x.is64bit, &x.cpumode, true);
1340 printed += ip__fprintf_sym(start, thread, x.cpumode, x.cpu, &lastsym, attr, fp);
1344 machine, thread, &x.is64bit, &x.cpumode, false);
1354 print_srccode(thread, x.cpumode, sample->ip);
1374 print_srccode(thread, x.cpumode, start + off);
1381 struct thread *thread,
1391 thread__resolve(thread, &al, sample);
1410 struct thread *thread,
1420 if (!addr_al->thread)
1421 thread__resolve(thread, addr_al, sample);
1440 struct thread *thread,
1446 size_t depth = thread_stack__depth(thread, sample->cpu);
1457 if (thread__ts(thread) && sample->flags & PERF_IP_FLAG_RETURN)
1460 name = resolve_branch_sym(sample, evsel, thread, al, addr_al, &ip);
1490 struct thread *thread __maybe_unused,
1495 void script_fetch_insn(struct perf_sample *sample, struct thread *thread,
1499 arch_fetch_insn(sample, thread, machine);
1504 struct thread *thread,
1509 script_fetch_insn(sample, thread, machine);
1521 printed += perf_sample__fprintf_brstackinsn(sample, thread, attr, machine, fp);
1542 struct thread *thread,
1553 printed += perf_sample__fprintf_callindent(sample, evsel, thread, al, addr_al, fp);
1562 if (thread__resolve_callchain(al->thread, cursor, evsel,
1585 printed += perf_sample__fprintf_addr(sample, thread, attr, fp);
1593 printed += perf_sample__fprintf_insn(sample, attr, thread, machine, fp);
1597 thread__srccode_state(thread));
2022 struct thread *thread;
2036 perf_sample__fprintf_start(NULL, mctx->sample, mctx->thread, mctx->evsel,
2051 perf_sample__fprintf_start(NULL, mctx->sample, mctx->thread, mctx->evsel,
2057 struct thread *thread,
2068 .thread = thread,
2097 struct thread *thread,
2101 int depth = thread_stack__depth(thread, sample->cpu);
2106 if (thread__filter(thread)) {
2107 if (depth <= thread__filter_entry_depth(thread)) {
2108 thread__set_filter(thread, false);
2115 const char *name = resolve_branch_sym(sample, evsel, thread, al, addr_al,
2125 thread__set_filter(thread, true);
2126 thread__set_filter_entry_depth(thread, depth);
2143 struct thread *thread = al->thread;
2156 perf_sample__fprintf_start(script, sample, thread, evsel,
2175 perf_sample__fprintf_bts(sample, evsel, thread, al, addr_al, machine, fp);
2188 perf_sample__fprintf_addr(sample, thread, attr, fp);
2217 thread__set_lbr_stitch_enable(al->thread, true);
2221 if (thread__resolve_callchain(al->thread, cursor, evsel,
2238 perf_sample__fprintf_brstack(sample, thread, attr, fp);
2240 perf_sample__fprintf_brstacksym(sample, thread, attr, fp);
2242 perf_sample__fprintf_brstackoff(sample, thread, attr, fp);
2246 perf_sample__fprintf_insn(sample, attr, thread, machine, fp);
2263 thread__srccode_state(thread)))
2268 perf_sample__fprint_metric(script, thread, evsel, sample, fp);
2279 int idx, thread;
2289 for (thread = 0; thread < nthreads; thread++) {
2293 counts = perf_counts(counter->counts, idx, thread);
2297 perf_thread_map__pid(counter->core.threads, thread),
2359 /* Set thread to NULL to indicate addr_al and al are not initialized */
2389 if (!al.thread && machine__resolve(machine, &al, sample) < 0) {
2399 if (!show_event(sample, evsel, al.thread, &al, &addr_al))
2417 if (!addr_al.thread)
2418 thread__resolve(al.thread, &addr_al, sample);
2510 struct thread *thread = NULL;
2523 thread = machine__findnew_thread(machine, pid, tid);
2526 perf_sample__fprintf_start(script, sample, thread, evsel,
2532 thread__put(thread);
3706 pr_warning("Extra thread map event, ignoring.\n");