| /linux-6.15/tools/perf/util/ |
| H A D | machine.h | 32 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, 175 void machine__exit(struct machine *machine); 177 void machine__delete(struct machine *machine); 231 int machine__nr_cpus_avail(struct machine *machine); [all …]
|
| H A D | machine.c | 78 memset(machine, 0, sizeof(*machine)); in machine__init() 79 machine->kmaps = maps__new(machine); in machine__init() 133 struct machine *machine = malloc(sizeof(*machine)); in machine__new_host() local 214 struct machine *pos, *machine = malloc(sizeof(*machine)); in machines__add() local 251 struct machine *machine = rb_entry(nd, struct machine, rb_node); in machines__set_comm_exec() local 261 struct machine *machine; in machines__find() local 289 if (machine && (machine->pid == pid)) in machines__findnew() 427 struct machine *machine; in machines__set_id_hdr_size() local 1435 struct machine *machine = arg; in machine__create_module() local 3176 struct machine *machine; member [all …]
|
| H A D | synthetic-events.h | 16 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); 100 int __machine__synthesize_threads(struct machine *machine, const struct perf_tool *tool, 104 int machine__synthesize_threads(struct machine *machine, struct target *target, 128 struct machine *machine, struct record_opts *opts); [all …]
|
| H A D | vdso.c | 108 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 …]
|
| H A D | event.h | 284 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 …]
|
| H A D | print_insn.c | 35 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 …]
|
| H A D | event.c | 222 struct machine *machine) in perf_event__process_comm() argument 230 struct machine *machine) in perf_event__process_namespaces() argument 246 struct machine *machine) in perf_event__process_lost() argument 254 struct machine *machine) in perf_event__process_aux() argument 262 struct machine *machine) in perf_event__process_itrace_start() argument 270 struct machine *machine) in perf_event__process_aux_output_hw_id() argument 294 struct machine *machine) in perf_event__process_ksymbol() argument 302 struct machine *machine) in perf_event__process_bpf() argument 310 struct machine *machine) in perf_event__process_text_poke() argument 432 struct machine *machine) in perf_event__exit_del_thread() argument [all …]
|
| H A D | synthetic-events.c | 53 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 550 struct machine *machine) in perf_event__synthesize_cgroup() argument 590 struct machine *machine) in perf_event__walk_cgroup_tree() argument 636 struct machine *machine) in perf_event__synthesize_cgroups() argument 672 struct machine *machine; member 729 .machine = machine, in perf_event__synthesize_modules() 1000 struct machine *machine; member 1073 args[i].machine = machine; in perf_event__synthesize_threads() [all …]
|
| H A D | db-export.h | 14 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);
|
| H A D | db-export.c | 49 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 296 struct machine *machine, struct comm **comm_ptr) in db_export__threads() argument 361 struct machine *machine; in db_export__sample() local 368 machine = maps__machine(al->maps); in db_export__sample() 528 static int db_export__pid_tid(struct db_export *dbe, struct machine *machine, in db_export__pid_tid() argument [all …]
|
| H A D | dlfilter.h | 14 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()
|
| H A D | dwarf-regs.c | 33 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()
|
| H A D | dso.c | 476 struct machine *machine) in dso__set_module_info() argument 566 static int __open_dso(struct dso *dso, struct machine *machine) in __open_dso() argument 578 if (machine) in __open_dso() 632 static int open_dso(struct dso *dso, struct machine *machine) in open_dso() argument 999 struct machine *machine, in dso_cache__populate() argument 1040 struct machine *machine, in dso_cache__find() argument 1096 static int file_size(struct dso *dso, struct machine *machine) in file_size() argument 1130 int dso__data_file_size(struct dso *dso, struct machine *machine) in dso__data_file_size() argument 1151 off_t dso__data_size(struct dso *dso, struct machine *machine) in dso__data_size() argument 1270 struct machine *machine, u64 addr, in dso__data_read_addr() argument [all …]
|
| H A D | bpf-event.c | 35 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() 72 int machine__process_bpf(struct machine *machine, union perf_event *event, in machine__process_bpf() argument 166 struct machine *machine, in perf_event__synthesize_one_bpf_prog() argument 266 machine, process); in perf_event__synthesize_one_bpf_prog() 303 machine, process); in perf_event__synthesize_one_bpf_prog() 315 struct machine *machine; member 322 struct machine *machine = data->machine; in process_bpf_image() local 383 struct machine *machine, in perf_event__synthesize_bpf_events() argument 423 machine, fd, in perf_event__synthesize_bpf_events() [all …]
|
| /linux-6.15/arch/arm/ |
| H A D | Makefile | 179 machine-$(CONFIG_ARCH_AT91) += at91 181 machine-$(CONFIG_ARCH_BCM) += bcm 186 machine-$(CONFIG_ARCH_DOVE) += dove 191 machine-$(CONFIG_ARCH_HISI) += hisi 192 machine-$(CONFIG_ARCH_HPE) += hpe 198 machine-$(CONFIG_ARCH_MMP) += mmp 201 machine-$(CONFIG_ARCH_MXC) += imx 204 machine-$(CONFIG_ARCH_MXS) += mxs 211 machine-$(CONFIG_ARCH_PXA) += pxa 215 machine-$(CONFIG_ARCH_RPC) += rpc [all …]
|
| /linux-6.15/tools/perf/tests/ |
| H A D | dso-data.c | 107 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 …]
|
| H A D | thread-maps-share.c | 10 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 …]
|
| H A D | symbols.c | 16 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() 85 *map_p = find_module_map(ti->machine, dso); in create_map() 144 static int subdivided_dso_cb(struct dso *dso, struct machine *machine __maybe_unused, void *d) in subdivided_dso_cb() 155 static int process_subdivided_dso(struct machine *machine, struct dso *dso) in process_subdivided_dso() argument [all …]
|
| H A D | dwarf-unwind.c | 43 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 …]
|
| H A D | mmap-thread-lookup.c | 132 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()
|
| H A D | hists_cumulate.c | 80 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 …]
|
| /linux-6.15/sound/soc/tegra/ |
| H A D | tegra_asoc_machine.c | 146 if (machine->gpiod_hp_det && machine->asoc->add_hp_jack) { in tegra_asoc_machine_init() 171 if (machine->gpiod_hp_det && machine->asoc->add_headset_jack) { in tegra_asoc_machine_init() 191 if (machine->gpiod_mic_det && machine->asoc->add_mic_jack) { in tegra_asoc_machine_init() 335 machine->set_baseclock = 0; in tegra_machine_hw_params() 336 machine->set_mclk = 0; in tegra_machine_hw_params() 361 machine->set_mclk = mclk; in tegra_machine_hw_params() 431 struct tegra_machine *machine; in tegra_asoc_machine_probe() local 436 machine = devm_kzalloc(dev, sizeof(*machine), GFP_KERNEL); in tegra_asoc_machine_probe() 437 if (!machine) in tegra_asoc_machine_probe() 444 machine->asoc = asoc; in tegra_asoc_machine_probe() [all …]
|
| /linux-6.15/tools/perf/arch/x86/util/ |
| H A D | event.c | 20 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()
|
| /linux-6.15/tools/perf/ |
| H A D | builtin-inject.c | 146 struct machine *machine, 153 struct machine *machine, 469 struct machine *machine, in perf_event__repipe_common_mmap() argument 574 struct machine *machine) in perf_event__repipe_mmap() argument 588 struct machine *machine) in perf_event__repipe_mmap2() argument 639 struct machine *machine) in perf_event__repipe_namespaces() argument 759 struct machine *machine, in tool__inject_build_id() argument 836 struct machine *machine, in mark_dso_hit() argument 898 struct machine *machine; member 927 .machine = machine, in perf_event__inject_buildid() [all …]
|
| /linux-6.15/arch/nios2/platform/ |
| H A D | platform.c | 29 const char *machine; in nios2_soc_device_init() local 33 machine = of_flat_dt_get_machine_name(); in nios2_soc_device_init() 34 if (machine) in nios2_soc_device_init() 35 soc_dev_attr->machine = kasprintf(GFP_KERNEL, "%s", in nios2_soc_device_init() 36 machine); in nios2_soc_device_init() 42 kfree(soc_dev_attr->machine); in nios2_soc_device_init()
|