Home
last modified time | relevance | path

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

12345678910>>...30

/kernel/linux/linux-5.10/tools/perf/util/
Dmachine.h41 struct machine { struct
65 static inline struct threads *machine__threads(struct machine *machine, pid_t tid) in machine__threads() argument
68 return &machine->threads[(unsigned int)tid % THREADS__TABLE_SIZE]; in machine__threads()
75 struct map *machine__kernel_map(struct machine *machine) in machine__kernel_map() argument
77 return machine->vmlinux_map; in machine__kernel_map()
84 struct maps *machine__kernel_maps(struct machine *machine) in machine__kernel_maps() argument
86 return &machine->kmaps; in machine__kernel_maps()
89 int machine__get_kernel_start(struct machine *machine);
91 static inline u64 machine__kernel_start(struct machine *machine) in machine__kernel_start() argument
93 if (!machine->kernel_start) in machine__kernel_start()
[all …]
Dsynthetic-events.h14 struct machine;
30 struct perf_sample *sample, struct machine *machine);
34 …erf_tool *tool, struct dso *pos, u16 misc, perf_event__handler_t process, struct machine *machine);
35 …erf_tool *tool, struct perf_cpu_map *cpus, perf_event__handler_t process, struct machine *machine);
41 …hesize_extra_kmaps(struct perf_tool *tool, perf_event__handler_t process, struct machine *machine);
43 …ct perf_tool *tool, perf_event__handler_t process, struct evlist *evlist, struct machine *machine);
44 …hesize_kernel_mmap(struct perf_tool *tool, perf_event__handler_t process, struct machine *machine);
45 …event, pid_t pid, pid_t tgid, perf_event__handler_t process, struct machine *machine, bool mmap_da…
46 …synthesize_modules(struct perf_tool *tool, perf_event__handler_t process, struct machine *machine);
47 … perf_event *event, pid_t pid, pid_t tgid, perf_event__handler_t process, struct machine *machine);
[all …]
Dmachine.c44 static void __machine__remove_thread(struct machine *machine, struct thread *th, bool lock);
46 static struct dso *machine__kernel_dso(struct machine *machine) in machine__kernel_dso() argument
48 return machine->vmlinux_map->dso; in machine__kernel_dso()
58 static void machine__threads_init(struct machine *machine) in machine__threads_init() argument
63 struct threads *threads = &machine->threads[i]; in machine__threads_init()
72 static int machine__set_mmap_name(struct machine *machine) in machine__set_mmap_name() argument
74 if (machine__is_host(machine)) in machine__set_mmap_name()
75 machine->mmap_name = strdup("[kernel.kallsyms]"); in machine__set_mmap_name()
76 else if (machine__is_default_guest(machine)) in machine__set_mmap_name()
77 machine->mmap_name = strdup("[guest.kernel.kallsyms]"); 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()
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;
301 struct machine *machine);
305 struct machine *machine);
309 struct machine *machine);
313 struct machine *machine);
317 struct machine *machine);
321 struct machine *machine);
325 struct machine *machine);
329 struct machine *machine);
333 struct machine *machine);
[all …]
Devent.c195 struct machine *machine) in perf_event__process_comm() argument
197 return machine__process_comm_event(machine, event, sample); in perf_event__process_comm()
203 struct machine *machine) in perf_event__process_namespaces() argument
205 return machine__process_namespaces_event(machine, event, sample); in perf_event__process_namespaces()
211 struct machine *machine) in perf_event__process_cgroup() argument
213 return machine__process_cgroup_event(machine, event, sample); in perf_event__process_cgroup()
219 struct machine *machine) in perf_event__process_lost() argument
221 return machine__process_lost_event(machine, event, sample); in perf_event__process_lost()
227 struct machine *machine) in perf_event__process_aux() argument
229 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()
140 struct machine *machine, in perf_event__prepare_comm() argument
149 if (machine__is_host(machine)) { in perf_event__prepare_comm()
156 *tgid = machine->pid; in perf_event__prepare_comm()
167 memset(event->comm.comm + size, 0, machine->id_hdr_size); in perf_event__prepare_comm()
170 machine->id_hdr_size); in perf_event__prepare_comm()
179 struct machine *machine) in perf_event__synthesize_comm() argument
183 if (perf_event__prepare_comm(event, pid, machine, &tgid, &ppid) != 0) in perf_event__synthesize_comm()
186 if (perf_tool__process_synth_event(tool, event, machine, process) != 0) in perf_event__synthesize_comm()
[all …]
Ddso.h15 struct machine;
266 struct machine *machine);
294 struct machine *machine);
341 int dso__data_get_fd(struct dso *dso, struct machine *machine);
345 int dso__data_file_size(struct dso *dso, struct machine *machine);
346 off_t dso__data_size(struct dso *dso, struct machine *machine);
347 ssize_t dso__data_read_offset(struct dso *dso, struct machine *machine,
350 struct machine *machine, u64 addr,
353 ssize_t dso__data_write_cache_offs(struct dso *dso, struct machine *machine,
356 struct machine *machine, u64 addr,
[all …]
Ddso.c424 struct machine *machine) in dso__set_module_info() argument
426 if (machine__is_host(machine)) in dso__set_module_info()
484 static int __open_dso(struct dso *dso, struct machine *machine) in __open_dso() argument
494 if (machine) in __open_dso()
495 root_dir = machine->root_dir; in __open_dso()
536 static int open_dso(struct dso *dso, struct machine *machine) in open_dso() argument
543 fd = __open_dso(dso, machine); in open_dso()
657 static void try_to_open_dso(struct dso *dso, struct machine *machine) in try_to_open_dso() argument
670 dso->data.fd = open_dso(dso, machine); in try_to_open_dso()
677 dso->data.fd = open_dso(dso, machine); in try_to_open_dso()
[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 …]
Dbpf-event.c36 static int machine__process_bpf_event_load(struct machine *machine, in machine__process_bpf_event_load() argument
42 struct perf_env *env = machine->env; in machine__process_bpf_event_load()
58 struct map *map = maps__find(&machine->kmaps, addr); in machine__process_bpf_event_load()
70 int machine__process_bpf(struct machine *machine, union perf_event *event, in machine__process_bpf() argument
78 return machine__process_bpf_event_load(machine, event, sample); in machine__process_bpf()
164 struct machine *machine, in perf_event__synthesize_one_bpf_prog() argument
254 memset((void *)event + event->header.size, 0, machine->id_hdr_size); in perf_event__synthesize_one_bpf_prog()
255 event->header.size += machine->id_hdr_size; in perf_event__synthesize_one_bpf_prog()
257 machine, process); in perf_event__synthesize_one_bpf_prog()
272 memset((void *)event + event->header.size, 0, machine->id_hdr_size); in perf_event__synthesize_one_bpf_prog()
[all …]
/kernel/linux/linux-5.10/arch/arm/
DMakefile164 machine-$(CONFIG_ARCH_ACTIONS) += actions
165 machine-$(CONFIG_ARCH_ALPINE) += alpine
166 machine-$(CONFIG_ARCH_ARTPEC) += artpec
167 machine-$(CONFIG_ARCH_ASPEED) += aspeed
168 machine-$(CONFIG_ARCH_AT91) += at91
169 machine-$(CONFIG_ARCH_AXXIA) += axxia
170 machine-$(CONFIG_ARCH_BCM) += bcm
171 machine-$(CONFIG_ARCH_BERLIN) += berlin
172 machine-$(CONFIG_ARCH_CLPS711X) += clps711x
173 machine-$(CONFIG_ARCH_CNS3XXX) += cns3xxx
[all …]
/kernel/linux/linux-5.10/sound/soc/tegra/
Dtegra_wm8903.c50 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_hw_params() local
69 err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); in tegra_wm8903_hw_params()
119 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_event_int_spk() local
121 if (!gpio_is_valid(machine->gpio_spkr_en)) in tegra_wm8903_event_int_spk()
124 gpio_set_value_cansleep(machine->gpio_spkr_en, in tegra_wm8903_event_int_spk()
135 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_event_hp() local
137 if (!gpio_is_valid(machine->gpio_hp_mute)) in tegra_wm8903_event_hp()
140 gpio_set_value_cansleep(machine->gpio_hp_mute, in tegra_wm8903_event_hp()
151 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_event_int_mic() local
153 if (!gpio_is_valid(machine->gpio_int_mic_en)) in tegra_wm8903_event_int_mic()
[all …]
Dtegra_rt5677.c47 struct tegra_rt5677 *machine = snd_soc_card_get_drvdata(card); in tegra_rt5677_asoc_hw_params() local
53 err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); in tegra_rt5677_asoc_hw_params()
74 struct tegra_rt5677 *machine = snd_soc_card_get_drvdata(card); in tegra_rt5677_event_hp() local
76 if (!gpio_is_valid(machine->gpio_hp_en)) in tegra_rt5677_event_hp()
79 gpio_set_value_cansleep(machine->gpio_hp_en, in tegra_rt5677_event_hp()
133 struct tegra_rt5677 *machine = snd_soc_card_get_drvdata(rtd->card); in tegra_rt5677_asoc_init() local
139 if (gpio_is_valid(machine->gpio_hp_det)) { in tegra_rt5677_asoc_init()
140 tegra_rt5677_hp_jack_gpio.gpio = machine->gpio_hp_det; in tegra_rt5677_asoc_init()
150 if (gpio_is_valid(machine->gpio_mic_present)) { in tegra_rt5677_asoc_init()
151 tegra_rt5677_mic_jack_gpio.gpio = machine->gpio_mic_present; in tegra_rt5677_asoc_init()
[all …]
Dtegra_wm9712.c71 struct tegra_wm9712 *machine; in tegra_wm9712_driver_probe() local
74 machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_wm9712), in tegra_wm9712_driver_probe()
76 if (!machine) in tegra_wm9712_driver_probe()
80 snd_soc_card_set_drvdata(card, machine); in tegra_wm9712_driver_probe()
82 machine->codec = platform_device_alloc("wm9712-codec", -1); in tegra_wm9712_driver_probe()
83 if (!machine->codec) { in tegra_wm9712_driver_probe()
88 ret = platform_device_add(machine->codec); in tegra_wm9712_driver_probe()
111 ret = tegra_asoc_utils_init(&machine->util_data, &pdev->dev); in tegra_wm9712_driver_probe()
115 ret = tegra_asoc_utils_set_ac97_rate(&machine->util_data); in tegra_wm9712_driver_probe()
129 platform_device_del(machine->codec); in tegra_wm9712_driver_probe()
[all …]
Dtegra_max98090.c43 struct tegra_max98090 *machine = snd_soc_card_get_drvdata(card); in tegra_max98090_asoc_hw_params() local
69 err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); in tegra_max98090_asoc_hw_params()
137 struct tegra_max98090 *machine = snd_soc_card_get_drvdata(rtd->card); in tegra_max98090_asoc_init() local
139 if (gpio_is_valid(machine->gpio_hp_det)) { in tegra_max98090_asoc_init()
146 tegra_max98090_hp_jack_gpio.gpio = machine->gpio_hp_det; in tegra_max98090_asoc_init()
152 if (gpio_is_valid(machine->gpio_mic_det)) { in tegra_max98090_asoc_init()
159 tegra_max98090_mic_jack_gpio.gpio = machine->gpio_mic_det; in tegra_max98090_asoc_init()
200 struct tegra_max98090 *machine; in tegra_max98090_probe() local
203 machine = devm_kzalloc(&pdev->dev, in tegra_max98090_probe()
205 if (!machine) in tegra_max98090_probe()
[all …]
Dtegra_rt5640.c45 struct tegra_rt5640 *machine = snd_soc_card_get_drvdata(card); in tegra_rt5640_asoc_hw_params() local
52 err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); in tegra_rt5640_asoc_hw_params()
100 struct tegra_rt5640 *machine = snd_soc_card_get_drvdata(rtd->card); in tegra_rt5640_asoc_init() local
106 if (gpio_is_valid(machine->gpio_hp_det)) { in tegra_rt5640_asoc_init()
107 tegra_rt5640_hp_jack_gpio.gpio = machine->gpio_hp_det; in tegra_rt5640_asoc_init()
109 !!(machine->gpio_hp_det_flags & OF_GPIO_ACTIVE_LOW); in tegra_rt5640_asoc_init()
150 struct tegra_rt5640 *machine; in tegra_rt5640_probe() local
153 machine = devm_kzalloc(&pdev->dev, in tegra_rt5640_probe()
155 if (!machine) in tegra_rt5640_probe()
159 snd_soc_card_set_drvdata(card, machine); in tegra_rt5640_probe()
[all …]
/kernel/linux/linux-5.10/tools/perf/
Dbuiltin-inject.c62 struct machine *machine, u8 cpumode, u32 flags);
213 struct machine *machine __maybe_unused) in perf_event__repipe()
221 struct machine *machine __maybe_unused) in perf_event__drop()
229 struct machine *machine __maybe_unused) in perf_event__drop_aux()
265 struct machine *machine);
271 struct machine *machine) in perf_event__repipe_sample() argument
278 return f(tool, event, sample, evsel, machine); in perf_event__repipe_sample()
281 build_id__mark_dso_hit(tool, event, sample, evsel, machine); in perf_event__repipe_sample()
292 struct machine *machine) in perf_event__repipe_mmap() argument
296 err = perf_event__process_mmap(tool, event, sample, machine); in perf_event__repipe_mmap()
[all …]
/kernel/linux/linux-5.10/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.c30 struct machine *machine) in mmap_handler() argument
32 return machine__process_mmap2_event(machine, event, sample); in mmap_handler()
35 static int init_live_machine(struct machine *machine) in init_live_machine() argument
42 mmap_handler, machine, true); in init_live_machine()
179 struct machine *machine; in test__dwarf_unwind() local
183 machine = machine__new_host(); in test__dwarf_unwind()
184 if (!machine) { in test__dwarf_unwind()
189 if (machine__create_kernel_maps(machine)) { in test__dwarf_unwind()
197 if (init_live_machine(machine)) { in test__dwarf_unwind()
203 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, 0, 1); in synth_all()
141 static int synth_process(struct machine *machine) in synth_process() argument
150 machine, 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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/tools/perf/arch/x86/util/
Devent.c17 struct machine *machine) in perf_event__synthesize_extra_kmaps() argument
21 struct maps *kmaps = &machine->kmaps; in perf_event__synthesize_extra_kmaps()
23 machine->id_hdr_size); in perf_event__synthesize_extra_kmaps()
42 machine->id_hdr_size; in perf_event__synthesize_extra_kmaps()
52 if (machine__is_host(machine)) in perf_event__synthesize_extra_kmaps()
62 event->mmap.pid = machine->pid; in perf_event__synthesize_extra_kmaps()
66 if (perf_tool__process_synth_event(tool, event, machine, in perf_event__synthesize_extra_kmaps()

12345678910>>...30