Home
last modified time | relevance | path

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

12345678910>>...30

/Linux-v6.1/tools/perf/util/
Dmachine.h42 struct machine { struct
69 static inline struct threads *machine__threads(struct machine *machine, pid_t tid) in machine__threads() argument
72 return &machine->threads[(unsigned int)tid % THREADS__TABLE_SIZE]; in machine__threads()
79 struct map *machine__kernel_map(struct machine *machine) in machine__kernel_map() argument
81 return machine->vmlinux_map; in machine__kernel_map()
88 struct maps *machine__kernel_maps(struct machine *machine) in machine__kernel_maps() argument
90 return machine->kmaps; in machine__kernel_maps()
93 int machine__get_kernel_start(struct machine *machine);
95 static inline u64 machine__kernel_start(struct machine *machine) in machine__kernel_start() argument
97 if (!machine->kernel_start) in machine__kernel_start()
[all …]
Dmachine.c46 static void __machine__remove_thread(struct machine *machine, struct thread *th, bool lock);
48 static struct dso *machine__kernel_dso(struct machine *machine) in machine__kernel_dso() argument
50 return machine->vmlinux_map->dso; in machine__kernel_dso()
60 static void machine__threads_init(struct machine *machine) in machine__threads_init() argument
65 struct threads *threads = &machine->threads[i]; in machine__threads_init()
74 static int machine__set_mmap_name(struct machine *machine) in machine__set_mmap_name() argument
76 if (machine__is_host(machine)) in machine__set_mmap_name()
77 machine->mmap_name = strdup("[kernel.kallsyms]"); in machine__set_mmap_name()
78 else if (machine__is_default_guest(machine)) in machine__set_mmap_name()
79 machine->mmap_name = strdup("[guest.kernel.kallsyms]"); in machine__set_mmap_name()
[all …]
Dsynthetic-events.h15 struct machine;
44 struct perf_sample *sample, struct machine *machine);
48 …erf_tool *tool, struct dso *pos, u16 misc, perf_event__handler_t process, struct machine *machine);
49 …ol *tool, const struct perf_cpu_map *cpus, perf_event__handler_t process, struct machine *machine);
55 …hesize_extra_kmaps(struct perf_tool *tool, perf_event__handler_t process, struct machine *machine);
57 …ct perf_tool *tool, perf_event__handler_t process, struct evlist *evlist, struct machine *machine);
58 …*tool, perf_event__handler_t process, struct evlist *evlist, struct machine *machine, size_t from);
60 …hesize_kernel_mmap(struct perf_tool *tool, perf_event__handler_t process, struct machine *machine);
61 …event, pid_t pid, pid_t tgid, perf_event__handler_t process, struct machine *machine, bool mmap_da…
62 …synthesize_modules(struct perf_tool *tool, perf_event__handler_t process, struct machine *machine);
[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()
143 static enum dso_type machine__thread_dso_type(struct machine *machine, in machine__thread_dso_type() argument
153 dso_type = dso__type(dso, machine); in machine__thread_dso_type()
237 static struct dso *__machine__findnew_compat(struct machine *machine, in __machine__findnew_compat() argument
243 dso = __dsos__find(&machine->dsos, vdso_file->dso_name, true); in __machine__findnew_compat()
251 dso = __machine__addnew_vdso(machine, vdso_file->dso_name, file_name); in __machine__findnew_compat()
[all …]
Devent.h18 struct machine;
383 struct machine *machine);
387 struct machine *machine);
391 struct machine *machine);
395 struct machine *machine);
399 struct machine *machine);
403 struct machine *machine);
407 struct machine *machine);
411 struct machine *machine);
415 struct machine *machine);
[all …]
Devent.c197 struct machine *machine) in perf_event__process_comm() argument
199 return machine__process_comm_event(machine, event, sample); in perf_event__process_comm()
205 struct machine *machine) in perf_event__process_namespaces() argument
207 return machine__process_namespaces_event(machine, event, sample); in perf_event__process_namespaces()
213 struct machine *machine) in perf_event__process_cgroup() argument
215 return machine__process_cgroup_event(machine, event, sample); in perf_event__process_cgroup()
221 struct machine *machine) in perf_event__process_lost() argument
223 return machine__process_lost_event(machine, event, sample); in perf_event__process_lost()
229 struct machine *machine) in perf_event__process_aux() argument
231 return machine__process_aux_event(machine, event); in perf_event__process_aux()
[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);
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 …]
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()
184 err = db_export__dso(dbe, dso, al->maps->machine); in db_ids_from_al()
210 struct machine *machine, in call_path_from_sample() argument
[all …]
Ddso.h15 struct machine;
276 struct machine *machine);
306 struct machine *machine);
353 int dso__data_get_fd(struct dso *dso, struct machine *machine);
357 int dso__data_file_size(struct dso *dso, struct machine *machine);
358 off_t dso__data_size(struct dso *dso, struct machine *machine);
359 ssize_t dso__data_read_offset(struct dso *dso, struct machine *machine,
362 struct machine *machine, u64 addr,
365 ssize_t dso__data_write_cache_offs(struct dso *dso, struct machine *machine,
368 struct machine *machine, u64 addr,
[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()
Ddso.c434 struct machine *machine) in dso__set_module_info() argument
436 if (machine__is_host(machine)) in dso__set_module_info()
494 static int __open_dso(struct dso *dso, struct machine *machine) in __open_dso() argument
505 if (machine) in __open_dso()
506 root_dir = machine->root_dir; in __open_dso()
559 static int open_dso(struct dso *dso, struct machine *machine) in open_dso() argument
569 fd = __open_dso(dso, machine); in open_dso()
683 static void try_to_open_dso(struct dso *dso, struct machine *machine) in try_to_open_dso() argument
696 dso->data.fd = open_dso(dso, machine); in try_to_open_dso()
703 dso->data.fd = open_dso(dso, machine); in try_to_open_dso()
[all …]
Dbpf-event.c101 static int machine__process_bpf_event_load(struct machine *machine, in machine__process_bpf_event_load() argument
106 struct perf_env *env = machine->env; in machine__process_bpf_event_load()
123 struct map *map = maps__find(machine__kernel_maps(machine), addr); in machine__process_bpf_event_load()
135 int machine__process_bpf(struct machine *machine, union perf_event *event, in machine__process_bpf() argument
143 return machine__process_bpf_event_load(machine, event, sample); in machine__process_bpf()
229 struct machine *machine, in perf_event__synthesize_one_bpf_prog() argument
326 memset((void *)event + event->header.size, 0, machine->id_hdr_size); in perf_event__synthesize_one_bpf_prog()
327 event->header.size += machine->id_hdr_size; in perf_event__synthesize_one_bpf_prog()
329 machine, process); in perf_event__synthesize_one_bpf_prog()
344 memset((void *)event + event->header.size, 0, machine->id_hdr_size); in perf_event__synthesize_one_bpf_prog()
[all …]
/Linux-v6.1/arch/arm/
DMakefile162 machine-$(CONFIG_ARCH_ACTIONS) += actions
163 machine-$(CONFIG_ARCH_AIROHA) += airoha
164 machine-$(CONFIG_ARCH_ALPINE) += alpine
165 machine-$(CONFIG_ARCH_ARTPEC) += artpec
166 machine-$(CONFIG_ARCH_ASPEED) += aspeed
167 machine-$(CONFIG_ARCH_AT91) += at91
168 machine-$(CONFIG_ARCH_AXXIA) += axxia
169 machine-$(CONFIG_ARCH_BCM) += bcm
170 machine-$(CONFIG_ARCH_BERLIN) += berlin
171 machine-$(CONFIG_ARCH_CLPS711X) += clps711x
[all …]
/Linux-v6.1/sound/soc/tegra/
Dtegra_asoc_machine.c72 struct tegra_machine *machine = snd_soc_card_get_drvdata(dapm->card); in tegra_machine_event() local
75 gpiod_set_value_cansleep(machine->gpiod_spkr_en, in tegra_machine_event()
79 gpiod_set_value_cansleep(machine->gpiod_ext_mic_en, in tegra_machine_event()
83 gpiod_set_value_cansleep(machine->gpiod_int_mic_en, in tegra_machine_event()
87 gpiod_set_value_cansleep(machine->gpiod_hp_mute, in tegra_machine_event()
126 struct tegra_machine *machine = snd_soc_card_get_drvdata(card); in tegra_asoc_machine_init() local
130 if (machine->gpiod_hp_det && machine->asoc->add_hp_jack) { in tegra_asoc_machine_init()
131 if (machine->asoc->hp_jack_name) in tegra_asoc_machine_init()
132 jack_name = machine->asoc->hp_jack_name; in tegra_asoc_machine_init()
147 tegra_machine_hp_jack_gpio.desc = machine->gpiod_hp_det; in tegra_asoc_machine_init()
[all …]
/Linux-v6.1/tools/perf/tests/
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 …]
Ddso-data.c106 static int dso__data_fd(struct dso *dso, struct machine *machine) in dso__data_fd() argument
108 int fd = dso__data_get_fd(dso, machine); in dso__data_fd()
118 struct machine machine; in test__dso_data() local
125 memset(&machine, 0, sizeof(machine)); in test__dso_data()
130 dso__data_fd(dso, &machine) >= 0); in test__dso_data()
139 size = dso__data_read_offset(dso, &machine, data->offset, in test__dso_data()
158 size = dso__data_read_offset(dso, &machine, 10, in test__dso_data()
253 struct machine machine; in test__dso_data_cache() local
260 memset(&machine, 0, sizeof(machine)); in test__dso_data_cache()
278 fd = dso__data_fd(dso, &machine); in test__dso_data_cache()
[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()
201 struct machine *machine; in test__dwarf_unwind() local
205 machine = machine__new_host(); in test__dwarf_unwind()
206 if (!machine) { in test__dwarf_unwind()
211 if (machine__create_kernel_maps(machine)) { in test__dwarf_unwind()
219 if (init_live_machine(machine)) { in test__dwarf_unwind()
225 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()
190 thread = machine__findnew_thread(machine, getpid(), td->tid); in mmap_events()
208 machine__delete_threads(machine); in mmap_events()
[all …]
Dhists_cumulate.c80 static int add_hist_entries(struct hists *hists, struct machine *machine) in add_hist_entries() argument
105 if (machine__resolve(machine, &al, &sample) < 0) in add_hist_entries()
150 typedef int (*test_fn_t)(struct evsel *, struct machine *);
250 static int test1(struct evsel *evsel, struct machine *machine) in test1() argument
288 err = add_hist_entries(hists, machine); in test1()
301 static int test2(struct evsel *evsel, struct machine *machine) in test2() argument
435 err = add_hist_entries(hists, machine); in test2()
449 static int test3(struct evsel *evsel, struct machine *machine) in test3() argument
493 err = add_hist_entries(hists, machine); in test3()
506 static int test4(struct evsel *evsel, struct machine *machine) in test4() argument
[all …]
/Linux-v6.1/sound/soc/rockchip/
Drk3288_hdmi_analog.c36 struct rk_drvdata *machine = snd_soc_card_get_drvdata(w->dapm->card); in rk_hp_power() local
38 if (!gpio_is_valid(machine->gpio_hp_en)) in rk_hp_power()
41 gpio_set_value_cansleep(machine->gpio_hp_en, in rk_hp_power()
123 struct rk_drvdata *machine = snd_soc_card_get_drvdata(runtime->card); in rk_init() local
126 if (gpio_is_valid(machine->gpio_hp_det)) { in rk_init()
131 rk_hp_jack_gpio.gpio = machine->gpio_hp_det; in rk_init()
175 struct rk_drvdata *machine; in snd_rk_mc_probe() local
178 machine = devm_kzalloc(&pdev->dev, sizeof(struct rk_drvdata), in snd_rk_mc_probe()
180 if (!machine) in snd_rk_mc_probe()
185 machine->gpio_hp_det = of_get_named_gpio(np, in snd_rk_mc_probe()
[all …]
/Linux-v6.1/tools/perf/
Dbuiltin-inject.c138 struct machine *machine, u8 cpumode, u32 flags);
290 struct machine *machine __maybe_unused) in perf_event__repipe()
298 struct machine *machine __maybe_unused) in perf_event__drop()
306 struct machine *machine __maybe_unused) in perf_event__drop_aux()
342 struct machine *machine);
348 struct machine *machine) in perf_event__repipe_sample() argument
355 return f(tool, event, sample, evsel, machine); in perf_event__repipe_sample()
358 build_id__mark_dso_hit(tool, event, sample, evsel, machine); in perf_event__repipe_sample()
369 struct machine *machine) in perf_event__repipe_mmap() argument
373 err = perf_event__process_mmap(tool, event, sample, machine); in perf_event__repipe_mmap()
[all …]
Dbuiltin-kwork.c387 struct machine *machine, in work_push_atom() argument
394 class->work_init(class, &key, evsel, sample, machine); in work_push_atom()
432 struct machine *machine, in work_pop_atom() argument
439 class->work_init(class, &key, evsel, sample, machine); in work_pop_atom()
492 struct machine *machine) in report_entry_event() argument
496 machine, NULL); in report_entry_event()
503 struct machine *machine) in report_exit_event() argument
510 machine, &work); in report_exit_event()
547 struct machine *machine) in latency_raise_event() argument
551 machine, NULL); in latency_raise_event()
[all …]
/Linux-v6.1/Documentation/sound/soc/
Dmachine.rst5 The ASoC machine (or board) driver is the code that glues together all the
10 The machine driver can contain codec and platform specific code. It registers
15 /* SoC machine */
42 probe/remove are optional. Do any machine specific probe here.
47 The machine driver has pre and post versions of suspend and resume to take care
48 of any machine audio tasks that have to be done before or after the codec, DAIs
54 The machine DAI configuration glues all the codec and CPU DAIs together. It can
55 also be used to set up the DAI system clock and for any machine related DAI
56 initialisation e.g. the machine audio map can be connected to the codec audio
59 struct snd_soc_dai_link is used to set up each DAI in your machine. e.g.
[all …]
/Linux-v6.1/arch/nios2/platform/
Dplatform.c29 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()

12345678910>>...30