Home
last modified time | relevance | path

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

12

/Linux-v5.4/tools/perf/util/
Devent.c457 struct map *thread__find_map(struct thread *thread, u8 cpumode, u64 addr, in thread__find_map() argument
467 al->cpumode = cpumode; in thread__find_map()
475 if (cpumode == PERF_RECORD_MISC_KERNEL && perf_host) { in thread__find_map()
479 } else if (cpumode == PERF_RECORD_MISC_USER && perf_host) { in thread__find_map()
481 } else if (cpumode == PERF_RECORD_MISC_GUEST_KERNEL && perf_guest) { in thread__find_map()
485 } else if (cpumode == PERF_RECORD_MISC_GUEST_USER && perf_guest) { in thread__find_map()
491 if ((cpumode == PERF_RECORD_MISC_GUEST_USER || in thread__find_map()
492 cpumode == PERF_RECORD_MISC_GUEST_KERNEL) && in thread__find_map()
495 if ((cpumode == PERF_RECORD_MISC_USER || in thread__find_map()
496 cpumode == PERF_RECORD_MISC_KERNEL) && in thread__find_map()
[all …]
Dthread.h99 struct map *thread__find_map(struct thread *thread, u8 cpumode, u64 addr,
101 struct map *thread__find_map_fb(struct thread *thread, u8 cpumode, u64 addr,
104 struct symbol *thread__find_symbol(struct thread *thread, u8 cpumode,
106 struct symbol *thread__find_symbol_fb(struct thread *thread, u8 cpumode,
Dmachine.c1684 if (sample->cpumode == PERF_RECORD_MISC_GUEST_KERNEL || in machine__process_mmap2_event()
1685 sample->cpumode == PERF_RECORD_MISC_KERNEL) { in machine__process_mmap2_event()
1737 if (sample->cpumode == PERF_RECORD_MISC_GUEST_KERNEL || in machine__process_mmap_event()
1738 sample->cpumode == PERF_RECORD_MISC_KERNEL) { in machine__process_mmap_event()
1998 ip__resolve_data(al->thread, al->cpumode, &mi->daddr, in sample__resolve_mem()
2034 u8 *cpumode, in add_callchain_ip() argument
2048 if (!cpumode) { in add_callchain_ip()
2054 *cpumode = PERF_RECORD_MISC_HYPERVISOR; in add_callchain_ip()
2057 *cpumode = PERF_RECORD_MISC_KERNEL; in add_callchain_ip()
2060 *cpumode = PERF_RECORD_MISC_USER; in add_callchain_ip()
[all …]
Ds390-cpumsf.c510 .cpumode = PERF_RECORD_MISC_CPUMODE_UNKNOWN, in s390_cpumsf_make_event()
518 sample.cpumode = basic->P ? PERF_RECORD_MISC_USER in s390_cpumsf_make_event()
521 sample.cpumode = basic->P ? PERF_RECORD_MISC_GUEST_USER in s390_cpumsf_make_event()
525 sample.cpumode = basic->P ? PERF_RECORD_MISC_GUEST_USER in s390_cpumsf_make_event()
528 sample.cpumode = basic->P ? PERF_RECORD_MISC_USER in s390_cpumsf_make_event()
532 event.sample.header.misc = sample.cpumode; in s390_cpumsf_make_event()
537 sample.tid, sample.cpumode, sample.cpu); in s390_cpumsf_make_event()
Ddump-insn.h14 u8 cpumode; member
Dthread.c439 u8 cpumode = PERF_RECORD_MISC_USER; in thread__memcpy() local
444 cpumode = PERF_RECORD_MISC_KERNEL; in thread__memcpy()
446 if (!thread__find_map(thread, cpumode, ip, &al) || !al.map->dso || in thread__memcpy()
Dintel-pt.c526 u8 cpumode; in intel_pt_walk_next_insn() local
536 cpumode = intel_pt_cpumode(ptq->pt, *ip); in intel_pt_walk_next_insn()
540 if (cpumode != PERF_RECORD_MISC_KERNEL) in intel_pt_walk_next_insn()
546 if (!thread__find_map(thread, cpumode, *ip, &al) || !al.map->dso) in intel_pt_walk_next_insn()
687 u8 cpumode; in __intel_pt_pgd_ip() local
693 cpumode = PERF_RECORD_MISC_USER; in __intel_pt_pgd_ip()
699 if (!thread__find_map(thread, cpumode, ip, &al) || !al.map->dso) in __intel_pt_pgd_ip()
1227 sample->cpumode = intel_pt_cpumode(pt, sample->ip); in intel_pt_prep_b_sample()
1232 event->sample.header.misc = sample->cpumode; in intel_pt_prep_b_sample()
1709 u8 cpumode; in intel_pt_synth_pebs_sample() local
[all …]
Ddso.c232 bool is_kernel_module(const char *pathname, int cpumode) in is_kernel_module() argument
235 int mode = cpumode & PERF_RECORD_MISC_CPUMODE_MASK; in is_kernel_module()
237 WARN_ONCE(mode != cpumode, in is_kernel_module()
239 cpumode); in is_kernel_module()
Dcallchain.c1124 al->cpumode = PERF_RECORD_MISC_KERNEL; in fill_callchain_info()
1127 al->cpumode = PERF_RECORD_MISC_GUEST_KERNEL; in fill_callchain_info()
1132 al->cpumode = PERF_RECORD_MISC_USER; in fill_callchain_info()
1135 al->cpumode = PERF_RECORD_MISC_GUEST_USER; in fill_callchain_info()
1138 al->cpumode = PERF_RECORD_MISC_HYPERVISOR; in fill_callchain_info()
Dsort.h104 u8 cpumode; member
Dcs-etm.c641 u8 cpumode; in cs_etm__mem_access() local
653 cpumode = cs_etm__cpu_mode(etmq, address); in cs_etm__mem_access()
660 if (cpumode != PERF_RECORD_MISC_KERNEL) in cs_etm__mem_access()
665 if (!thread__find_map(thread, cpumode, address, &al) || !al.map->dso) in cs_etm__mem_access()
1133 sample.cpumode = event->sample.header.misc; in cs_etm__synth_instruction_sample()
1194 sample.cpumode = event->sample.header.misc; in cs_etm__synth_branch_sample()
Ddso.h256 bool is_kernel_module(const char *pathname, int cpumode);
Dsymbol.h128 u8 cpumode; member
Dmachine.h104 u8 machine__addr_cpumode(struct machine *machine, u8 cpumode, u64 addr);
Devent.h135 u8 cpumode; member
Djitdump.c482 sample.cpumode = PERF_RECORD_MISC_USER; in jit_repipe_code_load()
574 sample.cpumode = PERF_RECORD_MISC_USER; in jit_repipe_code_move()
Dhist.c241 unsigned int cpumode, u64 period) in he_stat__add_cpumode_period() argument
243 switch (cpumode) { in he_stat__add_cpumode_period()
640 he_stat__add_cpumode_period(&he->stat, al->cpumode, period); in hists__findnew_entry()
642 he_stat__add_cpumode_period(he->stat_acc, al->cpumode, period); in hists__findnew_entry()
698 .cpumode = al->cpumode, in __hists__add_entry()
/Linux-v5.4/tools/perf/tests/
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()
Dcode-reading.c235 static int read_object_code(u64 addr, size_t len, u8 cpumode, in read_object_code() argument
250 if (!thread__find_map(thread, cpumode, addr, &al) || !al.map->dso) { in read_object_code()
251 if (cpumode == PERF_RECORD_MISC_HYPERVISOR) { in read_object_code()
335 if (cpumode == PERF_RECORD_MISC_KERNEL || in read_object_code()
336 cpumode == PERF_RECORD_MISC_GUEST_KERNEL) { in read_object_code()
391 ret = read_object_code(sample.ip, READLEN, sample.cpumode, thread, state); in process_sample_event()
Dhists_common.c109 .cpumode = PERF_RECORD_MISC_USER, in setup_fake_machine()
Dhists_filter.c76 sample.cpumode = PERF_RECORD_MISC_USER; in add_hist_entries()
Dhists_link.c81 sample.cpumode = PERF_RECORD_MISC_USER; in add_hist_entries()
/Linux-v5.4/tools/perf/
Dbuiltin-script.c752 thread__find_map_fb(thread, sample->cpumode, from, &alf); in perf_sample__fprintf_brstack()
753 thread__find_map_fb(thread, sample->cpumode, to, &alt); in perf_sample__fprintf_brstack()
799 thread__find_symbol_fb(thread, sample->cpumode, from, &alf); in perf_sample__fprintf_brstacksym()
800 thread__find_symbol_fb(thread, sample->cpumode, to, &alt); in perf_sample__fprintf_brstacksym()
844 if (thread__find_map_fb(thread, sample->cpumode, from, &alf) && in perf_sample__fprintf_brstackoff()
848 if (thread__find_map_fb(thread, sample->cpumode, to, &alt) && in perf_sample__fprintf_brstackoff()
877 bool *is64bit, u8 *cpumode, bool last) in grab_bb() argument
888 *cpumode = PERF_RECORD_MISC_KERNEL; in grab_bb()
890 *cpumode = PERF_RECORD_MISC_USER; in grab_bb()
912 if (!thread__find_map(thread, *cpumode, start, &al) || !al.map->dso) { in grab_bb()
[all …]
Dbuiltin-timechart.c481 u8 cpumode = PERF_RECORD_MISC_USER; in cat_backtrace() local
511 cpumode = PERF_RECORD_MISC_HYPERVISOR; in cat_backtrace()
514 cpumode = PERF_RECORD_MISC_KERNEL; in cat_backtrace()
517 cpumode = PERF_RECORD_MISC_USER; in cat_backtrace()
534 if (thread__find_symbol(al.thread, cpumode, ip, &tal)) in cat_backtrace()
/Linux-v5.4/tools/perf/util/scripting-engines/
Dtrace-event-python.c501 thread__find_map_fb(thread, sample->cpumode, in python_process_brstack()
507 thread__find_map_fb(thread, sample->cpumode, in python_process_brstack()
583 thread__find_symbol_fb(thread, sample->cpumode, in python_process_brstacksym()
589 thread__find_symbol_fb(thread, sample->cpumode, in python_process_brstacksym()

12