Home
last modified time | relevance | path

Searched refs:cpumode (Results 1 – 25 of 53) sorted by relevance

123

/linux/tools/perf/util/
H A Devent.c642 struct map *thread__find_map(struct thread *thread, u8 cpumode, u64 addr, in thread__find_map() argument
655 al->cpumode = cpumode; in thread__find_map()
661 if (cpumode == PERF_RECORD_MISC_KERNEL && perf_host) { in thread__find_map()
665 } else if (cpumode == PERF_RECORD_MISC_USER && perf_host) { in thread__find_map()
667 } else if (cpumode == PERF_RECORD_MISC_GUEST_KERNEL && perf_guest) { in thread__find_map()
671 } else if (cpumode == PERF_RECORD_MISC_GUEST_USER && perf_guest) { in thread__find_map()
676 if ((cpumode == PERF_RECORD_MISC_GUEST_USER || in thread__find_map()
677 cpumode == PERF_RECORD_MISC_GUEST_KERNEL) && in thread__find_map()
680 if ((cpumode == PERF_RECORD_MISC_USER || in thread__find_map()
681 cpumode == PERF_RECORD_MISC_KERNEL) && in thread__find_map()
[all …]
H A Dprint_insn.c45 ssize_t fprintf_insn_asm(struct machine *machine, struct thread *thread, u8 cpumode, in fprintf_insn_asm() argument
49 return capstone__fprintf_insn_asm(machine, thread, cpumode, is64bit, code, code_size, in fprintf_insn_asm()
60 printed = fprintf_insn_asm(machine, thread, sample->cpumode, is64bit, in sample__fprintf_insn_asm()
H A Dmachine.c831 u8 cpumode = event->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; in machine__process_text_poke() local
840 if (cpumode != PERF_RECORD_MISC_KERNEL) { in machine__process_text_poke()
1751 if (sample->cpumode == PERF_RECORD_MISC_GUEST_KERNEL || in machine__process_mmap2_event()
1752 sample->cpumode == PERF_RECORD_MISC_KERNEL) { in machine__process_mmap2_event()
1808 if (sample->cpumode == PERF_RECORD_MISC_GUEST_KERNEL || in machine__process_mmap_event()
1809 sample->cpumode == PERF_RECORD_MISC_KERNEL) { in machine__process_mmap_event()
2057 ip__resolve_data(al->thread, al->cpumode, mem_info__daddr(mi), in sample__resolve_mem()
2097 u8 *cpumode, in add_callchain_ip() argument
2115 if (!cpumode) { in add_callchain_ip()
2121 *cpumode = PERF_RECORD_MISC_HYPERVISOR; in add_callchain_ip()
[all …]
H A Ddata-convert-json.c159 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 Dthread.h118 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 Ds390-cpumsf.c511 .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 Dcapstone.c73 static size_t print_insn_x86(struct thread *thread, u8 cpumode, cs_insn *insn, in print_insn_x86() argument
84 thread__find_symbol(thread, cpumode, op->imm, &al)) { in print_insn_x86()
103 u8 cpumode __maybe_unused, bool is64bit __maybe_unused, in capstone__fprintf_insn_asm()
124 printed = print_insn_x86(thread, cpumode, &insn[0], print_opts, fp); in capstone__fprintf_insn_asm()
H A Devent.h414 static inline bool perf_event_header__cpumode_is_guest(u8 cpumode) in perf_event_header__cpumode_is_guest() argument
416 return cpumode == PERF_RECORD_MISC_GUEST_KERNEL || in perf_event_header__cpumode_is_guest()
417 cpumode == PERF_RECORD_MISC_GUEST_USER; in perf_event_header__cpumode_is_guest()
H A Ddump-insn.h15 u8 cpumode; member
H A Dcapstone.h16 ssize_t capstone__fprintf_insn_asm(struct machine *machine, struct thread *thread, u8 cpumode,
H A Daddr_location.h20 u8 cpumode;
21 u8 cpumode; global() member
H A Daddr_location.c17 al->cpumode = 0; in addr_location__init()
H A Dthread.c543 u8 cpumode = PERF_RECORD_MISC_USER; in thread__memcpy() local
549 cpumode = PERF_RECORD_MISC_KERNEL; in thread__memcpy()
552 if (!thread__find_map(thread, cpumode, ip, &al)) { in thread__memcpy()
H A Dintel-pt.c760 u8 cpumode; in intel_pt_walk_next_insn() local
775 cpumode = intel_pt_nr_cpumode(ptq, *ip, nr); in intel_pt_walk_next_insn()
784 } else if ((!symbol_conf.guest_code && cpumode != PERF_RECORD_MISC_GUEST_KERNEL) || in intel_pt_walk_next_insn()
793 if (cpumode != PERF_RECORD_MISC_GUEST_KERNEL) { in intel_pt_walk_next_insn()
803 if (cpumode != PERF_RECORD_MISC_KERNEL) { in intel_pt_walk_next_insn()
815 if (!thread__find_map(thread, cpumode, *ip, &al) || !map__dso(al.map)) { in intel_pt_walk_next_insn()
990 u8 cpumode; in __intel_pt_pgd_ip() local
1003 cpumode = PERF_RECORD_MISC_USER; in __intel_pt_pgd_ip()
1010 if (!thread__find_map(thread, cpumode, ip, &al) || !map__dso(al.map)) in __intel_pt_pgd_ip()
1724 sample->cpumode = intel_pt_cpumode(ptq, sample->ip, sample->addr); in intel_pt_prep_b_sample()
[all …]
H A Dsample.h104 u8 cpumode; member
H A Ddlfilter.c180 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 Dannotate-data.h125 u8 cpumode; member
H A Dcallchain.c1168 al->cpumode = PERF_RECORD_MISC_KERNEL; in fill_callchain_info()
1171 al->cpumode = PERF_RECORD_MISC_GUEST_KERNEL; in fill_callchain_info()
1176 al->cpumode = PERF_RECORD_MISC_USER; in fill_callchain_info()
1179 al->cpumode = PERF_RECORD_MISC_GUEST_USER; in fill_callchain_info()
1182 al->cpumode = PERF_RECORD_MISC_HYPERVISOR; in fill_callchain_info()
/linux/tools/perf/tests/
H A Dkmod-path.c35 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 Dcode-reading.c377 static int read_object_code(u64 addr, size_t len, u8 cpumode, in read_object_code() argument
396 if (!thread__find_map(thread, cpumode, addr, &al) || !map__dso(al.map)) { in read_object_code()
397 if (cpumode == PERF_RECORD_MISC_HYPERVISOR) { in read_object_code()
489 if (cpumode == PERF_RECORD_MISC_KERNEL || in read_object_code()
490 cpumode == PERF_RECORD_MISC_GUEST_KERNEL) { in read_object_code()
552 ret = read_object_code(sample.ip, READLEN, sample.cpumode, thread, in process_sample_event()
H A Dhists_common.c109 .cpumode = PERF_RECORD_MISC_USER, in setup_fake_machine()
/linux/tools/perf/
H A Dbuiltin-script.c992 thread__find_map_fb(thread, sample->cpumode, from, &alf); in perf_sample__fprintf_brstack()
993 thread__find_map_fb(thread, sample->cpumode, to, &alt); in perf_sample__fprintf_brstack()
1029 thread__find_symbol_fb(thread, sample->cpumode, from, &alf); in perf_sample__fprintf_brstacksym()
1030 thread__find_symbol_fb(thread, sample->cpumode, to, &alt); in perf_sample__fprintf_brstacksym()
1067 if (thread__find_map_fb(thread, sample->cpumode, from, &alf) && in perf_sample__fprintf_brstackoff()
1071 if (thread__find_map_fb(thread, sample->cpumode, to, &alt) && in perf_sample__fprintf_brstackoff()
1092 bool *is64bit, u8 *cpumode, bool last) in grab_bb() argument
1105 *cpumode = PERF_RECORD_MISC_KERNEL; in grab_bb()
1107 *cpumode = PERF_RECORD_MISC_USER; in grab_bb()
1129 if (!thread__find_map(thread, *cpumode, start, &al) || (dso = map__dso(al.map)) == NULL) { in grab_bb()
[all …]
H A Dbuiltin-inject.c507 /*misc=*/sample->cpumode, in perf_event__repipe_common_mmap()
541 sample->cpumode | PERF_RECORD_MISC_MMAP_BUILD_ID, in perf_event__repipe_common_mmap()
835 u16 misc = sample->cpumode; in mark_dso_hit()
933 if (thread__find_map(thread, sample->cpumode, sample->ip, &al)) { in perf_event__inject_buildid()
1352 .cpumode = dso__is_in_kernel_space(dso) in synthesize_build_id()
1364 /*misc=*/synth_sample.cpumode, in synthesize_build_id()
1656 u8 cpumode; in guest_session__inject_events() local
1676 cpumode = ev->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; in guest_session__inject_events()
1677 if (cpumode & PERF_RECORD_MISC_USER) in guest_session__inject_events()
1678 cpumode = PERF_RECORD_MISC_GUEST_USER; in guest_session__inject_events()
[all …]
/linux/tools/perf/include/perf/
H A Dperf_dlfilter.h61 __u8 cpumode; /* Refer CPUMODE_MASK etc in <linux/perf_event.h> */ member
/linux/tools/perf/util/scripting-engines/
H A Dtrace-event-python.c523 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()
902 _PyLong_FromLong((unsigned long)sample->cpumode)); in get_perf_sample_dict()
1605 u8 cpumode = e->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; in python_process_auxtrace_error() local
1630 tuple_set_u32(t, 8, cpumode); in python_process_auxtrace_error()

123