/tools/perf/util/ |
D | event.c | 598 struct map *thread__find_map(struct thread *thread, u8 cpumode, u64 addr, in thread__find_map() argument 611 al->cpumode = cpumode; in thread__find_map() 617 if (cpumode == PERF_RECORD_MISC_KERNEL && perf_host) { in thread__find_map() 621 } else if (cpumode == PERF_RECORD_MISC_USER && perf_host) { in thread__find_map() 623 } else if (cpumode == PERF_RECORD_MISC_GUEST_KERNEL && perf_guest) { in thread__find_map() 627 } else if (cpumode == PERF_RECORD_MISC_GUEST_USER && perf_guest) { in thread__find_map() 632 if ((cpumode == PERF_RECORD_MISC_GUEST_USER || in thread__find_map() 633 cpumode == PERF_RECORD_MISC_GUEST_KERNEL) && in thread__find_map() 636 if ((cpumode == PERF_RECORD_MISC_USER || in thread__find_map() 637 cpumode == PERF_RECORD_MISC_KERNEL) && in thread__find_map() [all …]
|
D | dump-insn.h | 14 u8 cpumode; member
|
D | addr_location.h | 21 u8 cpumode; member
|
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()
|
D | thread.h | 120 struct map *thread__find_map(struct thread *thread, u8 cpumode, u64 addr, 122 struct map *thread__find_map_fb(struct thread *thread, u8 cpumode, u64 addr, 125 struct symbol *thread__find_symbol(struct thread *thread, u8 cpumode, 127 struct symbol *thread__find_symbol_fb(struct thread *thread, u8 cpumode,
|
D | addr_location.c | 17 al->cpumode = 0; in addr_location__init()
|
D | machine.c | 1002 u8 cpumode = event->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; in machine__process_text_poke() local 1011 if (cpumode != PERF_RECORD_MISC_KERNEL) { in machine__process_text_poke() 1949 if (sample->cpumode == PERF_RECORD_MISC_GUEST_KERNEL || in machine__process_mmap2_event() 1950 sample->cpumode == PERF_RECORD_MISC_KERNEL) { in machine__process_mmap2_event() 2006 if (sample->cpumode == PERF_RECORD_MISC_GUEST_KERNEL || in machine__process_mmap_event() 2007 sample->cpumode == PERF_RECORD_MISC_KERNEL) { in machine__process_mmap_event() 2282 ip__resolve_data(al->thread, al->cpumode, &mi->daddr, in sample__resolve_mem() 2322 u8 *cpumode, in add_callchain_ip() argument 2339 if (!cpumode) { in add_callchain_ip() 2345 *cpumode = PERF_RECORD_MISC_HYPERVISOR; in add_callchain_ip() [all …]
|
D | event.h | 383 static inline bool perf_event_header__cpumode_is_guest(u8 cpumode) in perf_event_header__cpumode_is_guest() argument 385 return cpumode == PERF_RECORD_MISC_GUEST_KERNEL || in perf_event_header__cpumode_is_guest() 386 cpumode == PERF_RECORD_MISC_GUEST_USER; in perf_event_header__cpumode_is_guest()
|
D | s390-cpumsf.c | 511 .cpumode = PERF_RECORD_MISC_CPUMODE_UNKNOWN, in s390_cpumsf_make_event() 519 sample.cpumode = basic->P ? PERF_RECORD_MISC_USER in s390_cpumsf_make_event() 522 sample.cpumode = basic->P ? PERF_RECORD_MISC_GUEST_USER in s390_cpumsf_make_event() 526 sample.cpumode = basic->P ? PERF_RECORD_MISC_GUEST_USER in s390_cpumsf_make_event() 529 sample.cpumode = basic->P ? PERF_RECORD_MISC_USER in s390_cpumsf_make_event() 533 event.sample.header.misc = sample.cpumode; in s390_cpumsf_make_event() 538 sample.tid, sample.cpumode, sample.cpu); in s390_cpumsf_make_event()
|
D | sample.h | 104 u8 cpumode; member
|
D | thread.c | 442 u8 cpumode = PERF_RECORD_MISC_USER; in thread__memcpy() local 448 cpumode = PERF_RECORD_MISC_KERNEL; in thread__memcpy() 451 if (!thread__find_map(thread, cpumode, ip, &al)) { in thread__memcpy()
|
D | dlfilter.c | 178 thread__find_symbol_fb(thread, d->sample->cpumode, address, &al); in dlfilter__resolve_address() 315 thread__find_map_fb(al->thread, d->sample->cpumode, ip, &a); in dlfilter__object_code() 537 ASSIGN(cpumode); in dlfilter__do_filter_event()
|
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() 782 } else if ((!symbol_conf.guest_code && cpumode != PERF_RECORD_MISC_GUEST_KERNEL) || 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() 813 if (!thread__find_map(thread, cpumode, *ip, &al) || !map__dso(al.map)) { 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() 1008 if (!thread__find_map(thread, cpumode, ip, &al) || !map__dso(al.map)) in __intel_pt_pgd_ip() 1722 sample->cpumode = intel_pt_cpumode(ptq, sample->ip, sample->addr); in intel_pt_prep_b_sample() [all …]
|
D | sort.h | 112 u8 cpumode; member
|
D | dso.c | 284 bool is_kernel_module(const char *pathname, int cpumode) in is_kernel_module() argument 287 int mode = cpumode & PERF_RECORD_MISC_CPUMODE_MASK; in is_kernel_module() 289 WARN_ONCE(mode != cpumode, in is_kernel_module() 291 cpumode); in is_kernel_module()
|
/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 245 if (!thread__find_map(thread, cpumode, addr, &al) || !map__dso(al.map)) { in read_object_code() 246 if (cpumode == PERF_RECORD_MISC_HYPERVISOR) { in read_object_code() 334 if (cpumode == PERF_RECORD_MISC_KERNEL || in read_object_code() 335 cpumode == PERF_RECORD_MISC_GUEST_KERNEL) { in read_object_code() 393 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 | 78 sample.cpumode = PERF_RECORD_MISC_USER; in add_hist_entries()
|
/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()
|
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()
|
/tools/perf/ |
D | builtin-script.c | 938 thread__find_map_fb(thread, sample->cpumode, from, &alf); in perf_sample__fprintf_brstack() 939 thread__find_map_fb(thread, sample->cpumode, to, &alt); in perf_sample__fprintf_brstack() 975 thread__find_symbol_fb(thread, sample->cpumode, from, &alf); in perf_sample__fprintf_brstacksym() 976 thread__find_symbol_fb(thread, sample->cpumode, to, &alt); in perf_sample__fprintf_brstacksym() 1013 if (thread__find_map_fb(thread, sample->cpumode, from, &alf) && in perf_sample__fprintf_brstackoff() 1017 if (thread__find_map_fb(thread, sample->cpumode, to, &alt) && in perf_sample__fprintf_brstackoff() 1038 bool *is64bit, u8 *cpumode, bool last) in grab_bb() argument 1051 *cpumode = PERF_RECORD_MISC_KERNEL; in grab_bb() 1053 *cpumode = PERF_RECORD_MISC_USER; in grab_bb() 1075 if (!thread__find_map(thread, *cpumode, start, &al) || (dso = map__dso(al.map)) == NULL) { in grab_bb() [all …]
|
D | builtin-inject.c | 138 struct machine *machine, u8 cpumode, u32 flags); 471 dso__inject_build_id(dso, tool, machine, sample->cpumode, 0); in perf_event__repipe_buildid_mmap() 559 dso__inject_build_id(dso, tool, machine, sample->cpumode, in perf_event__repipe_buildid_mmap2() 717 struct machine *machine, u8 cpumode, u32 flags) in dso__inject_build_id() argument 737 err = perf_event__synthesize_build_id(tool, dso, cpumode, in dso__inject_build_id() 763 if (thread__find_map(thread, sample->cpumode, sample->ip, &al)) { in perf_event__inject_buildid() 769 sample->cpumode, map__flags(al.map)); in perf_event__inject_buildid() 1177 u8 cpumode = dso__is_in_kernel_space(dso) ? in synthesize_build_id() local 1186 return perf_event__synthesize_build_id(&inject->tool, dso, cpumode, in synthesize_build_id() 1473 u8 cpumode; in guest_session__inject_events() local [all …]
|
/tools/perf/include/perf/ |
D | perf_dlfilter.h | 61 __u8 cpumode; /* Refer CPUMODE_MASK etc in <linux/perf_event.h> */ member
|
/tools/perf/util/scripting-engines/ |
D | trace-event-python.c | 547 thread__find_map_fb(thread, sample->cpumode, in python_process_brstack() 553 thread__find_map_fb(thread, sample->cpumode, in python_process_brstack() 620 thread__find_symbol_fb(thread, sample->cpumode, in python_process_brstacksym() 626 thread__find_symbol_fb(thread, sample->cpumode, in python_process_brstacksym() 902 _PyLong_FromLong((unsigned long)sample->cpumode)); in get_perf_sample_dict() 1600 u8 cpumode = e->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; in python_process_auxtrace_error() local 1625 tuple_set_u32(t, 8, cpumode); in python_process_auxtrace_error()
|