Home
last modified time | relevance | path

Searched refs:machine (Results 1 – 25 of 154) sorted by relevance

1234567

/tools/perf/util/
Dmachine.h32 struct machine { struct
67 struct map *machine__kernel_map(struct machine *machine) in machine__kernel_map() argument
69 return machine->vmlinux_map; in machine__kernel_map()
76 struct maps *machine__kernel_maps(struct machine *machine) in machine__kernel_maps() argument
78 return machine->kmaps; in machine__kernel_maps()
81 int machine__get_kernel_start(struct machine *machine);
83 static inline u64 machine__kernel_start(struct machine *machine) in machine__kernel_start() argument
85 if (!machine->kernel_start) in machine__kernel_start()
86 machine__get_kernel_start(machine); in machine__kernel_start()
87 return machine->kernel_start; in machine__kernel_start()
[all …]
Dsynthetic-events.h16 struct machine;
45 struct perf_sample *sample, struct machine *machine);
51 struct machine *machine,
59 struct machine *machine,
68 …ol *tool, const struct perf_cpu_map *cpus, perf_event__handler_t process, struct machine *machine);
74 …_extra_kmaps(const struct perf_tool *tool, perf_event__handler_t process, struct machine *machine);
76 …ct perf_tool *tool, perf_event__handler_t process, struct evlist *evlist, struct machine *machine);
77 …*tool, perf_event__handler_t process, struct evlist *evlist, struct machine *machine, size_t from);
79 …_kernel_mmap(const struct perf_tool *tool, perf_event__handler_t process, struct machine *machine);
80 …event, pid_t pid, pid_t tgid, perf_event__handler_t process, struct machine *machine, bool mmap_da…
[all …]
Dmachine.c47 static struct dso *machine__kernel_dso(struct machine *machine) in machine__kernel_dso() argument
49 return map__dso(machine->vmlinux_map); in machine__kernel_dso()
52 static int machine__set_mmap_name(struct machine *machine) in machine__set_mmap_name() argument
54 if (machine__is_host(machine)) in machine__set_mmap_name()
55 machine->mmap_name = strdup("[kernel.kallsyms]"); in machine__set_mmap_name()
56 else if (machine__is_default_guest(machine)) in machine__set_mmap_name()
57 machine->mmap_name = strdup("[guest.kernel.kallsyms]"); in machine__set_mmap_name()
58 else if (asprintf(&machine->mmap_name, "[guest.kernel.kallsyms.%d]", in machine__set_mmap_name()
59 machine->pid) < 0) in machine__set_mmap_name()
60 machine->mmap_name = NULL; in machine__set_mmap_name()
[all …]
Dvdso.c108 void machine__exit_vdso(struct machine *machine) in machine__exit_vdso() argument
110 struct vdso_info *vdso_info = machine->vdso_info; in machine__exit_vdso()
124 zfree(&machine->vdso_info); in machine__exit_vdso()
127 static struct dso *__machine__addnew_vdso(struct machine *machine, const char *short_name, in __machine__addnew_vdso() argument
134 __dsos__add(&machine->dsos, dso); in __machine__addnew_vdso()
142 struct machine *machine; member
154 args->dso_type = dso__type(dso, args->machine); in machine__thread_dso_type_maps_cb()
158 static enum dso_type machine__thread_dso_type(struct machine *machine, in machine__thread_dso_type() argument
162 .machine = machine, in machine__thread_dso_type()
247 static struct dso *__machine__findnew_compat(struct machine *machine, in __machine__findnew_compat() argument
[all …]
Dprint_insn.c35 int capstone_init(struct machine *machine, csh *cs_handle, bool is64, bool disassembler_style);
37 int capstone_init(struct machine *machine, csh *cs_handle, bool is64, bool disassembler_style) in capstone_init() argument
42 if (machine__is(machine, "x86_64") && is64) { in capstone_init()
45 } else if (machine__normalized_is(machine, "x86")) { in capstone_init()
48 } else if (machine__normalized_is(machine, "arm64")) { in capstone_init()
51 } else if (machine__normalized_is(machine, "arm")) { in capstone_init()
54 } else if (machine__normalized_is(machine, "s390")) { in capstone_init()
66 if (machine__normalized_is(machine, "x86")) { in capstone_init()
110 static bool is64bitip(struct machine *machine, struct addr_location *al) in is64bitip() argument
117 return machine__is(machine, "x86_64") || in is64bitip()
[all …]
Devent.h16 struct machine;
273 struct machine *machine);
277 struct machine *machine);
281 struct machine *machine);
285 struct machine *machine);
289 struct machine *machine);
293 struct machine *machine);
297 struct machine *machine);
301 struct machine *machine);
305 struct machine *machine);
[all …]
Ddb-export.h14 struct machine;
43 int (*export_machine)(struct db_export *dbe, struct machine *machine);
45 u64 main_thread_db_id, struct machine *machine);
51 struct machine *machine);
61 struct machine *machine,
83 int db_export__machine(struct db_export *dbe, struct machine *machine);
85 struct machine *machine, struct thread *main_thread);
93 struct machine *machine);
108 struct perf_sample *sample, struct machine *machine);
Devent.c222 struct machine *machine) in perf_event__process_comm() argument
224 return machine__process_comm_event(machine, event, sample); in perf_event__process_comm()
230 struct machine *machine) in perf_event__process_namespaces() argument
232 return machine__process_namespaces_event(machine, event, sample); in perf_event__process_namespaces()
238 struct machine *machine) in perf_event__process_cgroup() argument
240 return machine__process_cgroup_event(machine, event, sample); in perf_event__process_cgroup()
246 struct machine *machine) in perf_event__process_lost() argument
248 return machine__process_lost_event(machine, event, sample); in perf_event__process_lost()
254 struct machine *machine) in perf_event__process_aux() argument
256 return machine__process_aux_event(machine, event); in perf_event__process_aux()
[all …]
Ddlfilter.h14 struct machine;
34 struct machine *machine; member
62 struct machine *machine,
73 struct machine *machine, in dlfilter__filter_event() argument
79 return dlfilter__do_filter_event(d, event, sample, evsel, machine, al, addr_al, false); in dlfilter__filter_event()
86 struct machine *machine, in dlfilter__filter_event_early() argument
92 return dlfilter__do_filter_event(d, event, sample, evsel, machine, al, addr_al, true); in dlfilter__filter_event_early()
Dsynthetic-events.c52 struct machine *machine, in perf_tool__process_synth_event() argument
65 return process(tool, event, &synth_sample, machine); in perf_tool__process_synth_event()
154 struct machine *machine, in perf_event__prepare_comm() argument
163 if (machine__is_host(machine)) { in perf_event__prepare_comm()
170 *tgid = machine->pid; in perf_event__prepare_comm()
181 memset(event->comm.comm + size, 0, machine->id_hdr_size); in perf_event__prepare_comm()
184 machine->id_hdr_size); in perf_event__prepare_comm()
193 struct machine *machine) in perf_event__synthesize_comm() argument
198 if (perf_event__prepare_comm(event, 0, pid, machine, &tgid, &ppid, in perf_event__synthesize_comm()
202 if (perf_tool__process_synth_event(tool, event, machine, process) != 0) in perf_event__synthesize_comm()
[all …]
Dvdso.h24 struct machine;
27 struct dso *machine__findnew_vdso(struct machine *machine, struct thread *thread);
28 void machine__exit_vdso(struct machine *machine);
Ddb-export.c49 int db_export__machine(struct db_export *dbe, struct machine *machine) in db_export__machine() argument
51 if (machine->db_id) in db_export__machine()
54 machine->db_id = ++dbe->machine_last_db_id; in db_export__machine()
57 return dbe->export_machine(dbe, machine); in db_export__machine()
63 struct machine *machine, struct thread *main_thread) in db_export__thread() argument
77 machine); in db_export__thread()
147 struct machine *machine) in db_export__dso() argument
155 return dbe->export_dso(dbe, dso, machine); in db_export__dso()
210 struct machine *machine, in call_path_from_sample() argument
215 u64 kernel_start = machine__kernel_start(machine); in call_path_from_sample()
[all …]
Dprint_insn.h10 struct machine;
16 struct machine *machine, FILE *fp, struct addr_location *al);
18 ssize_t fprintf_insn_asm(struct machine *machine, struct thread *thread, u8 cpumode,
Dunwind-libunwind.c21 struct machine *machine; in unwind__prepare_access() local
34 machine = maps__machine(maps); in unwind__prepare_access()
36 if (!machine->env || !machine->env->arch) in unwind__prepare_access()
39 dso_type = dso__type(dso, machine); in unwind__prepare_access()
43 arch = perf_env__arch(machine->env); in unwind__prepare_access()
Ddwarf-regs.c40 const char *get_dwarf_regstr(unsigned int n, unsigned int machine) in get_dwarf_regstr() argument
42 switch (machine) { in get_dwarf_regstr()
70 pr_err("ELF MACHINE %x is not supported.\n", machine); in get_dwarf_regstr()
81 int get_dwarf_regnum(const char *name, unsigned int machine) in get_dwarf_regnum() argument
95 switch (machine) { in get_dwarf_regnum()
100 pr_err("ELF MACHINE %x is not supported.\n", machine); in get_dwarf_regnum()
Dtool.h15 struct machine;
20 struct evsel *evsel, struct machine *machine);
23 struct perf_sample *sample, struct machine *machine);
100 struct machine *machine);
Dbpf-event.h11 struct machine;
33 int machine__process_bpf(struct machine *machine, union perf_event *event,
40 static inline int machine__process_bpf(struct machine *machine __maybe_unused, in machine__process_bpf()
Dbpf-event.c35 static int machine__process_bpf_event_load(struct machine *machine, in machine__process_bpf_event_load() argument
40 struct perf_env *env = machine->env; in machine__process_bpf_event_load()
57 struct map *map = maps__find(machine__kernel_maps(machine), addr); in machine__process_bpf_event_load()
72 int machine__process_bpf(struct machine *machine, union perf_event *event, in machine__process_bpf() argument
80 return machine__process_bpf_event_load(machine, event, sample); in machine__process_bpf()
166 struct machine *machine, in perf_event__synthesize_one_bpf_prog() argument
263 memset((void *)event + event->header.size, 0, machine->id_hdr_size); in perf_event__synthesize_one_bpf_prog()
264 event->header.size += machine->id_hdr_size; in perf_event__synthesize_one_bpf_prog()
266 machine, process); in perf_event__synthesize_one_bpf_prog()
281 memset((void *)event + event->header.size, 0, machine->id_hdr_size); in perf_event__synthesize_one_bpf_prog()
[all …]
/tools/perf/tests/
Ddso-data.c107 static int dso__data_fd(struct dso *dso, struct machine *machine) in dso__data_fd() argument
109 int fd = dso__data_get_fd(dso, machine); in dso__data_fd()
119 struct machine machine; in test__dso_data() local
126 memset(&machine, 0, sizeof(machine)); in test__dso_data()
127 dsos__init(&machine.dsos); in test__dso_data()
130 TEST_ASSERT_VAL("Failed to add dso", !dsos__add(&machine.dsos, dso)); in test__dso_data()
132 dso__data_fd(dso, &machine) >= 0); in test__dso_data()
141 size = dso__data_read_offset(dso, &machine, data->offset, in test__dso_data()
160 size = dso__data_read_offset(dso, &machine, 10, in test__dso_data()
175 dsos__exit(&machine.dsos); in test__dso_data()
[all …]
Dthread-maps-share.c10 struct machine *machine; in test__thread_maps_share() local
31 machine = &machines.host; in test__thread_maps_share()
34 leader = machine__findnew_thread(machine, 0, 0); in test__thread_maps_share()
35 t1 = machine__findnew_thread(machine, 0, 1); in test__thread_maps_share()
36 t2 = machine__findnew_thread(machine, 0, 2); in test__thread_maps_share()
37 t3 = machine__findnew_thread(machine, 0, 3); in test__thread_maps_share()
40 other = machine__findnew_thread(machine, 4, 5); in test__thread_maps_share()
58 other_leader = machine__find_thread(machine, 4, 4); in test__thread_maps_share()
66 machine__remove_thread(machine, leader); in test__thread_maps_share()
67 machine__remove_thread(machine, t1); in test__thread_maps_share()
[all …]
Dsymbols.c16 struct machine *machine; member
22 ti->machine = machine__new_host(); in init_test_info()
23 if (!ti->machine) { in init_test_info()
29 ti->thread = machine__findnew_thread(ti->machine, 100, 100); in init_test_info()
41 machine__delete(ti->machine); in exit_test_info()
59 static struct map *find_module_map(struct machine *machine, struct dso *dso) in find_module_map() argument
63 machine__for_each_kernel_map(machine, find_map_cb, &data); in find_module_map()
78 struct dso *dso = machine__findnew_dso(ti->machine, filename); in create_map()
85 *map_p = find_module_map(ti->machine, dso); in create_map()
99 *map_p = map__new(ti->machine, 0x100000, 0xffffffff, 0, NULL, in create_map()
[all …]
Ddwarf-unwind.c43 struct machine *machine) in mmap_handler() argument
45 return machine__process_mmap2_event(machine, event, sample); in mmap_handler()
48 static int init_live_machine(struct machine *machine) in init_live_machine() argument
55 mmap_handler, machine, true); in init_live_machine()
202 struct machine *machine; in test__dwarf_unwind() local
206 machine = machine__new_host(); in test__dwarf_unwind()
207 if (!machine) { in test__dwarf_unwind()
212 if (machine__create_kernel_maps(machine)) { in test__dwarf_unwind()
220 if (init_live_machine(machine)) { in test__dwarf_unwind()
226 machine__fprintf(machine, stderr); in test__dwarf_unwind()
[all …]
Dmmap-thread-lookup.c132 typedef int (*synth_cb)(struct machine *machine);
134 static int synth_all(struct machine *machine) in synth_all() argument
138 machine, 1, 0, 1); in synth_all()
141 static int synth_process(struct machine *machine) in synth_process() argument
150 machine, 1, 0); in synth_process()
158 struct machine *machine; in mmap_events() local
170 machine = machine__new_host(); in mmap_events()
174 err = synth(machine); in mmap_events()
191 thread = machine__findnew_thread(machine, getpid(), td->tid); in mmap_events()
211 machine__delete(machine); in mmap_events()
Dhists_cumulate.c80 static int add_hist_entries(struct hists *hists, struct machine *machine) in add_hist_entries() argument
106 if (machine__resolve(machine, &al, &sample) < 0) in add_hist_entries()
164 typedef int (*test_fn_t)(struct evsel *, struct machine *);
263 static int test1(struct evsel *evsel, struct machine *machine) in test1() argument
301 err = add_hist_entries(hists, machine); in test1()
314 static int test2(struct evsel *evsel, struct machine *machine) in test2() argument
448 err = add_hist_entries(hists, machine); in test2()
462 static int test3(struct evsel *evsel, struct machine *machine) in test3() argument
506 err = add_hist_entries(hists, machine); in test3()
519 static int test4(struct evsel *evsel, struct machine *machine) in test4() argument
[all …]
/tools/perf/arch/x86/util/
Devent.c20 struct machine *machine; member
38 args->machine->id_hdr_size; in perf_event__synthesize_extra_kmaps_cb()
48 if (machine__is_host(args->machine)) in perf_event__synthesize_extra_kmaps_cb()
58 event->mmap.pid = args->machine->pid; in perf_event__synthesize_extra_kmaps_cb()
62 if (perf_tool__process_synth_event(args->tool, event, args->machine, args->process) != 0) in perf_event__synthesize_extra_kmaps_cb()
70 struct machine *machine) in perf_event__synthesize_extra_kmaps() argument
73 struct maps *kmaps = machine__kernel_maps(machine); in perf_event__synthesize_extra_kmaps()
77 .machine = machine, in perf_event__synthesize_extra_kmaps()
78 .event = zalloc(sizeof(args.event->mmap) + machine->id_hdr_size), in perf_event__synthesize_extra_kmaps()

1234567