| /linux/tools/perf/util/ |
| 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 …]
|
| 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()
|
| A D | machine.c | 2058 u8 *cpumode, in add_callchain_ip() argument 2076 if (!cpumode) { in add_callchain_ip() 2237 u8 cpumode = PERF_RECORD_MISC_USER; in lbr_callchain_add_kernel_ip() local 2331 root_al, &cpumode, ip, in lbr_callchain_add_lbr_ip() 2356 root_al, &cpumode, ip, in lbr_callchain_add_lbr_ip() 2371 root_al, &cpumode, ip, in lbr_callchain_add_lbr_ip() 2385 root_al, &cpumode, ip, in lbr_callchain_add_lbr_ip() 2649 root_al, cpumode, ip, in find_prev_cpumode() 2839 root_al, &cpumode, ip, in thread__resolve_callchain_sample() 3121 u8 addr_cpumode = cpumode; in machine__addr_cpumode() [all …]
|
| 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()
|
| A D | thread.h | 114 struct map *thread__find_map(struct thread *thread, u8 cpumode, u64 addr, 116 struct map *thread__find_map_fb(struct thread *thread, u8 cpumode, u64 addr, 119 struct symbol *thread__find_symbol(struct thread *thread, u8 cpumode, 121 struct symbol *thread__find_symbol_fb(struct thread *thread, u8 cpumode,
|
| A D | event.h | 387 static inline bool perf_event_header__cpumode_is_guest(u8 cpumode) in perf_event_header__cpumode_is_guest() argument 389 return cpumode == PERF_RECORD_MISC_GUEST_KERNEL || in perf_event_header__cpumode_is_guest() 390 cpumode == PERF_RECORD_MISC_GUEST_USER; in perf_event_header__cpumode_is_guest()
|
| A D | dump-insn.h | 15 u8 cpumode; member
|
| A 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()
|
| A D | addr_location.h | 21 u8 cpumode; member
|
| A D | print_insn.h | 18 ssize_t fprintf_insn_asm(struct machine *machine, struct thread *thread, u8 cpumode,
|
| A D | addr_location.c | 17 al->cpumode = 0; in addr_location__init()
|
| A D | thread.c | 440 u8 cpumode = PERF_RECORD_MISC_USER; in thread__memcpy() local 446 cpumode = PERF_RECORD_MISC_KERNEL; in thread__memcpy() 449 if (!thread__find_map(thread, cpumode, ip, &al)) { in thread__memcpy()
|
| A D | sample.h | 104 u8 cpumode; member
|
| 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() 2242 u8 cpumode; in intel_pt_do_synth_pebs_sample() local 2264 cpumode = intel_pt_cpumode(ptq, sample.ip, 0); in intel_pt_do_synth_pebs_sample() 2268 sample.cpumode = cpumode; in intel_pt_do_synth_pebs_sample() [all …]
|
| A D | dlfilter.c | 180 thread__find_symbol_fb(thread, d->sample->cpumode, address, &al); in dlfilter__resolve_address() 317 thread__find_map_fb(al->thread, d->sample->cpumode, ip, &a); in dlfilter__object_code() 539 ASSIGN(cpumode); in dlfilter__do_filter_event()
|
| A D | annotate-data.h | 124 u8 cpumode; member
|
| /linux/tools/perf/tests/ |
| 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()
|
| A 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() 344 if (cpumode == PERF_RECORD_MISC_KERNEL || in read_object_code() 345 cpumode == PERF_RECORD_MISC_GUEST_KERNEL) { in read_object_code() 403 ret = read_object_code(sample.ip, READLEN, sample.cpumode, thread, state); in process_sample_event()
|
| A D | hists_common.c | 109 .cpumode = PERF_RECORD_MISC_USER, in setup_fake_machine()
|
| /linux/tools/perf/dlfilters/ |
| 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()
|
| 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/tools/perf/ |
| A D | builtin-script.c | 1067 bool *is64bit, u8 *cpumode, bool last) in grab_bb() argument 1080 *cpumode = PERF_RECORD_MISC_KERNEL; in grab_bb() 1082 *cpumode = PERF_RECORD_MISC_USER; in grab_bb() 1179 thread__find_map(thread, cpumode, addr, &al); in print_srccode() 1237 thread__find_map(thread, x->cpumode, ip, &al); in ip__fprintf_jump() 1282 u8 cpumode, int cpu, struct symbol **lastsym, in ip__fprintf_sym() argument 1289 thread__find_map(thread, cpumode, addr, &al); in ip__fprintf_sym() 1359 x.cpumode, x.cpu, &lastsym, attr, fp); in perf_sample__fprintf_brstackinsn() 1409 print_srccode(thread, x.cpumode, ip); in perf_sample__fprintf_brstackinsn() 1455 print_srccode(thread, x.cpumode, sample->ip); in perf_sample__fprintf_brstackinsn() [all …]
|
| 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/tools/perf/include/perf/ |
| A D | perf_dlfilter.h | 61 __u8 cpumode; /* Refer CPUMODE_MASK etc in <linux/perf_event.h> */ member
|
| /linux/tools/perf/util/scripting-engines/ |
| A D | trace-event-python.c | 550 thread__find_map_fb(thread, sample->cpumode, in python_process_brstack() 556 thread__find_map_fb(thread, sample->cpumode, in python_process_brstack() 623 thread__find_symbol_fb(thread, sample->cpumode, in python_process_brstacksym() 629 thread__find_symbol_fb(thread, sample->cpumode, in python_process_brstacksym() 916 _PyLong_FromLong((unsigned long)sample->cpumode)); in get_perf_sample_dict() 1618 u8 cpumode = e->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; in python_process_auxtrace_error() local 1643 tuple_set_u32(t, 8, cpumode); in python_process_auxtrace_error()
|