Home
last modified time | relevance | path

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

123

/linux/tools/perf/util/
A Devent.c631 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 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 Dmachine.c2058 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 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.h114 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 Devent.h387 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 Ddump-insn.h15 u8 cpumode; member
A Ds390-cpumsf.c511 .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 Daddr_location.h21 u8 cpumode; member
A Dprint_insn.h18 ssize_t fprintf_insn_asm(struct machine *machine, struct thread *thread, u8 cpumode,
A Daddr_location.c17 al->cpumode = 0; in addr_location__init()
A Dthread.c440 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 Dsample.h104 u8 cpumode; member
A Dintel-pt.c758 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 Ddlfilter.c180 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 Dannotate-data.h124 u8 cpumode; member
/linux/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.c228 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 Dhists_common.c109 .cpumode = PERF_RECORD_MISC_USER, in setup_fake_machine()
/linux/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()
/linux/tools/perf/
A Dbuiltin-script.c1067 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 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()
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 Dperf_dlfilter.h61 __u8 cpumode; /* Refer CPUMODE_MASK etc in <linux/perf_event.h> */ member
/linux/tools/perf/util/scripting-engines/
A Dtrace-event-python.c550 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()

Completed in 802 milliseconds

123