Home
last modified time | relevance | path

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

1234567

/tools/perf/util/
A Dmachine.h32 struct machine { struct
73 struct map *machine__kernel_map(struct machine *machine) in machine__kernel_map() argument
82 struct maps *machine__kernel_maps(struct machine *machine) in machine__kernel_maps() argument
87 int machine__get_kernel_start(struct machine *machine);
121 int machine__process_aux_event(struct machine *machine,
139 int machine__process_ksymbol(struct machine *machine,
142 int machine__process_text_poke(struct machine *machine,
176 void machine__exit(struct machine *machine);
178 void machine__delete(struct machine *machine);
232 int machine__nr_cpus_avail(struct machine *machine);
[all …]
A Dmachine.c79 memset(machine, 0, sizeof(*machine)); in machine__init()
80 machine->kmaps = maps__new(machine); in machine__init()
134 struct machine *machine = malloc(sizeof(*machine)); in __machine__new_host() local
157 struct machine *machine) in mmap_handler() argument
249 struct machine *pos, *machine = malloc(sizeof(*machine)); in machines__add() local
286 struct machine *machine = rb_entry(nd, struct machine, rb_node); in machines__set_comm_exec() local
296 struct machine *machine; in machines__find() local
462 struct machine *machine; in machines__set_id_hdr_size() local
1470 struct machine *machine = arg; in machine__create_module() local
3213 struct machine *machine; member
[all …]
A Dsynthetic-events.h16 struct machine;
45 struct perf_sample *sample, struct machine *machine);
51 struct machine *machine,
59 struct machine *machine,
74 …_extra_kmaps(const struct perf_tool *tool, perf_event__handler_t process, struct machine *machine);
81 …size_modules(const struct perf_tool *tool, perf_event__handler_t process, struct machine *machine);
83 …size_cgroups(const struct perf_tool *tool, perf_event__handler_t process, struct machine *machine);
102 int __machine__synthesize_threads(struct machine *machine, const struct perf_tool *tool,
106 int machine__synthesize_threads(struct machine *machine, struct target *target,
130 struct machine *machine, struct record_opts *opts);
[all …]
A Dvdso.c108 void machine__exit_vdso(struct machine *machine) in machine__exit_vdso() argument
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
142 struct machine *machine; member
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
264 static int __machine__findnew_vdso_compat(struct machine *machine, in __machine__findnew_vdso_compat() argument
298 static struct dso *machine__find_vdso(struct machine *machine, in machine__find_vdso() argument
330 struct dso *machine__findnew_vdso(struct machine *machine, in machine__findnew_vdso() argument
[all …]
A 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()
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()
119 machine__normalized_is(machine, "s390"); in is64bitip()
122 ssize_t fprintf_insn_asm(struct machine *machine, struct thread *thread, u8 cpumode, in fprintf_insn_asm() argument
155 struct machine *machine, FILE *fp, in sample__fprintf_insn_asm() argument
158 bool is64bit = is64bitip(machine, al); in sample__fprintf_insn_asm()
[all …]
A Devent.h284 struct machine *machine);
288 struct machine *machine);
296 struct machine *machine);
304 struct machine *machine);
312 struct machine *machine);
320 struct machine *machine);
336 struct machine *machine);
340 struct machine *machine);
344 struct machine *machine);
348 struct machine *machine);
[all …]
A 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);
A Devent.c227 struct machine *machine) in perf_event__process_comm() argument
235 struct machine *machine) in perf_event__process_namespaces() argument
251 struct machine *machine) in perf_event__process_lost() argument
259 struct machine *machine) in perf_event__process_aux() argument
267 struct machine *machine) in perf_event__process_itrace_start() argument
275 struct machine *machine) in perf_event__process_aux_output_hw_id() argument
299 struct machine *machine) in perf_event__process_ksymbol() argument
307 struct machine *machine) in perf_event__process_bpf() argument
315 struct machine *machine) in perf_event__process_text_poke() argument
437 struct machine *machine) in perf_event__exit_del_thread() argument
[all …]
A Ddwarf-regs.c33 const char *get_dwarf_regstr(unsigned int n, unsigned int machine, unsigned int flags) in get_dwarf_regstr() argument
35 if (machine == EM_NONE) { in get_dwarf_regstr()
37 machine = EM_HOST; in get_dwarf_regstr()
39 switch (machine) { in get_dwarf_regstr()
69 pr_err("ELF MACHINE %x is not supported.\n", machine); in get_dwarf_regstr()
82 int get_dwarf_regnum(const char *name, unsigned int machine, unsigned int flags __maybe_unused) in get_dwarf_regnum() argument
96 if (machine == EM_NONE) { in get_dwarf_regnum()
98 machine = EM_HOST; in get_dwarf_regnum()
100 switch (machine) { in get_dwarf_regnum()
112 pr_err("ELF MACHINE %x is not supported.\n", machine); in get_dwarf_regnum()
A 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()
A Dsynthetic-events.c53 struct machine *machine, in perf_tool__process_synth_event() argument
155 struct machine *machine, in perf_event__prepare_comm() argument
194 struct machine *machine) in perf_event__synthesize_comm() argument
226 struct machine *machine) in perf_event__synthesize_namespaces() argument
556 struct machine *machine) in perf_event__synthesize_cgroup() argument
596 struct machine *machine) in perf_event__walk_cgroup_tree() argument
678 struct machine *machine; member
735 .machine = machine, in perf_event__synthesize_modules()
1006 struct machine *machine; member
1079 args[i].machine = machine; in perf_event__synthesize_threads()
[all …]
A Dvdso.h24 struct machine;
27 struct dso *machine__findnew_vdso(struct machine *machine, struct thread *thread);
28 void machine__exit_vdso(struct machine *machine);
A 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()
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
210 struct machine *machine, in call_path_from_sample() argument
297 struct machine *machine, struct comm **comm_ptr) in db_export__threads() argument
362 struct machine *machine = NULL; in db_export__sample() local
367 if (!machine) in db_export__sample()
533 static int db_export__pid_tid(struct db_export *dbe, struct machine *machine, in db_export__pid_tid() argument
[all …]
A 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,
A 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()
A Dtool.h15 struct machine;
20 struct evsel *evsel, struct machine *machine);
23 struct perf_sample *sample, struct machine *machine);
101 struct machine *machine);
A Dkwork.h162 struct machine *machine);
171 struct perf_sample *sample, struct machine *machine);
175 struct perf_sample *sample, struct machine *machine);
179 struct perf_sample *sample, struct machine *machine);
183 struct perf_sample *sample, struct machine *machine);
A Dbpf-event.h11 struct machine;
40 int machine__process_bpf(struct machine *machine, union perf_event *event,
48 static inline int machine__process_bpf(struct machine *machine __maybe_unused, in machine__process_bpf()
/tools/perf/tests/
A Ddso-data.c107 static int dso__data_fd(struct dso *dso, struct machine *machine) in dso__data_fd() argument
130 struct machine machine; in test__dso_data() local
137 memset(&machine, 0, sizeof(machine)); in test__dso_data()
138 dsos__init(&machine.dsos); in test__dso_data()
186 dsos__delete(&machine.dsos); in test__dso_data()
251 struct machine machine; in test__dso_data_cache() local
258 memset(&machine, 0, sizeof(machine)); in test__dso_data_cache()
293 fd = dso__data_fd(machine.dsos.dsos[i], &machine); in test__dso_data_cache()
300 dsos__delete(&machine.dsos); in test__dso_data_cache()
321 struct machine machine; in test__dso_data_reopen() local
[all …]
A 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()
66 machine__remove_thread(machine, leader); in test__thread_maps_share()
67 machine__remove_thread(machine, t1); in test__thread_maps_share()
68 machine__remove_thread(machine, t2); in test__thread_maps_share()
69 machine__remove_thread(machine, t3); in test__thread_maps_share()
[all …]
A Dsymbols.c18 struct machine *machine; member
25 ti->machine = machine__new_host(&ti->host_env); in init_test_info()
26 if (!ti->machine) { in init_test_info()
33 ti->thread = machine__findnew_thread(ti->machine, 100, 100); in init_test_info()
46 machine__delete(ti->machine); in exit_test_info()
65 static struct map *find_module_map(struct machine *machine, struct dso *dso) in find_module_map() argument
69 machine__for_each_kernel_map(machine, find_map_cb, &data); in find_module_map()
91 *map_p = find_module_map(ti->machine, dso); in create_map()
150 static int subdivided_dso_cb(struct dso *dso, struct machine *machine __maybe_unused, void *d) in subdivided_dso_cb()
161 static int process_subdivided_dso(struct machine *machine, struct dso *dso) in process_subdivided_dso() argument
[all …]
A Dmmap-thread-lookup.c133 typedef int (*synth_cb)(struct machine *machine);
135 static int synth_all(struct machine *machine) in synth_all() argument
139 machine, 1, 0, 1); in synth_all()
142 static int synth_process(struct machine *machine) in synth_process() argument
151 machine, 1, 0); in synth_process()
160 struct machine *machine; in mmap_events() local
173 machine = machine__new_host(&host_env); in mmap_events()
177 err = synth(machine); in mmap_events()
194 thread = machine__findnew_thread(machine, getpid(), td->tid); in mmap_events()
214 machine__delete(machine); in mmap_events()
A Dhists_cumulate.c80 static int add_hist_entries(struct hists *hists, struct machine *machine) in add_hist_entries() argument
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
519 static int test4(struct evsel *evsel, struct machine *machine) in test4() argument
709 struct machine *machine; in test__hists_cumulate() local
731 if (!machine) in test__hists_cumulate()
735 machine__fprintf(machine, stderr); in test__hists_cumulate()
[all …]
/tools/perf/arch/x86/util/
A 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()
/tools/perf/
A Dbuiltin-kallsyms.c24 struct machine *machine = NULL; in __cmd_kallsyms() local
32 machine = machine__new_kallsyms(&host_env); in __cmd_kallsyms()
33 if (machine == NULL) { in __cmd_kallsyms()
42 struct symbol *symbol = machine__find_kernel_symbol_by_name(machine, argv[i], &map); in __cmd_kallsyms()
56 machine__delete(machine); in __cmd_kallsyms()

Completed in 54 milliseconds

1234567