| /linux-6.15/tools/perf/util/ |
| H A D | event.c | 631 al->cpumode = cpumode; in thread__find_map() 637 if (cpumode == PERF_RECORD_MISC_KERNEL && perf_host) { in thread__find_map() 641 } else if (cpumode == PERF_RECORD_MISC_USER && perf_host) { in thread__find_map() 652 if ((cpumode == PERF_RECORD_MISC_GUEST_USER || in thread__find_map() 653 cpumode == PERF_RECORD_MISC_GUEST_KERNEL) && in thread__find_map() 656 if ((cpumode == PERF_RECORD_MISC_USER || in thread__find_map() 657 cpumode == PERF_RECORD_MISC_KERNEL) && in thread__find_map() 690 if (map || addr_cpumode == cpumode) in thread__find_map_fb() 700 if (thread__find_map(thread, cpumode, addr, al)) in thread__find_symbol() 709 if (thread__find_map_fb(thread, cpumode, addr, al)) in thread__find_symbol_fb() [all …]
|
| H A D | print_insn.c | 84 static size_t print_insn_x86(struct thread *thread, u8 cpumode, cs_insn *insn, in print_insn_x86() argument 95 thread__find_symbol(thread, cpumode, op->imm, &al)) { in print_insn_x86() 122 ssize_t fprintf_insn_asm(struct machine *machine, struct thread *thread, u8 cpumode, in fprintf_insn_asm() argument 140 printed = print_insn_x86(thread, cpumode, &insn[0], print_opts, fp); in fprintf_insn_asm() 161 printed = fprintf_insn_asm(machine, thread, sample->cpumode, is64bit, in sample__fprintf_insn_asm()
|
| H A D | machine.c | 2062 u8 *cpumode, in add_callchain_ip() argument 2080 if (!cpumode) { in add_callchain_ip() 2241 u8 cpumode = PERF_RECORD_MISC_USER; in lbr_callchain_add_kernel_ip() local 2335 root_al, &cpumode, ip, in lbr_callchain_add_lbr_ip() 2360 root_al, &cpumode, ip, in lbr_callchain_add_lbr_ip() 2375 root_al, &cpumode, ip, in lbr_callchain_add_lbr_ip() 2389 root_al, &cpumode, ip, in lbr_callchain_add_lbr_ip() 2653 root_al, cpumode, ip, in find_prev_cpumode() 2843 root_al, &cpumode, ip, in thread__resolve_callchain_sample() 3125 u8 addr_cpumode = cpumode; in machine__addr_cpumode() [all …]
|
| H A D | data-convert-json.c | 159 u8 cpumode = PERF_RECORD_MISC_USER; in process_sample_event() local 200 cpumode = PERF_RECORD_MISC_HYPERVISOR; in process_sample_event() 203 cpumode = PERF_RECORD_MISC_KERNEL; in process_sample_event() 206 cpumode = PERF_RECORD_MISC_USER; in process_sample_event() 222 ok = thread__find_symbol(al.thread, cpumode, ip, &tal); in process_sample_event()
|
| H A D | thread.h | 118 struct map *thread__find_map(struct thread *thread, u8 cpumode, u64 addr, 120 struct map *thread__find_map_fb(struct thread *thread, u8 cpumode, u64 addr, 123 struct symbol *thread__find_symbol(struct thread *thread, u8 cpumode, 125 struct symbol *thread__find_symbol_fb(struct thread *thread, u8 cpumode,
|
| H A D | event.h | 398 static inline bool perf_event_header__cpumode_is_guest(u8 cpumode) in perf_event_header__cpumode_is_guest() argument 400 return cpumode == PERF_RECORD_MISC_GUEST_KERNEL || in perf_event_header__cpumode_is_guest() 401 cpumode == PERF_RECORD_MISC_GUEST_USER; in perf_event_header__cpumode_is_guest()
|
| H A D | dump-insn.h | 15 u8 cpumode; member
|
| H A D | s390-cpumsf.c | 511 .cpumode = PERF_RECORD_MISC_CPUMODE_UNKNOWN, in s390_cpumsf_make_event() 520 sample.cpumode = basic->P ? PERF_RECORD_MISC_USER in s390_cpumsf_make_event() 523 sample.cpumode = basic->P ? PERF_RECORD_MISC_GUEST_USER in s390_cpumsf_make_event() 527 sample.cpumode = basic->P ? PERF_RECORD_MISC_GUEST_USER in s390_cpumsf_make_event() 530 sample.cpumode = basic->P ? PERF_RECORD_MISC_USER in s390_cpumsf_make_event() 534 event.sample.header.misc = sample.cpumode; in s390_cpumsf_make_event() 539 sample.tid, sample.cpumode, sample.cpu); in s390_cpumsf_make_event()
|
| H A D | addr_location.h | 20 u8 cpumode; member
|
| H A D | print_insn.h | 18 ssize_t fprintf_insn_asm(struct machine *machine, struct thread *thread, u8 cpumode,
|
| H A D | addr_location.c | 17 al->cpumode = 0; in addr_location__init()
|
| H A D | thread.c | 520 u8 cpumode = PERF_RECORD_MISC_USER; in thread__memcpy() local 526 cpumode = PERF_RECORD_MISC_KERNEL; in thread__memcpy() 529 if (!thread__find_map(thread, cpumode, ip, &al)) { in thread__memcpy()
|
| H A D | sample.h | 104 u8 cpumode; member
|
| H A D | intel-pt.c | 758 u8 cpumode; in intel_pt_walk_next_insn() local 773 cpumode = intel_pt_nr_cpumode(ptq, *ip, nr); in intel_pt_walk_next_insn() 791 if (cpumode != PERF_RECORD_MISC_GUEST_KERNEL) { in intel_pt_walk_next_insn() 801 if (cpumode != PERF_RECORD_MISC_KERNEL) { in intel_pt_walk_next_insn() 988 u8 cpumode; in __intel_pt_pgd_ip() local 1001 cpumode = PERF_RECORD_MISC_USER; in __intel_pt_pgd_ip() 1726 event->sample.header.misc = sample->cpumode; in intel_pt_prep_b_sample() 2282 u8 cpumode; in intel_pt_do_synth_pebs_sample() local 2306 cpumode = intel_pt_cpumode(ptq, sample.ip, 0); in intel_pt_do_synth_pebs_sample() 2310 sample.cpumode = cpumode; in intel_pt_do_synth_pebs_sample() [all …]
|
| H A D | dlfilter.c | 180 thread__find_symbol_fb(thread, d->sample->cpumode, address, &al); in dlfilter__resolve_address() 318 thread__find_map_fb(al->thread, d->sample->cpumode, ip, &a); in dlfilter__object_code() 540 ASSIGN(cpumode); in dlfilter__do_filter_event()
|
| H A D | annotate-data.h | 124 u8 cpumode; member
|
| /linux-6.15/tools/perf/tests/ |
| H A D | kmod-path.c | 35 static int test_is_kernel_module(const char *path, int cpumode, bool expect) in test_is_kernel_module() argument 38 (!!is_kernel_module(path, cpumode)) == (!!expect)); in test_is_kernel_module() 40 path, cpumode, expect ? "true" : "false"); in test_is_kernel_module()
|
| H A D | code-reading.c | 318 static int read_object_code(u64 addr, size_t len, u8 cpumode, in read_object_code() argument 335 if (!thread__find_map(thread, cpumode, addr, &al) || !map__dso(al.map)) { in read_object_code() 336 if (cpumode == PERF_RECORD_MISC_HYPERVISOR) { in read_object_code() 434 if (cpumode == PERF_RECORD_MISC_KERNEL || in read_object_code() 435 cpumode == PERF_RECORD_MISC_GUEST_KERNEL) { in read_object_code() 497 ret = read_object_code(sample.ip, READLEN, sample.cpumode, thread, state); in process_sample_event()
|
| H A D | hists_common.c | 109 .cpumode = PERF_RECORD_MISC_USER, in setup_fake_machine()
|
| /linux-6.15/tools/perf/dlfilters/ |
| H A D | dlfilter-test-api-v0.c | 60 __u8 cpumode; /* Refer CPUMODE_MASK etc in <linux/perf_event.h> */ member 197 .cpumode = PERF_RECORD_MISC_USER, in check_sample() 213 CHECK_SAMPLE(cpumode); in check_sample()
|
| H A D | dlfilter-test-api-v2.c | 66 __u8 cpumode; /* Refer CPUMODE_MASK etc in <linux/perf_event.h> */ member 212 .cpumode = PERF_RECORD_MISC_USER, in check_sample() 228 CHECK_SAMPLE(cpumode); in check_sample()
|
| /linux-6.15/tools/perf/ |
| H A D | builtin-script.c | 1096 bool *is64bit, u8 *cpumode, bool last) in grab_bb() argument 1109 *cpumode = PERF_RECORD_MISC_KERNEL; in grab_bb() 1111 *cpumode = PERF_RECORD_MISC_USER; in grab_bb() 1208 thread__find_map(thread, cpumode, addr, &al); in print_srccode() 1265 thread__find_map(thread, x->cpumode, ip, &al); in ip__fprintf_jump() 1310 u8 cpumode, int cpu, struct symbol **lastsym, in ip__fprintf_sym() argument 1317 thread__find_map(thread, cpumode, addr, &al); in ip__fprintf_sym() 1387 x.cpumode, x.cpu, &lastsym, evsel, fp); in perf_sample__fprintf_brstackinsn() 1437 print_srccode(thread, x.cpumode, ip); in perf_sample__fprintf_brstackinsn() 1483 print_srccode(thread, x.cpumode, sample->ip); in perf_sample__fprintf_brstackinsn() [all …]
|
| H A D | builtin-inject.c | 520 /*misc=*/sample->cpumode, in perf_event__repipe_common_mmap() 554 sample->cpumode | PERF_RECORD_MISC_MMAP_BUILD_ID, in perf_event__repipe_common_mmap() 841 u16 misc = sample->cpumode; in mark_dso_hit() 1358 .cpumode = dso__is_in_kernel_space(dso) in synthesize_build_id() 1370 /*misc=*/synth_sample.cpumode, in synthesize_build_id() 1662 u8 cpumode; in guest_session__inject_events() local 1682 cpumode = ev->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; in guest_session__inject_events() 1683 if (cpumode & PERF_RECORD_MISC_USER) in guest_session__inject_events() 1684 cpumode = PERF_RECORD_MISC_GUEST_USER; in guest_session__inject_events() 1686 cpumode = PERF_RECORD_MISC_GUEST_KERNEL; in guest_session__inject_events() [all …]
|
| /linux-6.15/tools/perf/include/perf/ |
| H A D | perf_dlfilter.h | 61 __u8 cpumode; /* Refer CPUMODE_MASK etc in <linux/perf_event.h> */ member
|
| /linux-6.15/tools/perf/util/scripting-engines/ |
| H A D | trace-event-python.c | 523 thread__find_map_fb(thread, sample->cpumode, in python_process_brstack() 529 thread__find_map_fb(thread, sample->cpumode, in python_process_brstack() 596 thread__find_symbol_fb(thread, sample->cpumode, in python_process_brstacksym() 602 thread__find_symbol_fb(thread, sample->cpumode, in python_process_brstacksym() 903 _PyLong_FromLong((unsigned long)sample->cpumode)); in get_perf_sample_dict() 1606 u8 cpumode = e->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; in python_process_auxtrace_error() local 1631 tuple_set_u32(t, 8, cpumode); in python_process_auxtrace_error()
|