Home
last modified time | relevance | path

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

123

/tools/perf/util/
A Dprint_insn.c84 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 Devent.c654 al->cpumode = cpumode; in thread__find_map()
660 if (cpumode == PERF_RECORD_MISC_KERNEL && perf_host) { in thread__find_map()
664 } else if (cpumode == PERF_RECORD_MISC_USER && perf_host) { in thread__find_map()
675 if ((cpumode == PERF_RECORD_MISC_GUEST_USER || in thread__find_map()
676 cpumode == PERF_RECORD_MISC_GUEST_KERNEL) && in thread__find_map()
679 if ((cpumode == PERF_RECORD_MISC_USER || in thread__find_map()
680 cpumode == PERF_RECORD_MISC_KERNEL) && in thread__find_map()
713 if (map || addr_cpumode == cpumode) in thread__find_map_fb()
723 if (thread__find_map(thread, cpumode, addr, al)) in thread__find_symbol()
732 if (thread__find_map_fb(thread, cpumode, addr, al)) in thread__find_symbol_fb()
[all …]
A Ddump-insn.h15 u8 cpumode; member
A Daddr_location.h20 u8 cpumode; member
A Dprint_insn.h18 ssize_t fprintf_insn_asm(struct machine *machine, struct thread *thread, u8 cpumode,
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()
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,
A Dmachine.c2097 u8 *cpumode, in add_callchain_ip() argument
2115 if (!cpumode) { in add_callchain_ip()
2278 u8 cpumode = PERF_RECORD_MISC_USER; in lbr_callchain_add_kernel_ip() local
2372 root_al, &cpumode, ip, in lbr_callchain_add_lbr_ip()
2397 root_al, &cpumode, ip, in lbr_callchain_add_lbr_ip()
2412 root_al, &cpumode, ip, in lbr_callchain_add_lbr_ip()
2426 root_al, &cpumode, ip, in lbr_callchain_add_lbr_ip()
2690 root_al, cpumode, ip, in find_prev_cpumode()
2880 root_al, &cpumode, ip, in thread__resolve_callchain_sample()
3162 u8 addr_cpumode = cpumode; in machine__addr_cpumode()
[all …]
A Daddr_location.c17 al->cpumode = 0; in addr_location__init()
A Devent.h394 static inline bool perf_event_header__cpumode_is_guest(u8 cpumode) in perf_event_header__cpumode_is_guest() argument
396 return cpumode == PERF_RECORD_MISC_GUEST_KERNEL || in perf_event_header__cpumode_is_guest()
397 cpumode == PERF_RECORD_MISC_GUEST_USER; in perf_event_header__cpumode_is_guest()
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()
A Dsample.h104 u8 cpumode; member
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()
A Dannotate-data.h124 u8 cpumode; member
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()
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()
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()
990 u8 cpumode; in __intel_pt_pgd_ip() local
1003 cpumode = PERF_RECORD_MISC_USER; in __intel_pt_pgd_ip()
1728 event->sample.header.misc = sample->cpumode; in intel_pt_prep_b_sample()
2423 u8 cpumode; in intel_pt_do_synth_pebs_sample() local
2447 cpumode = intel_pt_cpumode(ptq, sample.ip, 0); in intel_pt_do_synth_pebs_sample()
2451 sample.cpumode = cpumode; in intel_pt_do_synth_pebs_sample()
[all …]
/tools/perf/tests/
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()
A Dcode-reading.c318 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()
A Dhists_common.c109 .cpumode = PERF_RECORD_MISC_USER, in setup_fake_machine()
/tools/perf/dlfilters/
A Ddlfilter-test-api-v0.c60 __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 Ddlfilter-test-api-v2.c66 __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/
A Dbuiltin-script.c1098 bool *is64bit, u8 *cpumode, bool last) in grab_bb() argument
1111 *cpumode = PERF_RECORD_MISC_KERNEL; in grab_bb()
1113 *cpumode = PERF_RECORD_MISC_USER; in grab_bb()
1210 thread__find_map(thread, cpumode, addr, &al); in print_srccode()
1267 thread__find_map(thread, x->cpumode, ip, &al); in ip__fprintf_jump()
1312 u8 cpumode, int cpu, struct symbol **lastsym, in ip__fprintf_sym() argument
1319 thread__find_map(thread, cpumode, addr, &al); in ip__fprintf_sym()
1389 x.cpumode, x.cpu, &lastsym, evsel, fp); in perf_sample__fprintf_brstackinsn()
1439 print_srccode(thread, x.cpumode, ip); in perf_sample__fprintf_brstackinsn()
1485 print_srccode(thread, x.cpumode, sample->ip); in perf_sample__fprintf_brstackinsn()
[all …]
A Dbuiltin-inject.c520 /*misc=*/sample->cpumode, in perf_event__repipe_common_mmap()
554 sample->cpumode | PERF_RECORD_MISC_MMAP_BUILD_ID, in perf_event__repipe_common_mmap()
847 u16 misc = sample->cpumode; in mark_dso_hit()
1364 .cpumode = dso__is_in_kernel_space(dso) in synthesize_build_id()
1376 /*misc=*/synth_sample.cpumode, in synthesize_build_id()
1668 u8 cpumode; in guest_session__inject_events() local
1688 cpumode = ev->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; in guest_session__inject_events()
1689 if (cpumode & PERF_RECORD_MISC_USER) in guest_session__inject_events()
1690 cpumode = PERF_RECORD_MISC_GUEST_USER; in guest_session__inject_events()
1692 cpumode = PERF_RECORD_MISC_GUEST_KERNEL; in guest_session__inject_events()
[all …]
/tools/perf/include/perf/
A Dperf_dlfilter.h61 __u8 cpumode; /* Refer CPUMODE_MASK etc in <linux/perf_event.h> */ member
/tools/perf/util/scripting-engines/
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()

Completed in 62 milliseconds

123