cpumode 442 tools/perf/builtin-inject.c if (thread__find_map(thread, sample->cpumode, sample->ip, &al)) { cpumode 752 tools/perf/builtin-script.c thread__find_map_fb(thread, sample->cpumode, from, &alf); cpumode 753 tools/perf/builtin-script.c thread__find_map_fb(thread, sample->cpumode, to, &alt); cpumode 799 tools/perf/builtin-script.c thread__find_symbol_fb(thread, sample->cpumode, from, &alf); cpumode 800 tools/perf/builtin-script.c thread__find_symbol_fb(thread, sample->cpumode, to, &alt); cpumode 844 tools/perf/builtin-script.c if (thread__find_map_fb(thread, sample->cpumode, from, &alf) && cpumode 848 tools/perf/builtin-script.c if (thread__find_map_fb(thread, sample->cpumode, to, &alt) && cpumode 877 tools/perf/builtin-script.c bool *is64bit, u8 *cpumode, bool last) cpumode 888 tools/perf/builtin-script.c *cpumode = PERF_RECORD_MISC_KERNEL; cpumode 890 tools/perf/builtin-script.c *cpumode = PERF_RECORD_MISC_USER; cpumode 912 tools/perf/builtin-script.c if (!thread__find_map(thread, *cpumode, start, &al) || !al.map->dso) { cpumode 935 tools/perf/builtin-script.c static int print_srccode(struct thread *thread, u8 cpumode, uint64_t addr) cpumode 941 tools/perf/builtin-script.c thread__find_map(thread, cpumode, addr, &al); cpumode 971 tools/perf/builtin-script.c u8 cpumode, int cpu, struct symbol **lastsym, cpumode 979 tools/perf/builtin-script.c thread__find_map(thread, cpumode, addr, &al); cpumode 1036 tools/perf/builtin-script.c machine, thread, &x.is64bit, &x.cpumode, false); cpumode 1039 tools/perf/builtin-script.c x.cpumode, x.cpu, &lastsym, attr, fp); cpumode 1043 tools/perf/builtin-script.c printed += print_srccode(thread, x.cpumode, br->entries[nr - 1].from); cpumode 1055 tools/perf/builtin-script.c len = grab_bb(buffer, start, end, machine, thread, &x.is64bit, &x.cpumode, false); cpumode 1060 tools/perf/builtin-script.c len = grab_bb(buffer, start, end, machine, thread, &x.is64bit, &x.cpumode, false); cpumode 1069 tools/perf/builtin-script.c printed += ip__fprintf_sym(ip, thread, x.cpumode, x.cpu, &lastsym, attr, fp); cpumode 1074 tools/perf/builtin-script.c printed += print_srccode(thread, x.cpumode, ip); cpumode 1083 tools/perf/builtin-script.c print_srccode(thread, x.cpumode, ip); cpumode 1114 tools/perf/builtin-script.c len = grab_bb(buffer, start, end, machine, thread, &x.is64bit, &x.cpumode, true); cpumode 1115 tools/perf/builtin-script.c printed += ip__fprintf_sym(start, thread, x.cpumode, x.cpu, &lastsym, attr, fp); cpumode 1119 tools/perf/builtin-script.c machine, thread, &x.is64bit, &x.cpumode, false); cpumode 1125 tools/perf/builtin-script.c print_srccode(thread, x.cpumode, sample->ip); cpumode 1142 tools/perf/builtin-script.c print_srccode(thread, x.cpumode, start + off); cpumode 481 tools/perf/builtin-timechart.c u8 cpumode = PERF_RECORD_MISC_USER; cpumode 511 tools/perf/builtin-timechart.c cpumode = PERF_RECORD_MISC_HYPERVISOR; cpumode 514 tools/perf/builtin-timechart.c cpumode = PERF_RECORD_MISC_KERNEL; cpumode 517 tools/perf/builtin-timechart.c cpumode = PERF_RECORD_MISC_USER; cpumode 534 tools/perf/builtin-timechart.c if (thread__find_symbol(al.thread, cpumode, ip, &tal)) cpumode 769 tools/perf/builtin-top.c al.cpumode == PERF_RECORD_MISC_KERNEL) { cpumode 1157 tools/perf/builtin-top.c switch (sample.cpumode) { cpumode 2485 tools/perf/builtin-trace.c thread__find_symbol(thread, sample->cpumode, sample->ip, &al); cpumode 2497 tools/perf/builtin-trace.c thread__find_symbol(thread, sample->cpumode, sample->addr, &al); cpumode 2500 tools/perf/builtin-trace.c thread__find_symbol(thread, sample->cpumode, sample->addr, &al); cpumode 235 tools/perf/tests/code-reading.c static int read_object_code(u64 addr, size_t len, u8 cpumode, cpumode 250 tools/perf/tests/code-reading.c if (!thread__find_map(thread, cpumode, addr, &al) || !al.map->dso) { cpumode 251 tools/perf/tests/code-reading.c if (cpumode == PERF_RECORD_MISC_HYPERVISOR) { cpumode 335 tools/perf/tests/code-reading.c if (cpumode == PERF_RECORD_MISC_KERNEL || cpumode 336 tools/perf/tests/code-reading.c cpumode == PERF_RECORD_MISC_GUEST_KERNEL) { cpumode 391 tools/perf/tests/code-reading.c ret = read_object_code(sample.ip, READLEN, sample.cpumode, thread, state); cpumode 109 tools/perf/tests/hists_common.c .cpumode = PERF_RECORD_MISC_USER, cpumode 99 tools/perf/tests/hists_cumulate.c sample.cpumode = PERF_RECORD_MISC_USER; cpumode 76 tools/perf/tests/hists_filter.c sample.cpumode = PERF_RECORD_MISC_USER; cpumode 81 tools/perf/tests/hists_link.c sample.cpumode = PERF_RECORD_MISC_USER; cpumode 65 tools/perf/tests/hists_output.c sample.cpumode = PERF_RECORD_MISC_USER; cpumode 35 tools/perf/tests/kmod-path.c static int test_is_kernel_module(const char *path, int cpumode, bool expect) cpumode 38 tools/perf/tests/kmod-path.c (!!is_kernel_module(path, cpumode)) == (!!expect)); cpumode 40 tools/perf/tests/kmod-path.c path, cpumode, expect ? "true" : "false"); cpumode 55 tools/perf/util/build-id.c if (thread__find_map(thread, sample->cpumode, sample->ip, &al)) cpumode 1124 tools/perf/util/callchain.c al->cpumode = PERF_RECORD_MISC_KERNEL; cpumode 1127 tools/perf/util/callchain.c al->cpumode = PERF_RECORD_MISC_GUEST_KERNEL; cpumode 1132 tools/perf/util/callchain.c al->cpumode = PERF_RECORD_MISC_USER; cpumode 1135 tools/perf/util/callchain.c al->cpumode = PERF_RECORD_MISC_GUEST_USER; cpumode 1138 tools/perf/util/callchain.c al->cpumode = PERF_RECORD_MISC_HYPERVISOR; cpumode 641 tools/perf/util/cs-etm.c u8 cpumode; cpumode 653 tools/perf/util/cs-etm.c cpumode = cs_etm__cpu_mode(etmq, address); cpumode 660 tools/perf/util/cs-etm.c if (cpumode != PERF_RECORD_MISC_KERNEL) cpumode 665 tools/perf/util/cs-etm.c if (!thread__find_map(thread, cpumode, address, &al) || !al.map->dso) cpumode 1133 tools/perf/util/cs-etm.c sample.cpumode = event->sample.header.misc; cpumode 1194 tools/perf/util/cs-etm.c sample.cpumode = event->sample.header.misc; cpumode 232 tools/perf/util/dso.c bool is_kernel_module(const char *pathname, int cpumode) cpumode 235 tools/perf/util/dso.c int mode = cpumode & PERF_RECORD_MISC_CPUMODE_MASK; cpumode 237 tools/perf/util/dso.c WARN_ONCE(mode != cpumode, cpumode 239 tools/perf/util/dso.c cpumode); cpumode 256 tools/perf/util/dso.h bool is_kernel_module(const char *pathname, int cpumode); cpumode 14 tools/perf/util/dump-insn.h u8 cpumode; cpumode 457 tools/perf/util/event.c struct map *thread__find_map(struct thread *thread, u8 cpumode, u64 addr, cpumode 467 tools/perf/util/event.c al->cpumode = cpumode; cpumode 475 tools/perf/util/event.c if (cpumode == PERF_RECORD_MISC_KERNEL && perf_host) { cpumode 479 tools/perf/util/event.c } else if (cpumode == PERF_RECORD_MISC_USER && perf_host) { cpumode 481 tools/perf/util/event.c } else if (cpumode == PERF_RECORD_MISC_GUEST_KERNEL && perf_guest) { cpumode 485 tools/perf/util/event.c } else if (cpumode == PERF_RECORD_MISC_GUEST_USER && perf_guest) { cpumode 491 tools/perf/util/event.c if ((cpumode == PERF_RECORD_MISC_GUEST_USER || cpumode 492 tools/perf/util/event.c cpumode == PERF_RECORD_MISC_GUEST_KERNEL) && cpumode 495 tools/perf/util/event.c if ((cpumode == PERF_RECORD_MISC_USER || cpumode 496 tools/perf/util/event.c cpumode == PERF_RECORD_MISC_KERNEL) && cpumode 522 tools/perf/util/event.c struct map *thread__find_map_fb(struct thread *thread, u8 cpumode, u64 addr, cpumode 525 tools/perf/util/event.c struct map *map = thread__find_map(thread, cpumode, addr, al); cpumode 527 tools/perf/util/event.c u8 addr_cpumode = machine__addr_cpumode(machine, cpumode, addr); cpumode 529 tools/perf/util/event.c if (map || addr_cpumode == cpumode) cpumode 535 tools/perf/util/event.c struct symbol *thread__find_symbol(struct thread *thread, u8 cpumode, cpumode 539 tools/perf/util/event.c if (thread__find_map(thread, cpumode, addr, al)) cpumode 544 tools/perf/util/event.c struct symbol *thread__find_symbol_fb(struct thread *thread, u8 cpumode, cpumode 548 tools/perf/util/event.c if (thread__find_map_fb(thread, cpumode, addr, al)) cpumode 567 tools/perf/util/event.c thread__find_map(thread, sample->cpumode, sample->ip, al); cpumode 646 tools/perf/util/event.c thread__find_map_fb(thread, sample->cpumode, sample->addr, al); cpumode 135 tools/perf/util/event.h u8 cpumode; cpumode 1953 tools/perf/util/evsel.c data->cpumode = event->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; cpumode 1892 tools/perf/util/header.c u16 cpumode; cpumode 1900 tools/perf/util/header.c cpumode = bev->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; cpumode 1902 tools/perf/util/header.c switch (cpumode) { cpumode 241 tools/perf/util/hist.c unsigned int cpumode, u64 period) cpumode 243 tools/perf/util/hist.c switch (cpumode) { cpumode 640 tools/perf/util/hist.c he_stat__add_cpumode_period(&he->stat, al->cpumode, period); cpumode 642 tools/perf/util/hist.c he_stat__add_cpumode_period(he->stat_acc, al->cpumode, period); cpumode 698 tools/perf/util/hist.c .cpumode = al->cpumode, cpumode 285 tools/perf/util/intel-bts.c sample.cpumode = intel_bts_cpumode(bts, sample.ip); cpumode 298 tools/perf/util/intel-bts.c event.sample.header.misc = sample.cpumode; cpumode 526 tools/perf/util/intel-pt.c u8 cpumode; cpumode 536 tools/perf/util/intel-pt.c cpumode = intel_pt_cpumode(ptq->pt, *ip); cpumode 540 tools/perf/util/intel-pt.c if (cpumode != PERF_RECORD_MISC_KERNEL) cpumode 546 tools/perf/util/intel-pt.c if (!thread__find_map(thread, cpumode, *ip, &al) || !al.map->dso) cpumode 687 tools/perf/util/intel-pt.c u8 cpumode; cpumode 693 tools/perf/util/intel-pt.c cpumode = PERF_RECORD_MISC_USER; cpumode 699 tools/perf/util/intel-pt.c if (!thread__find_map(thread, cpumode, ip, &al) || !al.map->dso) cpumode 1227 tools/perf/util/intel-pt.c sample->cpumode = intel_pt_cpumode(pt, sample->ip); cpumode 1232 tools/perf/util/intel-pt.c event->sample.header.misc = sample->cpumode; cpumode 1709 tools/perf/util/intel-pt.c u8 cpumode; cpumode 1731 tools/perf/util/intel-pt.c cpumode = sample.ip < ptq->pt->kernel_start ? cpumode 1735 tools/perf/util/intel-pt.c event->sample.header.misc = cpumode | PERF_RECORD_MISC_EXACT_IP; cpumode 1737 tools/perf/util/intel-pt.c sample.cpumode = cpumode; cpumode 482 tools/perf/util/jitdump.c sample.cpumode = PERF_RECORD_MISC_USER; cpumode 574 tools/perf/util/jitdump.c sample.cpumode = PERF_RECORD_MISC_USER; cpumode 1659 tools/perf/util/machine.c if (sample->cpumode == PERF_RECORD_MISC_GUEST_KERNEL || cpumode 1660 tools/perf/util/machine.c sample->cpumode == PERF_RECORD_MISC_KERNEL) { cpumode 1712 tools/perf/util/machine.c if (sample->cpumode == PERF_RECORD_MISC_GUEST_KERNEL || cpumode 1713 tools/perf/util/machine.c sample->cpumode == PERF_RECORD_MISC_KERNEL) { cpumode 1973 tools/perf/util/machine.c ip__resolve_data(al->thread, al->cpumode, &mi->daddr, cpumode 2009 tools/perf/util/machine.c u8 *cpumode, cpumode 2023 tools/perf/util/machine.c if (!cpumode) { cpumode 2029 tools/perf/util/machine.c *cpumode = PERF_RECORD_MISC_HYPERVISOR; cpumode 2032 tools/perf/util/machine.c *cpumode = PERF_RECORD_MISC_KERNEL; cpumode 2035 tools/perf/util/machine.c *cpumode = PERF_RECORD_MISC_USER; cpumode 2049 tools/perf/util/machine.c thread__find_symbol(thread, *cpumode, ip, &al); cpumode 2177 tools/perf/util/machine.c u8 cpumode = PERF_RECORD_MISC_USER; cpumode 2242 tools/perf/util/machine.c root_al, &cpumode, ip, cpumode 2258 tools/perf/util/machine.c u8 *cpumode, int ent) cpumode 2267 tools/perf/util/machine.c root_al, cpumode, ip, cpumode 2286 tools/perf/util/machine.c u8 cpumode = PERF_RECORD_MISC_USER; cpumode 2383 tools/perf/util/machine.c &cpumode, chain->nr - first_call); cpumode 2405 tools/perf/util/machine.c root_al, &cpumode, j); cpumode 2412 tools/perf/util/machine.c root_al, &cpumode, ip, cpumode 2676 tools/perf/util/machine.c u8 machine__addr_cpumode(struct machine *machine, u8 cpumode, u64 addr) cpumode 2678 tools/perf/util/machine.c u8 addr_cpumode = cpumode; cpumode 2685 tools/perf/util/machine.c switch (cpumode) { cpumode 104 tools/perf/util/machine.h u8 machine__addr_cpumode(struct machine *machine, u8 cpumode, u64 addr); cpumode 510 tools/perf/util/s390-cpumsf.c .cpumode = PERF_RECORD_MISC_CPUMODE_UNKNOWN, cpumode 518 tools/perf/util/s390-cpumsf.c sample.cpumode = basic->P ? PERF_RECORD_MISC_USER cpumode 521 tools/perf/util/s390-cpumsf.c sample.cpumode = basic->P ? PERF_RECORD_MISC_GUEST_USER cpumode 525 tools/perf/util/s390-cpumsf.c sample.cpumode = basic->P ? PERF_RECORD_MISC_GUEST_USER cpumode 528 tools/perf/util/s390-cpumsf.c sample.cpumode = basic->P ? PERF_RECORD_MISC_USER cpumode 532 tools/perf/util/s390-cpumsf.c event.sample.header.misc = sample.cpumode; cpumode 537 tools/perf/util/s390-cpumsf.c sample.tid, sample.cpumode, sample.cpu); cpumode 501 tools/perf/util/scripting-engines/trace-event-python.c thread__find_map_fb(thread, sample->cpumode, cpumode 507 tools/perf/util/scripting-engines/trace-event-python.c thread__find_map_fb(thread, sample->cpumode, cpumode 583 tools/perf/util/scripting-engines/trace-event-python.c thread__find_symbol_fb(thread, sample->cpumode, cpumode 589 tools/perf/util/scripting-engines/trace-event-python.c thread__find_symbol_fb(thread, sample->cpumode, cpumode 1299 tools/perf/util/session.c ((sample->cpumode == PERF_RECORD_MISC_GUEST_KERNEL) || cpumode 1300 tools/perf/util/session.c (sample->cpumode == PERF_RECORD_MISC_GUEST_USER))) { cpumode 1208 tools/perf/util/sort.c if (left->cpumode > right->cpumode) return -1; cpumode 1209 tools/perf/util/sort.c if (left->cpumode < right->cpumode) return 1; cpumode 1241 tools/perf/util/sort.c if ((left->cpumode != PERF_RECORD_MISC_KERNEL) && cpumode 1277 tools/perf/util/sort.c if ((he->cpumode != PERF_RECORD_MISC_KERNEL) && cpumode 104 tools/perf/util/sort.h u8 cpumode; cpumode 128 tools/perf/util/symbol.h u8 cpumode; cpumode 60 tools/perf/util/synthetic-events.c .cpumode = event->header.misc & PERF_RECORD_MISC_CPUMODE_MASK, cpumode 439 tools/perf/util/thread.c u8 cpumode = PERF_RECORD_MISC_USER; cpumode 444 tools/perf/util/thread.c cpumode = PERF_RECORD_MISC_KERNEL; cpumode 446 tools/perf/util/thread.c if (!thread__find_map(thread, cpumode, ip, &al) || !al.map->dso || cpumode 99 tools/perf/util/thread.h struct map *thread__find_map(struct thread *thread, u8 cpumode, u64 addr, cpumode 101 tools/perf/util/thread.h struct map *thread__find_map_fb(struct thread *thread, u8 cpumode, u64 addr, cpumode 104 tools/perf/util/thread.h struct symbol *thread__find_symbol(struct thread *thread, u8 cpumode, cpumode 106 tools/perf/util/thread.h struct symbol *thread__find_symbol_fb(struct thread *thread, u8 cpumode,