| /kernel/linux/linux-5.10/tools/perf/util/ |
| D | machine.h | 22 /* Native host kernel uses -1 as pid index in machine */ 41 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 [all …]
|
| D | synthetic-events.h | 14 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 …]
|
| D | machine.c | 14 #include "machine.h" 44 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() [all …]
|
| D | vdso.c | 17 #include "machine.h" 108 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() [all …]
|
| D | event.h | 18 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 …]
|
| D | event.c | 18 #include "machine.h" 195 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 [all …]
|
| D | synthetic-events.c | 7 #include "util/machine.h" 52 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() [all …]
|
| /kernel/linux/linux-4.19/tools/perf/util/ |
| D | machine.h | 20 /* Native host kernel uses -1 as pid index in machine */ 39 struct machine { struct 63 static inline struct threads *machine__threads(struct machine *machine, pid_t tid) in machine__threads() argument 66 return &machine->threads[(unsigned int)tid % THREADS__TABLE_SIZE]; in machine__threads() 73 struct map *machine__kernel_map(struct machine *machine) in machine__kernel_map() argument 75 return machine->vmlinux_map; in machine__kernel_map() 82 struct maps *machine__kernel_maps(struct machine *machine) in machine__kernel_maps() argument 84 return &machine->kmaps.maps; in machine__kernel_maps() 87 int machine__get_kernel_start(struct machine *machine); 89 static inline u64 machine__kernel_start(struct machine *machine) in machine__kernel_start() argument [all …]
|
| D | machine.c | 11 #include "machine.h" 29 static void __machine__remove_thread(struct machine *machine, struct thread *th, bool lock); 38 static void machine__threads_init(struct machine *machine) in machine__threads_init() argument 43 struct threads *threads = &machine->threads[i]; in machine__threads_init() 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() [all …]
|
| D | vdso.c | 15 #include "machine.h" 105 void machine__exit_vdso(struct machine *machine) in machine__exit_vdso() argument 107 struct vdso_info *vdso_info = machine->vdso_info; in machine__exit_vdso() 121 zfree(&machine->vdso_info); in machine__exit_vdso() 124 static struct dso *__machine__addnew_vdso(struct machine *machine, const char *short_name, in __machine__addnew_vdso() argument 131 __dsos__add(&machine->dsos, dso); in __machine__addnew_vdso() 138 static enum dso_type machine__thread_dso_type(struct machine *machine, in machine__thread_dso_type() argument 148 dso_type = dso__type(dso, machine); in machine__thread_dso_type() 232 static struct dso *__machine__findnew_compat(struct machine *machine, in __machine__findnew_compat() argument 238 dso = __dsos__find(&machine->dsos, vdso_file->dso_name, true); in __machine__findnew_compat() [all …]
|
| D | event.c | 17 #include "machine.h" 93 struct machine *machine, in perf_tool__process_synth_event() argument 106 return process(tool, event, &synth_sample, machine); in perf_tool__process_synth_event() 184 struct machine *machine, in perf_event__prepare_comm() argument 193 if (machine__is_host(machine)) { in perf_event__prepare_comm() 200 *tgid = machine->pid; in perf_event__prepare_comm() 211 memset(event->comm.comm + size, 0, machine->id_hdr_size); in perf_event__prepare_comm() 214 machine->id_hdr_size); in perf_event__prepare_comm() 223 struct machine *machine) in perf_event__synthesize_comm() argument 227 if (perf_event__prepare_comm(event, pid, machine, &tgid, &ppid) != 0) in perf_event__synthesize_comm() [all …]
|
| D | event.h | 667 struct machine *machine); 672 struct machine *machine, bool mmap_data, 677 struct machine *machine); 681 struct machine *machine); 684 struct machine *machine, bool mmap_data, 689 struct machine *machine); 693 struct machine *machine); 700 struct machine *machine); 704 struct machine *machine); 707 struct machine *machine); [all …]
|
| /kernel/linux/linux-5.10/arch/arm/ |
| D | Makefile | 162 # Machine directory name. This list is sorted alphanumerically 164 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 [all …]
|
| /kernel/linux/linux-4.19/arch/arm/ |
| D | Makefile | 154 # Machine directory name. This list is sorted alphanumerically 156 machine-$(CONFIG_ARCH_ACTIONS) += actions 157 machine-$(CONFIG_ARCH_ALPINE) += alpine 158 machine-$(CONFIG_ARCH_ARTPEC) += artpec 159 machine-$(CONFIG_ARCH_AT91) += at91 160 machine-$(CONFIG_ARCH_AXXIA) += axxia 161 machine-$(CONFIG_ARCH_BCM) += bcm 162 machine-$(CONFIG_ARCH_BERLIN) += berlin 163 machine-$(CONFIG_ARCH_CLPS711X) += clps711x 164 machine-$(CONFIG_ARCH_CNS3XXX) += cns3xxx [all …]
|
| /kernel/linux/linux-5.10/tools/perf/ |
| D | builtin-inject.c | 62 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-4.19/sound/soc/tegra/ |
| D | tegra_wm8903.c | 2 * tegra_wm8903.c - Tegra machine ASoC driver for boards using WM8903 codec. 64 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_hw_params() local 83 err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); in tegra_wm8903_hw_params() 133 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_event_int_spk() local 135 if (!gpio_is_valid(machine->gpio_spkr_en)) in tegra_wm8903_event_int_spk() 138 gpio_set_value_cansleep(machine->gpio_spkr_en, in tegra_wm8903_event_int_spk() 149 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_event_hp() local 151 if (!gpio_is_valid(machine->gpio_hp_mute)) in tegra_wm8903_event_hp() 154 gpio_set_value_cansleep(machine->gpio_hp_mute, in tegra_wm8903_event_hp() 175 struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); in tegra_wm8903_init() local [all …]
|
| D | tegra_rt5677.c | 2 * tegra_rt5677.c - Tegra machine ASoC driver for boards using RT5677 codec. 58 struct tegra_rt5677 *machine = snd_soc_card_get_drvdata(card); in tegra_rt5677_asoc_hw_params() local 64 err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); in tegra_rt5677_asoc_hw_params() 85 struct tegra_rt5677 *machine = snd_soc_card_get_drvdata(card); in tegra_rt5677_event_hp() local 87 if (!gpio_is_valid(machine->gpio_hp_en)) in tegra_rt5677_event_hp() 90 gpio_set_value_cansleep(machine->gpio_hp_en, in tegra_rt5677_event_hp() 144 struct tegra_rt5677 *machine = snd_soc_card_get_drvdata(rtd->card); in tegra_rt5677_asoc_init() local 150 if (gpio_is_valid(machine->gpio_hp_det)) { in tegra_rt5677_asoc_init() 151 tegra_rt5677_hp_jack_gpio.gpio = machine->gpio_hp_det; in tegra_rt5677_asoc_init() 161 if (gpio_is_valid(machine->gpio_mic_present)) { in tegra_rt5677_asoc_init() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/tegra/ |
| D | tegra_wm8903.c | 3 * tegra_wm8903.c - Tegra machine ASoC driver for boards using WM8903 codec. 50 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 [all …]
|
| D | tegra_rt5677.c | 3 * tegra_rt5677.c - Tegra machine ASoC driver for boards using RT5677 codec. 47 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() [all …]
|
| /kernel/linux/linux-5.10/Documentation/sound/soc/ |
| D | machine.rst | 2 ASoC Machine Driver 5 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 52 Machine DAI Configuration 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 [all …]
|
| /kernel/linux/linux-4.19/Documentation/sound/soc/ |
| D | machine.rst | 2 ASoC Machine Driver 5 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 52 Machine DAI Configuration 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 [all …]
|
| /kernel/linux/linux-4.19/tools/perf/ |
| D | builtin-inject.c | 190 struct machine *machine __maybe_unused) in perf_event__repipe() 198 struct machine *machine __maybe_unused) in perf_event__drop() 206 struct machine *machine __maybe_unused) in perf_event__drop_aux() 220 struct machine *machine); 226 struct machine *machine) in perf_event__repipe_sample() argument 230 return f(tool, event, sample, evsel, machine); in perf_event__repipe_sample() 233 build_id__mark_dso_hit(tool, event, sample, evsel, machine); in perf_event__repipe_sample() 241 struct machine *machine) in perf_event__repipe_mmap() argument 245 err = perf_event__process_mmap(tool, event, sample, machine); in perf_event__repipe_mmap() 246 perf_event__repipe(tool, event, sample, machine); in perf_event__repipe_mmap() [all …]
|
| /kernel/linux/linux-4.19/Documentation/x86/x86_64/ |
| D | machinecheck | 2 Configurable sysfs parameters for the x86-64 machine check code. 4 Machine checks report internal hardware error conditions detected 5 by the CPU. Uncorrected errors typically cause a machine check 6 (often with panic), corrected ones cause a machine check log entry. 8 Machine checks are organized in banks (normally associated with 14 When you see the "Machine check errors logged" message in the system 15 log then mcelog should run to collect and decode machine check entries 38 How often to poll for corrected machine check errors, in seconds 44 maximum polling interval. 0 means no polling for corrected machine 49 Tolerance level. When a machine check exception occurs for a non [all …]
|
| /kernel/linux/linux-4.19/tools/perf/tests/ |
| D | thread-mg-share.c | 3 #include "machine.h" 11 struct machine *machine; in test__thread_mg_share() local 32 machine = &machines.host; in test__thread_mg_share() 35 leader = machine__findnew_thread(machine, 0, 0); in test__thread_mg_share() 36 t1 = machine__findnew_thread(machine, 0, 1); in test__thread_mg_share() 37 t2 = machine__findnew_thread(machine, 0, 2); in test__thread_mg_share() 38 t3 = machine__findnew_thread(machine, 0, 3); in test__thread_mg_share() 41 other = machine__findnew_thread(machine, 4, 5); in test__thread_mg_share() 59 other_leader = machine__find_thread(machine, 4, 4); in test__thread_mg_share() 67 machine__remove_thread(machine, leader); in test__thread_mg_share() [all …]
|
| /kernel/linux/linux-5.10/tools/perf/tests/ |
| D | thread-maps-share.c | 3 #include "machine.h" 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() 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() [all …]
|