/linux-6.1.9/tools/perf/util/ |
D | event.c | 571 struct map *thread__find_map(struct thread *thread, u8 cpumode, u64 addr, in thread__find_map() argument 581 al->cpumode = cpumode; in thread__find_map() 589 if (cpumode == PERF_RECORD_MISC_KERNEL && perf_host) { in thread__find_map() 593 } else if (cpumode == PERF_RECORD_MISC_USER && perf_host) { in thread__find_map() 595 } else if (cpumode == PERF_RECORD_MISC_GUEST_KERNEL && perf_guest) { in thread__find_map() 599 } else if (cpumode == PERF_RECORD_MISC_GUEST_USER && perf_guest) { in thread__find_map() 605 if ((cpumode == PERF_RECORD_MISC_GUEST_USER || in thread__find_map() 606 cpumode == PERF_RECORD_MISC_GUEST_KERNEL) && in thread__find_map() 609 if ((cpumode == PERF_RECORD_MISC_USER || in thread__find_map() 610 cpumode == PERF_RECORD_MISC_KERNEL) && in thread__find_map() [all …]
|
D | thread.h | 113 struct map *thread__find_map(struct thread *thread, u8 cpumode, u64 addr, 115 struct map *thread__find_map_fb(struct thread *thread, u8 cpumode, u64 addr, 118 struct symbol *thread__find_symbol(struct thread *thread, u8 cpumode, 120 struct symbol *thread__find_symbol_fb(struct thread *thread, u8 cpumode,
|
D | data-convert-json.c | 153 u8 cpumode = PERF_RECORD_MISC_USER; in process_sample_event() local 191 cpumode = PERF_RECORD_MISC_HYPERVISOR; in process_sample_event() 194 cpumode = PERF_RECORD_MISC_KERNEL; in process_sample_event() 197 cpumode = PERF_RECORD_MISC_USER; in process_sample_event() 212 ok = thread__find_symbol(al.thread, cpumode, ip, &tal); in process_sample_event()
|
D | machine.c | 962 u8 cpumode = event->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; in machine__process_text_poke() local 970 if (cpumode != PERF_RECORD_MISC_KERNEL) { in machine__process_text_poke() 1883 if (sample->cpumode == PERF_RECORD_MISC_GUEST_KERNEL || in machine__process_mmap2_event() 1884 sample->cpumode == PERF_RECORD_MISC_KERNEL) { in machine__process_mmap2_event() 1940 if (sample->cpumode == PERF_RECORD_MISC_GUEST_KERNEL || in machine__process_mmap_event() 1941 sample->cpumode == PERF_RECORD_MISC_KERNEL) { in machine__process_mmap_event() 2218 ip__resolve_data(al->thread, al->cpumode, &mi->daddr, in sample__resolve_mem() 2256 u8 *cpumode, in add_callchain_ip() argument 2272 if (!cpumode) { in add_callchain_ip() 2278 *cpumode = PERF_RECORD_MISC_HYPERVISOR; in add_callchain_ip() [all …]
|
D | event.h | 173 u8 cpumode; member 502 static inline bool perf_event_header__cpumode_is_guest(u8 cpumode) in perf_event_header__cpumode_is_guest() argument 504 return cpumode == PERF_RECORD_MISC_GUEST_KERNEL || in perf_event_header__cpumode_is_guest() 505 cpumode == PERF_RECORD_MISC_GUEST_USER; in perf_event_header__cpumode_is_guest()
|
D | dump-insn.h | 14 u8 cpumode; member
|
D | s390-cpumsf.c | 510 .cpumode = PERF_RECORD_MISC_CPUMODE_UNKNOWN, in s390_cpumsf_make_event() 518 sample.cpumode = basic->P ? PERF_RECORD_MISC_USER in s390_cpumsf_make_event() 521 sample.cpumode = basic->P ? PERF_RECORD_MISC_GUEST_USER in s390_cpumsf_make_event() 525 sample.cpumode = basic->P ? PERF_RECORD_MISC_GUEST_USER in s390_cpumsf_make_event() 528 sample.cpumode = basic->P ? PERF_RECORD_MISC_USER in s390_cpumsf_make_event() 532 event.sample.header.misc = sample.cpumode; in s390_cpumsf_make_event() 537 sample.tid, sample.cpumode, sample.cpu); in s390_cpumsf_make_event()
|
D | thread.c | 440 u8 cpumode = PERF_RECORD_MISC_USER; in thread__memcpy() local 445 cpumode = PERF_RECORD_MISC_KERNEL; in thread__memcpy() 447 if (!thread__find_map(thread, cpumode, ip, &al) || !al.map->dso || in thread__memcpy()
|
D | intel-pt.c | 751 u8 cpumode; in intel_pt_walk_next_insn() local 763 cpumode = intel_pt_nr_cpumode(ptq, *ip, nr); in intel_pt_walk_next_insn() 771 } else if ((!symbol_conf.guest_code && cpumode != PERF_RECORD_MISC_GUEST_KERNEL) || in intel_pt_walk_next_insn() 779 if (cpumode != PERF_RECORD_MISC_GUEST_KERNEL) { in intel_pt_walk_next_insn() 788 if (cpumode != PERF_RECORD_MISC_KERNEL) { in intel_pt_walk_next_insn() 797 if (!thread__find_map(thread, cpumode, *ip, &al) || !al.map->dso) { in intel_pt_walk_next_insn() 961 u8 cpumode; in __intel_pt_pgd_ip() local 973 cpumode = PERF_RECORD_MISC_USER; in __intel_pt_pgd_ip() 979 if (!thread__find_map(thread, cpumode, ip, &al) || !al.map->dso) in __intel_pt_pgd_ip() 1689 sample->cpumode = intel_pt_cpumode(ptq, sample->ip, sample->addr); in intel_pt_prep_b_sample() [all …]
|
D | dlfilter.c | 169 thread__find_symbol_fb(thread, d->sample->cpumode, address, &al); in dlfilter__resolve_address() 269 thread__find_map_fb(al->thread, d->sample->cpumode, ip, &a); in dlfilter__object_code() 494 ASSIGN(cpumode); in dlfilter__do_filter_event()
|
D | callchain.c | 1130 al->cpumode = PERF_RECORD_MISC_KERNEL; in fill_callchain_info() 1133 al->cpumode = PERF_RECORD_MISC_GUEST_KERNEL; in fill_callchain_info() 1138 al->cpumode = PERF_RECORD_MISC_USER; in fill_callchain_info() 1141 al->cpumode = PERF_RECORD_MISC_GUEST_USER; in fill_callchain_info() 1144 al->cpumode = PERF_RECORD_MISC_HYPERVISOR; in fill_callchain_info()
|
D | dso.c | 251 bool is_kernel_module(const char *pathname, int cpumode) in is_kernel_module() argument 254 int mode = cpumode & PERF_RECORD_MISC_CPUMODE_MASK; in is_kernel_module() 256 WARN_ONCE(mode != cpumode, in is_kernel_module() 258 cpumode); in is_kernel_module()
|
D | sort.h | 111 u8 cpumode; member
|
D | symbol.h | 130 u8 cpumode; member
|
D | cs-etm.c | 698 u8 cpumode; in cs_etm__mem_access() local 710 cpumode = cs_etm__cpu_mode(etmq, address); in cs_etm__mem_access() 717 if (cpumode != PERF_RECORD_MISC_KERNEL) in cs_etm__mem_access() 722 if (!thread__find_map(thread, cpumode, address, &al) || !al.map->dso) in cs_etm__mem_access() 1187 sample.cpumode = event->sample.header.misc; in cs_etm__synth_instruction_sample() 1246 sample.cpumode = event->sample.header.misc; in cs_etm__synth_branch_sample()
|
/linux-6.1.9/tools/perf/tests/ |
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()
|
D | code-reading.c | 228 static int read_object_code(u64 addr, size_t len, u8 cpumode, in read_object_code() argument 243 if (!thread__find_map(thread, cpumode, addr, &al) || !al.map->dso) { in read_object_code() 244 if (cpumode == PERF_RECORD_MISC_HYPERVISOR) { in read_object_code() 328 if (cpumode == PERF_RECORD_MISC_KERNEL || in read_object_code() 329 cpumode == PERF_RECORD_MISC_GUEST_KERNEL) { in read_object_code() 384 ret = read_object_code(sample.ip, READLEN, sample.cpumode, thread, state); in process_sample_event()
|
D | hists_common.c | 109 .cpumode = PERF_RECORD_MISC_USER, in setup_fake_machine()
|
D | hists_filter.c | 76 sample.cpumode = PERF_RECORD_MISC_USER; in add_hist_entries()
|
/linux-6.1.9/tools/perf/dlfilters/ |
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()
|
/linux-6.1.9/tools/perf/ |
D | builtin-script.c | 908 thread__find_map_fb(thread, sample->cpumode, from, &alf); in perf_sample__fprintf_brstack() 909 thread__find_map_fb(thread, sample->cpumode, to, &alt); in perf_sample__fprintf_brstack() 952 thread__find_symbol_fb(thread, sample->cpumode, from, &alf); in perf_sample__fprintf_brstacksym() 953 thread__find_symbol_fb(thread, sample->cpumode, to, &alt); in perf_sample__fprintf_brstacksym() 994 if (thread__find_map_fb(thread, sample->cpumode, from, &alf) && in perf_sample__fprintf_brstackoff() 998 if (thread__find_map_fb(thread, sample->cpumode, to, &alt) && in perf_sample__fprintf_brstackoff() 1023 bool *is64bit, u8 *cpumode, bool last) in grab_bb() argument 1034 *cpumode = PERF_RECORD_MISC_KERNEL; in grab_bb() 1036 *cpumode = PERF_RECORD_MISC_USER; in grab_bb() 1058 if (!thread__find_map(thread, *cpumode, start, &al) || !al.map->dso) { in grab_bb() [all …]
|
D | builtin-inject.c | 138 struct machine *machine, u8 cpumode, u32 flags); 462 dso__inject_build_id(dso, tool, machine, sample->cpumode, 0); in perf_event__repipe_buildid_mmap() 549 dso__inject_build_id(dso, tool, machine, sample->cpumode, in perf_event__repipe_buildid_mmap2() 707 struct machine *machine, u8 cpumode, u32 flags) in dso__inject_build_id() argument 727 err = perf_event__synthesize_build_id(tool, dso, cpumode, in dso__inject_build_id() 752 if (thread__find_map(thread, sample->cpumode, sample->ip, &al)) { in perf_event__inject_buildid() 756 sample->cpumode, al.map->flags); in perf_event__inject_buildid() 1161 u8 cpumode = dso__is_in_kernel_space(dso) ? in synthesize_build_id() local 1170 return perf_event__synthesize_build_id(&inject->tool, dso, cpumode, in synthesize_build_id() 1449 u8 cpumode; in guest_session__inject_events() local [all …]
|
D | builtin-timechart.c | 499 u8 cpumode = PERF_RECORD_MISC_USER; in cat_backtrace() local 529 cpumode = PERF_RECORD_MISC_HYPERVISOR; in cat_backtrace() 532 cpumode = PERF_RECORD_MISC_KERNEL; in cat_backtrace() 535 cpumode = PERF_RECORD_MISC_USER; in cat_backtrace() 552 if (thread__find_symbol(al.thread, cpumode, ip, &tal)) in cat_backtrace()
|
/linux-6.1.9/tools/perf/include/perf/ |
D | perf_dlfilter.h | 61 __u8 cpumode; /* Refer CPUMODE_MASK etc in <linux/perf_event.h> */ member
|
/linux-6.1.9/tools/perf/util/scripting-engines/ |
D | trace-event-python.c | 534 thread__find_map_fb(thread, sample->cpumode, in python_process_brstack() 540 thread__find_map_fb(thread, sample->cpumode, in python_process_brstack() 605 thread__find_symbol_fb(thread, sample->cpumode, in python_process_brstacksym() 611 thread__find_symbol_fb(thread, sample->cpumode, in python_process_brstacksym() 881 _PyLong_FromLong((unsigned long)sample->cpumode)); in get_perf_sample_dict() 1565 u8 cpumode = e->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; in python_process_auxtrace_error() local 1590 tuple_set_u32(t, 8, cpumode); in python_process_auxtrace_error()
|