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.c694 struct map *thread__find_map(struct thread *thread, u8 cpumode, u64 addr, in thread__find_map() argument
706 al->cpumode = cpumode; in thread__find_map()
712 if (cpumode == PERF_RECORD_MISC_KERNEL && perf_host) { in thread__find_map()
716 } else if (cpumode == PERF_RECORD_MISC_USER && perf_host) { in thread__find_map()
718 } else if (cpumode == PERF_RECORD_MISC_GUEST_KERNEL && perf_guest) { in thread__find_map()
722 } else if (cpumode == PERF_RECORD_MISC_GUEST_USER && perf_guest) { in thread__find_map()
727 if ((cpumode == PERF_RECORD_MISC_GUEST_USER || in thread__find_map()
728 cpumode == PERF_RECORD_MISC_GUEST_KERNEL) && in thread__find_map()
731 if ((cpumode in thread__find_map()
757 thread__find_map_fb(struct thread * thread,u8 cpumode,u64 addr,struct addr_location * al) thread__find_map_fb() argument
770 thread__find_symbol(struct thread * thread,u8 cpumode,u64 addr,struct addr_location * al) thread__find_symbol() argument
779 thread__find_symbol_fb(struct thread * thread,u8 cpumode,u64 addr,struct addr_location * al) thread__find_symbol_fb() argument
[all...]
H A Dprint_insn.c50 ssize_t fprintf_insn_asm(struct machine *machine, struct thread *thread, u8 cpumode, in fprintf_insn_asm()
54 return capstone__fprintf_insn_asm(machine, thread, cpumode, is64bit, code, code_size, in sample__fprintf_insn_asm()
65 printed = fprintf_insn_asm(machine, thread, sample->cpumode, is64bit, in sample__fprintf_insn_asm()
45 fprintf_insn_asm(struct machine * machine,struct thread * thread,u8 cpumode,bool is64bit,const uint8_t * code,size_t code_size,uint64_t ip,int * lenp,int print_opts,FILE * fp) fprintf_insn_asm() argument
H A Dcapstone.h18 ssize_t capstone__fprintf_insn_asm(struct machine *machine, struct thread *thread, u8 cpumode,
29 u8 cpumode __maybe_unused, in capstone__fprintf_insn_asm()
H A Dmachine.c858 u8 cpumode = event->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; in machine__process_text_poke()
867 if (cpumode != PERF_RECORD_MISC_KERNEL) { in machine__process_text_poke()
868 pr_debug("%s: unsupported cpumode - ignoring\n", __func__); in machine__process_text_poke()
1810 if (sample->cpumode == PERF_RECORD_MISC_GUEST_KERNEL || in machine__process_mmap_event()
1811 sample->cpumode == PERF_RECORD_MISC_KERNEL) { in machine__process_mmap_event()
1867 if (sample->cpumode == PERF_RECORD_MISC_GUEST_KERNEL || in machine__process_fork_event()
1868 sample->cpumode == PERF_RECORD_MISC_KERNEL) { in machine__process_fork_event()
2117 ip__resolve_data(al->thread, al->cpumode, mem_info__daddr(mi), in append_inlines()
2210 u8 *cpumode, in add_callchain_ip()
2228 if (!cpumode) { in add_callchain_ip()
831 u8 cpumode = event->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; machine__process_text_poke() local
2150 add_callchain_ip(struct thread * thread,struct callchain_cursor * cursor,struct symbol ** parent,struct addr_location * root_al,u8 * cpumode,u64 ip,bool branch,struct branch_flags * flags,struct iterations * iter,u64 branch_from,bool symbols) add_callchain_ip() argument
2337 u8 cpumode = PERF_RECORD_MISC_USER; lbr_callchain_add_kernel_ip() local
2404 u8 cpumode = PERF_RECORD_MISC_USER; lbr_callchain_add_lbr_ip() local
2753 find_prev_cpumode(struct ip_callchain * chain,struct thread * thread,struct callchain_cursor * cursor,struct symbol ** parent,struct addr_location * root_al,u8 * cpumode,int ent,bool symbols) find_prev_cpumode() argument
2792 u8 cpumode = PERF_RECORD_MISC_USER; thread__resolve_callchain_sample() local
3190 machine__addr_cpumode(struct machine * machine,u8 cpumode,u64 addr) machine__addr_cpumode() argument
[all...]
H A Dthread.h127 struct map *thread__find_map(struct thread *thread, u8 cpumode, u64 addr,
129 struct map *thread__find_map_fb(struct thread *thread, u8 cpumode, u64 addr,
132 struct symbol *thread__find_symbol(struct thread *thread, u8 cpumode,
134 struct symbol *thread__find_symbol_fb(struct thread *thread, u8 cpumode,
H A Ddata-convert-json.c169 u8 cpumode = PERF_RECORD_MISC_USER; in process_sample_event() local
216 cpumode = PERF_RECORD_MISC_HYPERVISOR; in process_sample_event()
219 cpumode = PERF_RECORD_MISC_KERNEL; in process_sample_event()
222 cpumode = PERF_RECORD_MISC_USER; in process_sample_event()
238 ok = thread__find_symbol(al.thread, cpumode, ip, &tal); in process_sample_event()
H A Devent.h416 static inline bool perf_event_header__cpumode_is_guest(u8 cpumode) in perf_event_header__cpumode_is_guest() argument
418 return cpumode == PERF_RECORD_MISC_GUEST_KERNEL || in perf_event_header__cpumode_is_guest()
419 cpumode == PERF_RECORD_MISC_GUEST_USER; in perf_event_header__cpumode_is_guest()
H A Ddump-insn.h15 u8 cpumode; member
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 Daddr_location.h19 u8 cpumode; member
H A Daddr_location.c16 al->cpumode = 0; in addr_location__init()
H A Dcapstone.c233 static size_t print_insn_x86(struct thread *thread, u8 cpumode, struct cs_insn *insn, in capstone__fprintf_insn_asm()
244 thread__find_symbol(thread, cpumode, op->imm, &al)) { in capstone__fprintf_insn_asm()
259 ssize_t capstone__fprintf_insn_asm(struct machine *machine, struct thread *thread, u8 cpumode, in print_capstone_detail()
281 printed = print_insn_x86(thread, cpumode, &insn[0], print_opts, fp); in print_capstone_detail()
188 print_insn_x86(struct thread * thread,u8 cpumode,struct cs_insn * insn,int print_opts,FILE * fp) print_insn_x86() argument
H A Dthread.c583 u8 cpumode = PERF_RECORD_MISC_USER; in thread__memcpy()
589 cpumode = PERF_RECORD_MISC_KERNEL; in thread__memcpy()
592 if (!thread__find_map(thread, cpumode, ip, &al)) { in thread__memcpy()
568 u8 cpumode = PERF_RECORD_MISC_USER; thread__memcpy() local
H A Dsample.h188 * @cpumode: The cpumode from struct perf_event_header misc variable
192 u8 cpumode;
107 u8 cpumode; global() member
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()
1725 sample->cpumode in intel_pt_prep_b_sample()
2423 u8 cpumode; intel_pt_do_synth_pebs_sample() local
3632 intel_pt_find_map(struct thread * thread,u8 cpumode,u64 addr,struct addr_location * al) intel_pt_find_map() argument
3646 u8 cpumode = event->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; intel_pt_text_poke() local
[all...]
H 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()
H A Dannotate-data.h111 * @cpumode: CPU execution mode
125 u8 cpumode; member
H A Dpowerpc-vpadtl.c176 * - cpumode is set to PERF_RECORD_MISC_KERNEL
196 sample.cpumode = PERF_RECORD_MISC_KERNEL; in powerpc_vpadtl_sample()
201 event.sample.header.misc = sample.cpumode; in powerpc_vpadtl_sample()
/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.c378 static int read_object_code(u64 addr, size_t len, u8 cpumode, in read_object_code()
397 if (!thread__find_map(thread, cpumode, addr, &al) || !map__dso(al.map)) { in read_object_code()
398 if (cpumode == PERF_RECORD_MISC_HYPERVISOR) { in read_object_code()
493 if (cpumode == PERF_RECORD_MISC_KERNEL || in read_object_code()
494 cpumode == PERF_RECORD_MISC_GUEST_KERNEL) { in read_object_code()
556 ret = read_object_code(sample.ip, READLEN, sample.cpumode, thread, in process_sample_event()
377 read_object_code(u64 addr,size_t len,u8 cpumode,struct thread * thread,struct rb_root * tested_sections) read_object_code() argument
H A Dhists_common.c109 .cpumode = PERF_RECORD_MISC_USER, in setup_fake_machine()
/linux/tools/perf/
H A Dbuiltin-script.c1003 thread__find_map_fb(thread, sample->cpumode, from, &alf); in perf_sample__fprintf_brstack()
1004 thread__find_map_fb(thread, sample->cpumode, to, &alt); in perf_sample__fprintf_brstack()
1040 thread__find_symbol_fb(thread, sample->cpumode, from, &alf); in perf_sample__fprintf_brstacksym()
1041 thread__find_symbol_fb(thread, sample->cpumode, to, &alt); in perf_sample__fprintf_brstacksym()
1078 if (thread__find_map_fb(thread, sample->cpumode, from, &alf) && in perf_sample__fprintf_brstackoff()
1082 if (thread__find_map_fb(thread, sample->cpumode, to, &alt) && in perf_sample__fprintf_brstackoff()
1103 bool *is64bit, u8 *cpumode, bool last) in grab_bb()
1116 *cpumode = PERF_RECORD_MISC_KERNEL; in grab_bb()
1118 *cpumode = PERF_RECORD_MISC_USER; in grab_bb()
1140 if (!thread__find_map(thread, *cpumode, star in grab_bb()
1099 grab_bb(u8 * buffer,u64 start,u64 end,struct machine * machine,struct thread * thread,bool * is64bit,u8 * cpumode,bool last) grab_bb() argument
1205 print_srccode(struct thread * thread,u8 cpumode,uint64_t addr) print_srccode() argument
1311 ip__fprintf_sym(uint64_t addr,struct thread * thread,u8 cpumode,int cpu,struct symbol ** lastsym,struct evsel * evsel,FILE * fp) ip__fprintf_sym() argument
[all...]
H A Dbuiltin-inject.c738 /*misc=*/sample->cpumode, in perf_event__repipe_tracing_data()
773 sample->cpumode | PERF_RECORD_MISC_MMAP_BUILD_ID, in perf_inject__parse_known_build_ids()
1066 u16 misc = sample->cpumode; in perf_inject__sched_switch()
1169 if (thread__find_map(thread, sample->cpumode, sample->ip, &al)) { in host_peek_vm_comms_cb()
1590 .cpumode = dso__is_in_kernel_space(dso) in guest_session__exit()
1602 /*misc=*/synth_sample.cpumode, in get_tsc_conv()
1895 u8 cpumode; in host__finished_init()
1920 /* Change cpumode to guest */ in host__finished_round()
1921 cpumode = ev->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; in host__finished_round()
1922 if (cpumode in host__finished_round()
1742 u8 cpumode; guest_session__inject_events() local
[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 pydict_set_item_string_decref(dict_sample, "cpumode", in get_perf_sample_dict()
903 _PyLong_FromLong((unsigned long)sample->cpumode)); in get_perf_sample_dict()
1606 u8 cpumode = e->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; in python_process_switch()
1653 tuple_set_u32(t, 8, cpumode); in get_handler_name()
1613 u8 cpumode = e->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; python_process_auxtrace_error() local

123