arch/alpha/kernel/irq_alpha.c
129
const char *machine, int expected)
arch/alpha/kernel/irq_alpha.c
141
printk(KERN_CRIT "%s machine check %s\n", machine,
arch/alpha/kernel/irq_alpha.c
156
machine, vector, get_irq_regs()->pc, mchk_header->code);
arch/alpha/kernel/osf_sys.c
527
memcpy(tmp + 4 * 32, utsname()->machine, 32);
arch/alpha/kernel/osf_sys.c
719
utsname()->machine,
arch/alpha/kernel/proto.h
225
const char *machine, int expected);
arch/arm/kernel/setup.c
723
snprintf(init_utsname()->machine, __NEW_UTS_LEN + 1, "%s%c",
arch/arm/mach-mxs/mach-mxs.c
395
ret = of_property_read_string(root, "model", &soc_dev_attr->machine);
arch/arm/mach-omap2/id.c
795
soc_dev_attr->machine = soc_name;
arch/m68k/fpsp040/fpsp.h
141
.set CMDREG2B,LV-52 | cmd reg for machine 2
arch/nios2/platform/platform.c
29
const char *machine;
arch/nios2/platform/platform.c
33
machine = of_flat_dt_get_machine_name();
arch/nios2/platform/platform.c
34
if (machine)
arch/nios2/platform/platform.c
35
soc_dev_attr->machine = kasprintf(GFP_KERNEL, "%s",
arch/nios2/platform/platform.c
36
machine);
arch/nios2/platform/platform.c
42
kfree(soc_dev_attr->machine);
arch/powerpc/include/asm/ppc_asm.h
490
.machine push; \
arch/powerpc/include/asm/ppc_asm.h
491
.machine "power4"; \
arch/powerpc/include/asm/ppc_asm.h
493
.machine pop; \
arch/powerpc/include/asm/ppc_asm.h
511
.machine push; \
arch/powerpc/include/asm/ppc_asm.h
512
.machine power4; \
arch/powerpc/include/asm/ppc_asm.h
514
.machine pop;
arch/powerpc/include/asm/ppc_asm.h
519
.machine push; \
arch/powerpc/include/asm/ppc_asm.h
520
.machine power4; \
arch/powerpc/include/asm/ppc_asm.h
529
.machine pop;
arch/powerpc/platforms/chrp/pci.c
214
const char *model, *machine;
arch/powerpc/platforms/chrp/pci.c
223
machine = of_get_property(root, "model", NULL);
arch/powerpc/platforms/chrp/pci.c
224
if (machine != NULL) {
arch/powerpc/platforms/chrp/pci.c
225
is_longtrail = strncmp(machine, "IBM,LongTrail", 13) == 0;
arch/powerpc/platforms/chrp/pci.c
226
is_mot = strncmp(machine, "MOT", 3) == 0;
arch/powerpc/platforms/chrp/pci.c
227
if (strncmp(machine, "Pegasos2", 8) == 0)
arch/powerpc/platforms/chrp/pci.c
229
else if (strncmp(machine, "Pegasos", 7) == 0)
arch/powerpc/platforms/chrp/setup.c
300
const char *machine = NULL;
arch/powerpc/platforms/chrp/setup.c
306
machine = of_get_property(root, "model", NULL);
arch/powerpc/platforms/chrp/setup.c
307
if (machine && strncmp(machine, "Pegasos", 7) == 0) {
arch/powerpc/platforms/chrp/setup.c
309
} else if (machine && strncmp(machine, "IBM", 3) == 0) {
arch/powerpc/platforms/chrp/setup.c
311
} else if (machine && strncmp(machine, "MOT", 3) == 0) {
arch/powerpc/platforms/chrp/setup.c
313
} else if (machine && strncmp(machine, "TotalImpact,BRIQ-1", 18) == 0) {
arch/s390/boot/als.c
66
boot_emerg("Detected machine-type number: %4x\n", id.machine);
arch/s390/boot/boot.h
104
extern struct machine_info machine;
arch/s390/include/asm/cpu.h
21
unsigned int machine : 16;
arch/s390/kernel/perf_cpum_cf.c
400
te->mach_type = cpuid.machine;
arch/s390/kernel/perf_cpum_cf_events.c
1023
switch (cpu_id.machine) {
arch/s390/kernel/processor.c
177
cpu, id->version, id->ident, id->machine);
arch/s390/kernel/processor.c
268
switch (cpu_id.machine) {
arch/s390/kernel/processor.c
325
seq_printf(m, "machine : %04X\n", id->machine);
arch/s390/kvm/pci.h
73
switch (cpu_id.machine) {
arch/sh/include/asm/elf.h
133
#define ELF_PLATFORM (utsname()->machine)
arch/sh/kernel/cpu/proc.c
93
seq_printf(m, "cpu family\t: %s\n", init_utsname()->machine);
arch/sh/kernel/setup.c
356
char *p = &init_utsname()->machine[2]; /* "sh" */
arch/um/drivers/mconsole_kern.c
111
utsname()->machine);
arch/um/kernel/um_arch.c
369
setup_machinename(init_utsname()->machine);
arch/um/os-Linux/util.c
56
if (!strcmp(host.machine, "x86_64")) {
arch/um/os-Linux/util.c
61
if (!strcmp(host.machine, "i686")) {
arch/um/os-Linux/util.c
67
strcpy(machine_out, host.machine);
arch/um/os-Linux/util.c
76
host.release, host.version, host.machine);
arch/x86/include/asm/elf.h
137
#define ELF_PLATFORM (utsname()->machine)
arch/x86/include/asm/xen/page.h
236
static inline xpaddr_t machine_to_phys(xmaddr_t machine)
arch/x86/include/asm/xen/page.h
238
unsigned offset = machine.maddr & ~PAGE_MASK;
arch/x86/include/asm/xen/page.h
239
return XPADDR(PFN_PHYS(mfn_to_pfn(PFN_DOWN(machine.maddr))) | offset);
arch/x86/kernel/cpu/common.c
2607
init_utsname()->machine[1] =
drivers/base/soc.c
116
if (soc_dev_attr->machine)
drivers/base/soc.c
119
return of_machine_read_model(&soc_dev_attr->machine);
drivers/base/soc.c
211
if (match->machine &&
drivers/base/soc.c
212
(!attr->machine || !glob_match(match->machine, attr->machine)))
drivers/base/soc.c
263
while (matches->machine || matches->family || matches->revision ||
drivers/base/soc.c
36
static DEVICE_ATTR(machine, 0444, soc_info_show, NULL);
drivers/base/soc.c
54
if ((attr == &dev_attr_machine.attr) && soc_dev->attr->machine)
drivers/base/soc.c
76
output = soc_dev->attr->machine;
drivers/bus/ti-sysc.c
43
#define SOC_FLAG(match, flag) { .machine = match, .data = (void *)(flag), }
drivers/firmware/imx/imx-scu-soc.c
118
&soc_dev_attr->machine);
drivers/firmware/smccc/soc_id.c
154
soc_dev_attr->machine = smccc_soc_name_init();
drivers/gpu/drm/drm_panic.c
660
utsname()->machine, utsname()->release);
drivers/gpu/drm/i915/i915_gpu_error.c
902
init_utsname()->machine);
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
762
.machine = "qcom,sm7150",
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
812
.machine = "qcom,sm4350",
drivers/gpu/drm/msm/adreno/a6xx_catalog.c
837
.machine = "qcom,sm6375",
drivers/gpu/drm/msm/adreno/adreno_device.c
56
if (info->machine && !of_machine_is_compatible(info->machine))
drivers/gpu/drm/msm/adreno/adreno_gpu.h
106
const char *machine;
drivers/gpu/drm/omapdrm/dss/dispc.c
4588
{ .machine = "OMAP3[45]*",
drivers/gpu/drm/omapdrm/dss/dispc.c
4590
{ .machine = "OMAP3[45]*", .data = &omap34xx_rev3_0_dispc_feats },
drivers/gpu/drm/omapdrm/dss/dispc.c
4591
{ .machine = "AM35*", .data = &omap34xx_rev3_0_dispc_feats },
drivers/gpu/drm/omapdrm/dss/dispc.c
4592
{ .machine = "AM43*", .data = &am43xx_dispc_feats },
drivers/gpu/drm/omapdrm/dss/dpi.c
673
{ .machine = "OMAP3[456]*" },
drivers/gpu/drm/omapdrm/dss/dpi.c
674
{ .machine = "[AD]M37*" },
drivers/gpu/drm/omapdrm/dss/dsi.c
4869
{ .machine = "OMAP3[45]*", .data = &dsi_of_data_omap34xx },
drivers/gpu/drm/omapdrm/dss/dsi.c
4870
{ .machine = "AM35*", .data = &dsi_of_data_omap34xx },
drivers/gpu/drm/omapdrm/dss/dss.c
1299
{ .machine = "OMAP3430/3530", .data = &omap34xx_dss_feats },
drivers/gpu/drm/omapdrm/dss/dss.c
1300
{ .machine = "AM35??", .data = &omap34xx_dss_feats },
drivers/gpu/drm/omapdrm/dss/hdmi4_core.c
854
.machine = "OMAP4430",
drivers/gpu/drm/omapdrm/dss/hdmi4_core.c
859
.machine = "OMAP4430",
drivers/gpu/drm/omapdrm/dss/venc.c
801
{ .machine = "OMAP3[45]*" },
drivers/gpu/drm/omapdrm/dss/venc.c
802
{ .machine = "AM35*" },
drivers/misc/lkdtm/core.c
435
init_uts_ns.name.machine);
drivers/mmc/host/sdhci-omap.c
1204
.machine = "DRA7[45]*",
drivers/net/ethernet/alibaba/eea/eea_adminq.c
516
strscpy(cfg->isa_str, utsname()->machine, sizeof(cfg->isa_str));
drivers/remoteproc/remoteproc_coredump.c
114
int rproc_coredump_set_elf_info(struct rproc *rproc, u8 class, u16 machine)
drivers/remoteproc/remoteproc_coredump.c
120
rproc->elf_machine = machine;
drivers/s390/cio/css.c
834
css->global_pgid.cpu_model = cpu_id.machine;
drivers/scsi/qla2xxx/qla_gs.c
1741
p_sysid->sysname, p_sysid->release, p_sysid->machine);
drivers/scsi/qla2xxx/qla_mr.c
1863
strscpy(phost_info->machine, p_sysid->machine,
drivers/scsi/qla2xxx/qla_mr.c
1864
sizeof(phost_info->machine));
drivers/scsi/qla2xxx/qla_mr.c
1885
phost_info->machine,
drivers/scsi/qla2xxx/qla_mr.h
268
char machine[MACHINE_LENGTH];
drivers/scsi/qla2xxx/tcm_qla2xxx.c
1789
utsname()->machine, utsname()->release);
drivers/scsi/qla2xxx/tcm_qla2xxx.c
1896
utsname()->machine, utsname()->release);
drivers/soc/amlogic/meson-mx-socinfo.c
156
of_property_read_string(np, "model", &soc_dev_attr->machine);
drivers/soc/aspeed/aspeed-socinfo.c
129
of_property_read_string(np, "model", &machine);
drivers/soc/aspeed/aspeed-socinfo.c
130
if (machine)
drivers/soc/aspeed/aspeed-socinfo.c
131
attrs->machine = kstrdup(machine, GFP_KERNEL);
drivers/soc/aspeed/aspeed-socinfo.c
144
kfree(attrs->machine);
drivers/soc/aspeed/aspeed-socinfo.c
90
const char *machine = NULL;
drivers/soc/cirrus/soc-ep93xx.c
198
attrs->machine = of_flat_dt_get_machine_name();
drivers/soc/fsl/guts.c
221
of_machine_read_compatible(&soc_dev_attr->machine, 0);
drivers/soc/fsl/guts.c
255
pr_info("Machine: %s\n", soc_dev_attr->machine);
drivers/soc/imx/soc-imx.c
50
ret = of_property_read_string(root, "model", &soc_dev_attr->machine);
drivers/soc/loongson/loongson2_guts.c
114
if (of_property_read_string(root, "model", &machine))
drivers/soc/loongson/loongson2_guts.c
115
of_property_read_string_index(root, "compatible", 0, &machine);
drivers/soc/loongson/loongson2_guts.c
117
if (machine) {
drivers/soc/loongson/loongson2_guts.c
118
soc_dev_attr.machine = devm_kstrdup(dev, machine, GFP_KERNEL);
drivers/soc/loongson/loongson2_guts.c
119
if (!soc_dev_attr.machine)
drivers/soc/loongson/loongson2_guts.c
146
pr_info("Machine: %s\n", soc_dev_attr.machine);
drivers/soc/loongson/loongson2_guts.c
98
const char *machine;
drivers/soc/qcom/socinfo.c
912
qs->attr.machine = socinfo_machine(&pdev->dev,
drivers/soc/samsung/exynos-chipid.c
189
of_property_read_string(root, "model", &soc_dev_attr->machine);
drivers/soc/ti/k3-socinfo.c
218
of_property_read_string(node, "model", &soc_dev_attr->machine);
drivers/soc/ux500/ux500-soc-id.c
190
soc_dev_attr->machine = ux500_get_machine();
drivers/soc/versatile/soc-integrator.c
131
soc_dev_attr->machine = "Integrator";
drivers/soc/versatile/soc-realview.c
113
soc_dev_attr->machine = "RealView";
drivers/target/target_core_configfs.c
3752
TARGET_CORE_VERSION, utsname()->sysname, utsname()->machine);
drivers/target/target_core_configfs.c
3808
" on "UTS_RELEASE"\n", utsname()->sysname, utsname()->machine);
drivers/target/target_core_configfs.c
93
utsname()->sysname, utsname()->machine);
drivers/target/tcm_fc/tfc_conf.c
373
""UTS_RELEASE"\n", utsname()->sysname, utsname()->machine);
drivers/thermal/ti-soc-thermal/ti-bandgap.c
880
{ .machine = "OMAP4430" },
drivers/vhost/scsi.c
2912
utsname()->machine);
drivers/vhost/scsi.c
2965
utsname()->machine);
drivers/xen/xen-scsiback.c
1726
VSCSI_VERSION, utsname()->sysname, utsname()->machine);
drivers/xen/xen-scsiback.c
1876
VSCSI_VERSION, utsname()->sysname, utsname()->machine);
fs/binfmt_elf.c
1438
u16 machine, u32 flags)
fs/binfmt_elf.c
1449
elf->e_machine = machine;
fs/binfmt_elf.c
1824
u16 machine;
fs/binfmt_elf.c
1853
machine = view->e_machine;
fs/binfmt_elf.c
1858
machine = ELF_ARCH;
fs/binfmt_elf.c
1871
fill_elf_header(elf, phdrs, machine, flags);
fs/nfs/nfs4xdr.c
1880
utsname()->version, utsname()->machine);
fs/nfs/nfs4xdr.c
313
sizeof(utsname()->version) + sizeof(utsname()->machine) + 8)
fs/nfsd/nfs4state.c
3772
utsname()->version, utsname()->machine);
include/linux/asn1_ber_bytecode.h
22
const unsigned char *machine;
include/linux/pe.h
275
uint16_t machine; /* machine type */
include/linux/remoteproc.h
439
int rproc_coredump_set_elf_info(struct rproc *rproc, u8 class, u16 machine);
include/linux/sys_soc.h
12
const char *machine;
include/sound/sof.h
116
const struct snd_soc_acpi_mach *machine;
include/uapi/linux/utsname.h
12
char machine[9];
include/uapi/linux/utsname.h
22
char machine[65];
include/uapi/linux/utsname.h
30
char machine[__NEW_UTS_LEN + 1];
init/version-timestamp.c
17
.machine = UTS_MACHINE,
kernel/debug/kdb/kdb_main.c
2394
kdb_printf("machine %s\n", init_uts_ns.name.machine);
kernel/power/snapshot.c
2169
if (strcmp(info->uts.machine, init_utsname()->machine))
kernel/sys.c
1313
copy_to_user(name->machine, COMPAT_UTS_MACHINE, \
kernel/sys.c
1406
memcpy(&tmp.machine, &utsname()->machine, __OLD_UTS_LEN);
kernel/utsname_sysctl.c
81
.data = init_uts_ns.name.machine,
kernel/utsname_sysctl.c
82
.maxlen = sizeof(init_uts_ns.name.machine),
lib/asn1_decoder.c
172
const unsigned char *machine = decoder->machine;
lib/asn1_decoder.c
205
op = machine[pc];
lib/asn1_decoder.c
241
optag = machine[pc + 1];
lib/asn1_decoder.c
343
act = machine[pc + 1];
lib/asn1_decoder.c
345
act = machine[pc + 2];
lib/asn1_decoder.c
363
pc = machine[pc + 2];
lib/asn1_decoder.c
410
pc = machine[pc + 1];
lib/asn1_decoder.c
423
pc = machine[pc + 1];
lib/asn1_decoder.c
436
act = machine[pc + 2];
lib/asn1_decoder.c
438
act = machine[pc + 1];
lib/asn1_decoder.c
454
ret = actions[machine[pc + 1]](context, hdr, tag, data + tdp, len);
net/bluetooth/hci_sock.c
1389
init_utsname()->machine);
net/smc/smc_ism.c
63
snprintf(tmp, 5, "%04X", id.machine);
sound/core/info_oss.c
78
init_utsname()->machine);
sound/soc/amd/acp-da7219-max98357a.c
247
struct acp_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp-da7219-max98357a.c
259
machine->play_i2s_instance = I2S_SP_INSTANCE;
sound/soc/amd/acp-da7219-max98357a.c
268
struct acp_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp-da7219-max98357a.c
280
machine->cap_i2s_instance = I2S_SP_INSTANCE;
sound/soc/amd/acp-da7219-max98357a.c
281
machine->capture_channel = CAP_CHANNEL1;
sound/soc/amd/acp-da7219-max98357a.c
290
struct acp_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp-da7219-max98357a.c
302
machine->play_i2s_instance = I2S_BT_INSTANCE;
sound/soc/amd/acp-da7219-max98357a.c
311
struct acp_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp-da7219-max98357a.c
323
machine->cap_i2s_instance = I2S_BT_INSTANCE;
sound/soc/amd/acp-da7219-max98357a.c
332
struct acp_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp-da7219-max98357a.c
344
machine->cap_i2s_instance = I2S_SP_INSTANCE;
sound/soc/amd/acp-da7219-max98357a.c
345
machine->capture_channel = CAP_CHANNEL0;
sound/soc/amd/acp-da7219-max98357a.c
359
struct acp_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp-da7219-max98357a.c
371
machine->play_i2s_instance = I2S_SP_INSTANCE;
sound/soc/amd/acp-da7219-max98357a.c
380
struct acp_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp-da7219-max98357a.c
392
machine->cap_i2s_instance = I2S_SP_INSTANCE;
sound/soc/amd/acp-da7219-max98357a.c
393
machine->capture_channel = CAP_CHANNEL1;
sound/soc/amd/acp-da7219-max98357a.c
402
struct acp_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp-da7219-max98357a.c
414
machine->play_i2s_instance = I2S_BT_INSTANCE;
sound/soc/amd/acp-da7219-max98357a.c
423
struct acp_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp-da7219-max98357a.c
435
machine->cap_i2s_instance = I2S_BT_INSTANCE;
sound/soc/amd/acp-da7219-max98357a.c
444
struct acp_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp-da7219-max98357a.c
456
machine->cap_i2s_instance = I2S_SP_INSTANCE;
sound/soc/amd/acp-da7219-max98357a.c
457
machine->capture_channel = CAP_CHANNEL0;
sound/soc/amd/acp-da7219-max98357a.c
749
struct acp_platform_info *machine;
sound/soc/amd/acp-da7219-max98357a.c
767
machine = devm_kzalloc(&pdev->dev, sizeof(struct acp_platform_info),
sound/soc/amd/acp-da7219-max98357a.c
769
if (!machine)
sound/soc/amd/acp-da7219-max98357a.c
773
snd_soc_card_set_drvdata(card, machine);
sound/soc/amd/acp-es8336.c
108
struct acp_platform_info *machine;
sound/soc/amd/acp-es8336.c
115
machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp-es8336.c
128
machine->play_i2s_instance = I2S_MICSP_INSTANCE;
sound/soc/amd/acp-es8336.c
129
machine->cap_i2s_instance = I2S_MICSP_INSTANCE;
sound/soc/amd/acp-es8336.c
130
machine->capture_channel = CAP_CHANNEL0;
sound/soc/amd/acp-es8336.c
271
struct acp_platform_info *machine;
sound/soc/amd/acp-es8336.c
273
machine = devm_kzalloc(&pdev->dev, sizeof(struct acp_platform_info), GFP_KERNEL);
sound/soc/amd/acp-es8336.c
274
if (!machine)
sound/soc/amd/acp-es8336.c
288
snd_soc_card_set_drvdata(card, machine);
sound/soc/amd/acp3x-rt5682-max9836.c
203
struct acp3x_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp3x-rt5682-max9836.c
205
machine->play_i2s_instance = I2S_SP_INSTANCE;
sound/soc/amd/acp3x-rt5682-max9836.c
206
machine->cap_i2s_instance = I2S_SP_INSTANCE;
sound/soc/amd/acp3x-rt5682-max9836.c
221
struct acp3x_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp3x-rt5682-max9836.c
223
machine->play_i2s_instance = I2S_BT_INSTANCE;
sound/soc/amd/acp3x-rt5682-max9836.c
238
struct acp3x_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp3x-rt5682-max9836.c
240
machine->cap_i2s_instance = I2S_BT_INSTANCE;
sound/soc/amd/acp3x-rt5682-max9836.c
505
struct acp3x_platform_info *machine;
sound/soc/amd/acp3x-rt5682-max9836.c
512
machine = devm_kzalloc(&pdev->dev, sizeof(*machine), GFP_KERNEL);
sound/soc/amd/acp3x-rt5682-max9836.c
513
if (!machine)
sound/soc/amd/acp3x-rt5682-max9836.c
519
snd_soc_card_set_drvdata(card, machine);
sound/soc/amd/vangogh/acp5x-mach.c
147
struct acp5x_platform_info *machine = snd_soc_card_get_drvdata(rtd->card);
sound/soc/amd/vangogh/acp5x-mach.c
149
machine->play_i2s_instance = I2S_SP_INSTANCE;
sound/soc/amd/vangogh/acp5x-mach.c
150
machine->cap_i2s_instance = I2S_SP_INSTANCE;
sound/soc/amd/vangogh/acp5x-mach.c
200
struct acp5x_platform_info *machine = snd_soc_card_get_drvdata(rtd->card);
sound/soc/amd/vangogh/acp5x-mach.c
203
machine->play_i2s_instance = I2S_HS_INSTANCE;
sound/soc/amd/vangogh/acp5x-mach.c
334
struct acp5x_platform_info *machine = snd_soc_card_get_drvdata(rtd->card);
sound/soc/amd/vangogh/acp5x-mach.c
337
machine->play_i2s_instance = I2S_HS_INSTANCE;
sound/soc/amd/vangogh/acp5x-mach.c
451
struct acp5x_platform_info *machine;
sound/soc/amd/vangogh/acp5x-mach.c
460
machine = devm_kzalloc(dev, sizeof(*machine), GFP_KERNEL);
sound/soc/amd/vangogh/acp5x-mach.c
461
if (!machine)
sound/soc/amd/vangogh/acp5x-mach.c
467
snd_soc_card_set_drvdata(card, machine);
sound/soc/rockchip/rk3288_hdmi_analog.c
172
struct rk_drvdata *machine;
sound/soc/rockchip/rk3288_hdmi_analog.c
175
machine = devm_kzalloc(&pdev->dev, sizeof(struct rk_drvdata),
sound/soc/rockchip/rk3288_hdmi_analog.c
177
if (!machine)
sound/soc/rockchip/rk3288_hdmi_analog.c
182
machine->gpio_hp_en = devm_gpiod_get_optional(&pdev->dev, "rockchip,hp-en", GPIOD_OUT_LOW);
sound/soc/rockchip/rk3288_hdmi_analog.c
183
if (IS_ERR(machine->gpio_hp_en))
sound/soc/rockchip/rk3288_hdmi_analog.c
184
return PTR_ERR(machine->gpio_hp_en);
sound/soc/rockchip/rk3288_hdmi_analog.c
185
gpiod_set_consumer_name(machine->gpio_hp_en, "hp_en");
sound/soc/rockchip/rk3288_hdmi_analog.c
232
snd_soc_card_set_drvdata(card, machine);
sound/soc/rockchip/rk3288_hdmi_analog.c
35
struct rk_drvdata *machine = snd_soc_card_get_drvdata(card);
sound/soc/rockchip/rk3288_hdmi_analog.c
37
gpiod_set_value_cansleep(machine->gpio_hp_en,
sound/soc/soc-acpi.c
11
static bool snd_soc_acpi_id_present(struct snd_soc_acpi_mach *machine)
sound/soc/soc-acpi.c
13
const struct snd_soc_acpi_codecs *comp_ids = machine->comp_ids;
sound/soc/soc-acpi.c
16
if (machine->id[0]) {
sound/soc/soc-acpi.c
17
if (acpi_dev_present(machine->id, NULL, -1))
sound/soc/soc-acpi.c
24
strscpy(machine->id, comp_ids->codecs[i], ACPI_ID_LEN);
sound/soc/sof/core.c
222
sof_pdata->machine = mach;
sound/soc/sof/core.c
259
sof_pdata->machine = mach;
sound/soc/sof/core.c
814
drv_name = plat_data->machine->drv_name;
sound/soc/sof/core.c
815
mach = plat_data->machine;
sound/soc/sof/core.c
816
size = sizeof(*plat_data->machine);
sound/soc/sof/fw-file-profile.c
291
if (plat_data->machine && plat_data->machine->get_function_tplg_files &&
sound/soc/sof/intel/hda.c
242
if (pdata->machine && !pdata->machine->mach_params.link_mask)
sound/soc/sof/pcm.c
829
if (plat_data->machine)
sound/soc/sof/pcm.c
830
drv_name = plat_data->machine->drv_name;
sound/soc/sof/topology.c
2520
sof_pdata->machine && sof_pdata->machine->get_function_tplg_files) {
sound/soc/sof/topology.c
2535
tplg_cnt = sof_pdata->machine->get_function_tplg_files(scomp->card,
sound/soc/sof/topology.c
2536
sof_pdata->machine,
sound/soc/tegra/tegra_asoc_machine.c
101
gpiod_set_value_cansleep(machine->gpiod_hp_mute,
sound/soc/tegra/tegra_asoc_machine.c
142
struct tegra_machine *machine = snd_soc_card_get_drvdata(card);
sound/soc/tegra/tegra_asoc_machine.c
146
if (machine->gpiod_hp_det && machine->asoc->add_hp_jack) {
sound/soc/tegra/tegra_asoc_machine.c
147
if (machine->asoc->hp_jack_name)
sound/soc/tegra/tegra_asoc_machine.c
148
jack_name = machine->asoc->hp_jack_name;
sound/soc/tegra/tegra_asoc_machine.c
163
tegra_machine_hp_jack_gpio.desc = machine->gpiod_hp_det;
sound/soc/tegra/tegra_asoc_machine.c
171
if (machine->gpiod_hp_det && machine->asoc->add_headset_jack) {
sound/soc/tegra/tegra_asoc_machine.c
183
tegra_machine_headset_jack_gpio.desc = machine->gpiod_hp_det;
sound/soc/tegra/tegra_asoc_machine.c
191
if (machine->gpiod_mic_det && machine->asoc->add_mic_jack) {
sound/soc/tegra/tegra_asoc_machine.c
202
tegra_machine_mic_jack_gpio.data = machine;
sound/soc/tegra/tegra_asoc_machine.c
203
tegra_machine_mic_jack_gpio.desc = machine->gpiod_mic_det;
sound/soc/tegra/tegra_asoc_machine.c
207
tegra_machine_mic_jack_gpio.desc = machine->gpiod_hp_det;
sound/soc/tegra/tegra_asoc_machine.c
315
struct tegra_machine *machine = snd_soc_card_get_drvdata(card);
sound/soc/tegra/tegra_asoc_machine.c
317
unsigned int mclk = machine->asoc->mclk_rate(srate);
sound/soc/tegra/tegra_asoc_machine.c
318
unsigned int clk_id = machine->asoc->mclk_id;
sound/soc/tegra/tegra_asoc_machine.c
352
if (new_baseclock != machine->set_baseclock ||
sound/soc/tegra/tegra_asoc_machine.c
353
mclk != machine->set_mclk) {
sound/soc/tegra/tegra_asoc_machine.c
354
machine->set_baseclock = 0;
sound/soc/tegra/tegra_asoc_machine.c
355
machine->set_mclk = 0;
sound/soc/tegra/tegra_asoc_machine.c
357
clk_disable_unprepare(machine->clk_cdev1);
sound/soc/tegra/tegra_asoc_machine.c
359
err = clk_set_rate(machine->clk_pll_a, new_baseclock);
sound/soc/tegra/tegra_asoc_machine.c
365
err = clk_set_rate(machine->clk_pll_a_out0, mclk);
sound/soc/tegra/tegra_asoc_machine.c
373
err = clk_prepare_enable(machine->clk_cdev1);
sound/soc/tegra/tegra_asoc_machine.c
379
machine->set_baseclock = new_baseclock;
sound/soc/tegra/tegra_asoc_machine.c
380
machine->set_mclk = mclk;
sound/soc/tegra/tegra_asoc_machine.c
451
struct tegra_machine *machine;
sound/soc/tegra/tegra_asoc_machine.c
456
machine = devm_kzalloc(dev, sizeof(*machine), GFP_KERNEL);
sound/soc/tegra/tegra_asoc_machine.c
457
if (!machine)
sound/soc/tegra/tegra_asoc_machine.c
464
machine->asoc = asoc;
sound/soc/tegra/tegra_asoc_machine.c
465
machine->mic_jack = &tegra_machine_mic_jack;
sound/soc/tegra/tegra_asoc_machine.c
466
machine->hp_jack_gpio = &tegra_machine_hp_jack_gpio;
sound/soc/tegra/tegra_asoc_machine.c
467
snd_soc_card_set_drvdata(card, machine);
sound/soc/tegra/tegra_asoc_machine.c
470
machine->gpiod_hp_mute = gpiod;
sound/soc/tegra/tegra_asoc_machine.c
476
machine->gpiod_hp_det = gpiod;
sound/soc/tegra/tegra_asoc_machine.c
482
machine->gpiod_mic_det = gpiod;
sound/soc/tegra/tegra_asoc_machine.c
488
machine->gpiod_spkr_en = gpiod;
sound/soc/tegra/tegra_asoc_machine.c
494
machine->gpiod_int_mic_en = gpiod;
sound/soc/tegra/tegra_asoc_machine.c
500
machine->gpiod_ext_mic_en = gpiod;
sound/soc/tegra/tegra_asoc_machine.c
55
struct tegra_machine *machine = (struct tegra_machine *)data;
sound/soc/tegra/tegra_asoc_machine.c
558
machine->clk_pll_a = devm_clk_get(dev, "pll_a");
sound/soc/tegra/tegra_asoc_machine.c
559
if (IS_ERR(machine->clk_pll_a))
sound/soc/tegra/tegra_asoc_machine.c
560
return dev_err_probe(dev, PTR_ERR(machine->clk_pll_a),
sound/soc/tegra/tegra_asoc_machine.c
563
machine->clk_pll_a_out0 = devm_clk_get(dev, "pll_a_out0");
sound/soc/tegra/tegra_asoc_machine.c
564
if (IS_ERR(machine->clk_pll_a_out0))
sound/soc/tegra/tegra_asoc_machine.c
565
return dev_err_probe(dev, PTR_ERR(machine->clk_pll_a_out0),
sound/soc/tegra/tegra_asoc_machine.c
568
machine->clk_cdev1 = devm_clk_get(dev, "mclk");
sound/soc/tegra/tegra_asoc_machine.c
569
if (IS_ERR(machine->clk_cdev1))
sound/soc/tegra/tegra_asoc_machine.c
570
return dev_err_probe(dev, PTR_ERR(machine->clk_cdev1),
sound/soc/tegra/tegra_asoc_machine.c
58
if (gpiod_get_value_cansleep(machine->gpiod_hp_det) &&
sound/soc/tegra/tegra_asoc_machine.c
589
err = clk_set_parent(clk_extern1, machine->clk_pll_a_out0);
sound/soc/tegra/tegra_asoc_machine.c
59
gpiod_get_value_cansleep(machine->gpiod_mic_det))
sound/soc/tegra/tegra_asoc_machine.c
604
machine->clk_cdev1 = clk_out_1;
sound/soc/tegra/tegra_asoc_machine.c
612
err = clk_set_rate(machine->clk_pll_a, 73728000);
sound/soc/tegra/tegra_asoc_machine.c
617
err = clk_set_rate(machine->clk_pll_a_out0, 24576000);
sound/soc/tegra/tegra_asoc_machine.c
622
machine->set_baseclock = 73728000;
sound/soc/tegra/tegra_asoc_machine.c
623
machine->set_mclk = 24576000;
sound/soc/tegra/tegra_asoc_machine.c
631
err = clk_prepare_enable(machine->clk_cdev1);
sound/soc/tegra/tegra_asoc_machine.c
82
struct tegra_machine *machine = snd_soc_card_get_drvdata(card);
sound/soc/tegra/tegra_asoc_machine.c
86
gpiod_set_value_cansleep(machine->gpiod_spkr_en,
sound/soc/tegra/tegra_asoc_machine.c
91
gpiod_set_value_cansleep(machine->gpiod_ext_mic_en,
sound/soc/tegra/tegra_asoc_machine.c
96
gpiod_set_value_cansleep(machine->gpiod_int_mic_en,
sound/soc/tegra/tegra_wm8903.c
57
struct tegra_machine *machine = snd_soc_card_get_drvdata(rtd->card);
sound/soc/tegra/tegra_wm8903.c
68
if (machine->asoc->hp_jack_gpio_active_low) {
sound/soc/tegra/tegra_wm8903.c
69
bool active_low = gpiod_is_active_low(machine->gpiod_hp_det);
sound/soc/tegra/tegra_wm8903.c
71
machine->hp_jack_gpio->invert = !active_low;
sound/soc/tegra/tegra_wm8903.c
78
if (!machine->gpiod_mic_det && machine->asoc->add_mic_jack) {
sound/soc/tegra/tegra_wm8903.c
85
machine->mic_jack,
sound/soc/tegra/tegra_wm8903.c
96
wm8903_mic_detect(component, machine->mic_jack,
sound/soc/tegra/tegra_wm8962.c
69
struct tegra_machine *machine = snd_soc_card_get_drvdata(rtd->card);
sound/soc/tegra/tegra_wm8962.c
78
if (!machine->gpiod_mic_det && machine->asoc->add_mic_jack) {
sound/soc/tegra/tegra_wm8962.c
84
machine->mic_jack,
sound/soc/tegra/tegra_wm8962.c
92
wm8962_mic_detect(component, machine->mic_jack);
tools/hv/hv_kvp_daemon.c
485
processor_arch = uts_buf.machine;
tools/include/nolibc/sys/utsname.h
26
char machine[65];
tools/perf/arch/x86/util/event.c
20
struct machine *machine;
tools/perf/arch/x86/util/event.c
38
args->machine->id_hdr_size;
tools/perf/arch/x86/util/event.c
48
if (machine__is_host(args->machine))
tools/perf/arch/x86/util/event.c
58
event->mmap.pid = args->machine->pid;
tools/perf/arch/x86/util/event.c
62
if (perf_tool__process_synth_event(args->tool, event, args->machine, args->process) != 0)
tools/perf/arch/x86/util/event.c
70
struct machine *machine)
tools/perf/arch/x86/util/event.c
73
struct maps *kmaps = machine__kernel_maps(machine);
tools/perf/arch/x86/util/event.c
77
.machine = machine,
tools/perf/arch/x86/util/event.c
78
.event = zalloc(sizeof(args.event->mmap) + machine->id_hdr_size),
tools/perf/arch/x86/util/machine.c
70
int machine__create_extra_kernel_maps(struct machine *machine,
tools/perf/arch/x86/util/machine.c
78
machine__get_kallsyms_filename(machine, filename, PATH_MAX);
tools/perf/arch/x86/util/machine.c
94
ret = machine__create_extra_kernel_map(machine, kernel, xm);
tools/perf/arch/x86/util/machine.c
99
machine->trampolines_mapped = mi.cnt;
tools/perf/bench/synthesize.c
56
struct machine *machine __maybe_unused)
tools/perf/builtin-annotate.c
196
struct machine *machine)
tools/perf/builtin-annotate.c
208
if (machine__resolve(machine, &a, sample) < 0) {
tools/perf/builtin-annotate.c
237
struct machine *machine)
tools/perf/builtin-annotate.c
269
return process_branch_callback(sample, al, ann, machine);
tools/perf/builtin-annotate.c
283
struct machine *machine)
tools/perf/builtin-annotate.c
290
if (machine__resolve(machine, &al, sample) < 0) {
tools/perf/builtin-annotate.c
303
add_sample(sample, &al, ann, machine)) {
tools/perf/builtin-buildid-list.c
49
struct machine *machine;
tools/perf/builtin-buildid-list.c
52
machine = machine__new_host(&host_env);
tools/perf/builtin-buildid-list.c
53
machine__for_each_kernel_map(machine, buildid__map_cb, NULL);
tools/perf/builtin-buildid-list.c
54
machine__delete(machine);
tools/perf/builtin-c2c.c
332
struct machine *machine)
tools/perf/builtin-c2c.c
345
if (machine__resolve(machine, &al, sample) < 0) {
tools/perf/builtin-c2c.c
412
c2c_hists = he__get_c2c_hists(he, c2c.cl_sort, 2, machine->env);
tools/perf/builtin-diff.c
393
struct machine *machine)
tools/perf/builtin-diff.c
411
if (machine__resolve(machine, &al, sample) < 0) {
tools/perf/builtin-inject.c
1006
err = perf_event__synthesize_build_id(tool, sample, machine,
tools/perf/builtin-inject.c
1020
struct machine *machine,
tools/perf/builtin-inject.c
1041
err = perf_event__synthesize_mmap2_build_id(tool, sample, machine,
tools/perf/builtin-inject.c
1058
struct machine *machine,
tools/perf/builtin-inject.c
1092
tool__inject_build_id(tool, sample, machine,
tools/perf/builtin-inject.c
1106
perf_event__synthesize_mmap2_build_id(tool, sample, machine,
tools/perf/builtin-inject.c
1127
struct machine *machine;
tools/perf/builtin-inject.c
1136
return mark_dso_hit(args->inject, args->tool, args->sample, args->machine,
tools/perf/builtin-inject.c
1141
struct perf_sample *sample, struct machine *machine)
tools/perf/builtin-inject.c
1154
.machine = machine,
tools/perf/builtin-inject.c
1159
thread = machine__findnew_thread(machine, sample->pid, sample->tid);
tools/perf/builtin-inject.c
1167
mark_dso_hit(inject, tool, sample, machine, args.mmap_evsel, al.map,
tools/perf/builtin-inject.c
1175
perf_event__repipe(tool, event, sample, machine);
tools/perf/builtin-inject.c
1183
struct machine *machine __maybe_unused)
tools/perf/builtin-inject.c
1202
struct machine *machine)
tools/perf/builtin-inject.c
1207
perf_inject__sched_process_exit(tool, event, sample, machine);
tools/perf/builtin-inject.c
1226
struct machine *machine)
tools/perf/builtin-inject.c
1251
build_id__mark_dso_hit(tool, event_sw, &sample_sw, machine);
tools/perf/builtin-inject.c
1252
ret = perf_event__repipe(tool, event_sw, &sample_sw, machine);
tools/perf/builtin-inject.c
1275
struct machine *machine __maybe_unused)
tools/perf/builtin-inject.c
1440
struct machine *machine __maybe_unused)
tools/perf/builtin-inject.c
152
struct machine *machine,
tools/perf/builtin-inject.c
1522
struct machine *machine = &session->machines.host;
tools/perf/builtin-inject.c
1526
evlist, machine, from);
tools/perf/builtin-inject.c
1569
struct machine *machine __maybe_unused)
tools/perf/builtin-inject.c
1578
struct machine *machine = perf_session__findnew_machine(inject->session, machine_pid);
tools/perf/builtin-inject.c
158
struct machine *machine,
tools/perf/builtin-inject.c
1592
if (!machine)
tools/perf/builtin-inject.c
1597
return perf_event__synthesize_build_id(&inject->tool, &synth_sample, machine,
tools/perf/builtin-inject.c
1630
struct machine *machine __maybe_unused)
tools/perf/builtin-inject.c
2014
struct machine *machine)
tools/perf/builtin-inject.c
2023
return perf_event__repipe(tool, event, sample, machine);
tools/perf/builtin-inject.c
2106
struct machine *machine)
tools/perf/builtin-inject.c
2135
return host__repipe(tool, event, sample, machine);
tools/perf/builtin-inject.c
2160
struct machine *machine __maybe_unused)
tools/perf/builtin-inject.c
223
struct machine *machine __maybe_unused)
tools/perf/builtin-inject.c
377
struct machine *machine __maybe_unused)
tools/perf/builtin-inject.c
385
struct machine *machine __maybe_unused)
tools/perf/builtin-inject.c
393
struct machine *machine __maybe_unused)
tools/perf/builtin-inject.c
433
struct machine *machine);
tools/perf/builtin-inject.c
438
struct machine *machine)
tools/perf/builtin-inject.c
448
return f(tool, event, sample, machine);
tools/perf/builtin-inject.c
451
build_id__mark_dso_hit(tool, event, sample, machine);
tools/perf/builtin-inject.c
525
struct machine *machine)
tools/perf/builtin-inject.c
551
thread = machine__find_thread(machine, sample->tid, sample->pid);
tools/perf/builtin-inject.c
576
if (!(machine->single_address_space &&
tools/perf/builtin-inject.c
577
machine__kernel_ip(machine, node->ip)) &&
tools/perf/builtin-inject.c
614
const struct dso_id *id, struct machine *machine)
tools/perf/builtin-inject.c
622
thread = machine__findnew_thread(machine, pid, tid);
tools/perf/builtin-inject.c
642
dso = machine__findnew_vdso(machine, thread);
tools/perf/builtin-inject.c
644
dso = machine__findnew_dso_id(machine, filename, id);
tools/perf/builtin-inject.c
683
struct machine *machine,
tools/perf/builtin-inject.c
692
struct machine *machine))
tools/perf/builtin-inject.c
704
ret = jit_process(inject->session, &inject->output, machine,
tools/perf/builtin-inject.c
715
dso = findnew_dso(pid, tid, filename, dso_id, machine);
tools/perf/builtin-inject.c
724
dso = findnew_dso(pid, tid, filename, dso_id, machine);
tools/perf/builtin-inject.c
734
tool__inject_build_id(tool, sample, machine,
tools/perf/builtin-inject.c
752
err = perf_event_process(tool, event, sample, machine);
tools/perf/builtin-inject.c
765
dso = findnew_dso(pid, tid, filename, dso_id, machine);
tools/perf/builtin-inject.c
769
!tool__inject_mmap2_build_id(tool, sample, machine,
tools/perf/builtin-inject.c
786
return perf_event__repipe(tool, event, sample, machine);
tools/perf/builtin-inject.c
792
struct machine *machine)
tools/perf/builtin-inject.c
795
tool, event, sample, machine,
tools/perf/builtin-inject.c
806
struct machine *machine)
tools/perf/builtin-inject.c
822
tool, event, sample, machine,
tools/perf/builtin-inject.c
833
struct machine *machine)
tools/perf/builtin-inject.c
837
err = perf_event__process_fork(tool, event, sample, machine);
tools/perf/builtin-inject.c
838
perf_event__repipe(tool, event, sample, machine);
tools/perf/builtin-inject.c
846
struct machine *machine)
tools/perf/builtin-inject.c
850
err = perf_event__process_comm(tool, event, sample, machine);
tools/perf/builtin-inject.c
851
perf_event__repipe(tool, event, sample, machine);
tools/perf/builtin-inject.c
859
struct machine *machine)
tools/perf/builtin-inject.c
861
int err = perf_event__process_namespaces(tool, event, sample, machine);
tools/perf/builtin-inject.c
863
perf_event__repipe(tool, event, sample, machine);
tools/perf/builtin-inject.c
871
struct machine *machine)
tools/perf/builtin-inject.c
875
err = perf_event__process_exit(tool, event, sample, machine);
tools/perf/builtin-inject.c
876
perf_event__repipe(tool, event, sample, machine);
tools/perf/builtin-inject.c
984
struct machine *machine,
tools/perf/builtin-kallsyms.c
24
struct machine *machine = NULL;
tools/perf/builtin-kallsyms.c
32
machine = machine__new_kallsyms(&host_env);
tools/perf/builtin-kallsyms.c
33
if (machine == NULL) {
tools/perf/builtin-kallsyms.c
42
struct symbol *symbol = machine__find_kernel_symbol_by_name(machine, argv[i], &map);
tools/perf/builtin-kallsyms.c
56
machine__delete(machine);
tools/perf/builtin-kmem.c
1027
struct machine *machine = &session->machines.host;
tools/perf/builtin-kmem.c
1047
sym = machine__find_kernel_symbol(machine, addr, &map);
tools/perf/builtin-kmem.c
1088
struct machine *machine = &session->machines.host;
tools/perf/builtin-kmem.c
1111
sym = machine__find_kernel_symbol(machine, data->callsite, &map);
tools/perf/builtin-kmem.c
1137
struct machine *machine = &session->machines.host;
tools/perf/builtin-kmem.c
1153
sym = machine__find_kernel_symbol(machine, data->callsite, &map);
tools/perf/builtin-kmem.c
351
struct machine *machine = &kmem_session->machines.host;
tools/perf/builtin-kmem.c
364
kernel_map = machine__kernel_map(machine);
tools/perf/builtin-kmem.c
401
struct machine *machine = &kmem_session->machines.host;
tools/perf/builtin-kmem.c
412
al.thread = machine__findnew_thread(machine, sample->pid, sample->tid);
tools/perf/builtin-kmem.c
983
struct machine *machine)
tools/perf/builtin-kmem.c
987
struct thread *thread = machine__findnew_thread(machine, sample->pid,
tools/perf/builtin-kvm.c
1113
struct machine *machine __maybe_unused)
tools/perf/builtin-kvm.c
1134
struct machine *machine)
tools/perf/builtin-kvm.c
1144
if (machine__resolve(machine, &kvm->al, sample) < 0) {
tools/perf/builtin-kvm.c
1150
thread = machine__findnew_thread(machine, sample->pid, sample->tid);
tools/perf/builtin-kvm.c
925
struct machine *machine = maps__machine(thread__maps(thread));
tools/perf/builtin-kvm.c
926
uint16_t e_machine = thread__e_machine(thread, machine, /*e_flags=*/NULL);
tools/perf/builtin-kwork.c
1004
struct machine *machine)
tools/perf/builtin-kwork.c
1010
sample, machine);
tools/perf/builtin-kwork.c
1016
struct machine *machine)
tools/perf/builtin-kwork.c
1022
sample, machine);
tools/perf/builtin-kwork.c
1048
struct machine *machine __maybe_unused)
tools/perf/builtin-kwork.c
1083
struct machine *machine)
tools/perf/builtin-kwork.c
1089
sample, machine);
tools/perf/builtin-kwork.c
1096
struct machine *machine)
tools/perf/builtin-kwork.c
1102
sample, machine);
tools/perf/builtin-kwork.c
1109
struct machine *machine)
tools/perf/builtin-kwork.c
1115
sample, machine);
tools/perf/builtin-kwork.c
1175
struct machine *machine __maybe_unused)
tools/perf/builtin-kwork.c
1213
struct machine *machine)
tools/perf/builtin-kwork.c
1219
sample, machine);
tools/perf/builtin-kwork.c
1226
struct machine *machine)
tools/perf/builtin-kwork.c
1232
sample, machine);
tools/perf/builtin-kwork.c
1239
struct machine *machine)
tools/perf/builtin-kwork.c
1245
sample, machine);
tools/perf/builtin-kwork.c
1274
struct machine *machine)
tools/perf/builtin-kwork.c
1285
const char *name = machine__resolve_kernel_addr(machine, &function_addr, &modp);
tools/perf/builtin-kwork.c
1313
struct machine *machine)
tools/perf/builtin-kwork.c
1319
sample, machine);
tools/perf/builtin-kwork.c
1345
struct machine *machine __maybe_unused)
tools/perf/builtin-kwork.c
1990
struct machine *machine);
tools/perf/builtin-kwork.c
1995
struct machine *machine)
tools/perf/builtin-kwork.c
2003
err = f(tool, sample, machine);
tools/perf/builtin-kwork.c
498
struct machine *machine,
tools/perf/builtin-kwork.c
507
class->work_init(kwork, class, &key, src_type, sample, machine);
tools/perf/builtin-kwork.c
561
struct machine *machine,
tools/perf/builtin-kwork.c
568
class->work_init(kwork, class, &key, src_type, sample, machine);
tools/perf/builtin-kwork.c
653
struct machine *machine)
tools/perf/builtin-kwork.c
657
machine, NULL, true);
tools/perf/builtin-kwork.c
663
struct machine *machine)
tools/perf/builtin-kwork.c
670
machine, &work);
tools/perf/builtin-kwork.c
706
struct machine *machine)
tools/perf/builtin-kwork.c
710
machine, NULL, true);
tools/perf/builtin-kwork.c
716
struct machine *machine)
tools/perf/builtin-kwork.c
723
machine, &work);
tools/perf/builtin-kwork.c
737
struct machine *machine)
tools/perf/builtin-kwork.c
748
thread = machine__findnew_thread(machine, sample->pid, sample->pid);
tools/perf/builtin-kwork.c
862
struct machine *machine)
tools/perf/builtin-kwork.c
866
machine, NULL, true);
tools/perf/builtin-kwork.c
872
struct machine *machine)
tools/perf/builtin-kwork.c
879
machine, &work, true);
tools/perf/builtin-kwork.c
884
timehist_save_callchain(kwork, sample, machine);
tools/perf/builtin-kwork.c
892
struct machine *machine)
tools/perf/builtin-kwork.c
900
if (machine__resolve(machine, &al, sample) < 0) {
tools/perf/builtin-kwork.c
909
machine, &work);
tools/perf/builtin-kwork.c
943
struct machine *machine)
tools/perf/builtin-kwork.c
947
machine, NULL, true);
tools/perf/builtin-kwork.c
953
struct machine *machine)
tools/perf/builtin-kwork.c
961
machine, &work);
tools/perf/builtin-kwork.c
982
struct machine *machine)
tools/perf/builtin-kwork.c
989
machine, &work);
tools/perf/builtin-kwork.c
998
return top_entry_event(kwork, class, sample, machine);
tools/perf/builtin-lock.c
1020
sym = machine__find_kernel_symbol(machine, key, &kmap);
tools/perf/builtin-lock.c
1073
if (!match_callstack_filter(machine, callstack, max_stack_depth)) {
tools/perf/builtin-lock.c
1429
struct machine *machine)
tools/perf/builtin-lock.c
1433
struct thread *thread = machine__findnew_thread(machine, sample->pid,
tools/perf/builtin-lock.c
1667
sym = machine__find_kernel_symbol(con->machine, ip, &kmap);
tools/perf/builtin-lock.c
1720
sym = machine__find_kernel_symbol(con->machine, ip, &kmap);
tools/perf/builtin-lock.c
2041
con.machine = &session->machines.host;
tools/perf/builtin-lock.c
841
struct machine *machine = &session->machines.host;
tools/perf/builtin-lock.c
850
thread = machine__findnew_thread(machine, -1, sample->pid);
tools/perf/builtin-lock.c
879
if (sym && !machine__is_lock_function(machine, node->ip)) {
tools/perf/builtin-lock.c
894
struct machine *machine = &session->machines.host;
tools/perf/builtin-lock.c
900
thread = machine__findnew_thread(machine, -1, sample->pid);
tools/perf/builtin-lock.c
926
if (node->ms.sym && machine__is_lock_function(machine, node->ip))
tools/perf/builtin-lock.c
975
struct machine *machine = &session->machines.host;
tools/perf/builtin-lock.c
987
map__load(machine__kernel_map(machine));
tools/perf/builtin-lock.c
992
sym = machine__find_kernel_symbol_by_name(machine,
tools/perf/builtin-mem.c
184
struct machine *machine)
tools/perf/builtin-mem.c
193
if (machine__resolve(machine, &al, sample) < 0) {
tools/perf/builtin-mem.c
258
struct machine *machine)
tools/perf/builtin-mem.c
260
return dump_raw_samples(tool, event, sample, machine);
tools/perf/builtin-record.c
1494
struct machine *machine)
tools/perf/builtin-record.c
1504
return build_id__mark_dso_hit(tool, event, sample, machine);
tools/perf/builtin-record.c
1538
static void perf_event__synthesize_guest_os(struct machine *machine, void *data)
tools/perf/builtin-record.c
1551
machine);
tools/perf/builtin-record.c
1554
" relocation symbol.\n", machine->pid);
tools/perf/builtin-record.c
1561
machine);
tools/perf/builtin-record.c
1564
" relocation symbol.\n", machine->pid);
tools/perf/builtin-record.c
204
struct perf_sample *sample, struct machine *machine);
tools/perf/builtin-record.c
206
struct perf_sample *sample, struct machine *machine);
tools/perf/builtin-record.c
2089
struct machine *machine = &session->machines.host;
tools/perf/builtin-record.c
210
struct machine *machine);
tools/perf/builtin-record.c
2109
process_synthesized_event, machine);
tools/perf/builtin-record.c
2116
session->evlist, machine);
tools/perf/builtin-record.c
2129
machine);
tools/perf/builtin-record.c
2135
machine);
tools/perf/builtin-record.c
2169
machine, opts);
tools/perf/builtin-record.c
2177
machine);
tools/perf/builtin-record.c
2193
err = __machine__synthesize_threads(machine, tool, &opts->target,
tools/perf/builtin-record.c
2655
struct machine *machine = &session->machines.host;
tools/perf/builtin-record.c
2659
event = malloc(sizeof(event->comm) + machine->id_hdr_size);
tools/perf/builtin-record.c
2674
machine);
tools/perf/builtin-record.c
2682
machine->id_hdr_size);
tools/perf/builtin-record.c
2694
machine);
tools/perf/builtin-record.c
3347
struct perf_sample *sample, struct machine *machine)
tools/perf/builtin-record.c
3355
return perf_event__process_mmap(tool, event, sample, machine);
tools/perf/builtin-record.c
3359
struct perf_sample *sample, struct machine *machine)
tools/perf/builtin-record.c
3368
return perf_event__process_mmap2(tool, event, sample, machine);
tools/perf/builtin-record.c
3374
struct machine *machine __maybe_unused)
tools/perf/builtin-record.c
630
struct machine *machine __maybe_unused)
tools/perf/builtin-record.c
641
struct machine *machine __maybe_unused)
tools/perf/builtin-record.c
646
ret = process_synthesized_event(tool, event, sample, machine);
tools/perf/builtin-record.c
977
static bool record__kcore_readable(struct machine *machine)
tools/perf/builtin-record.c
982
scnprintf(kcore, sizeof(kcore), "%s/proc/kcore", machine->root_dir);
tools/perf/builtin-record.c
993
static int record__kcore_copy(struct machine *machine, struct perf_data *data)
tools/perf/builtin-record.c
999
snprintf(from_dir, sizeof(from_dir), "%s/proc", machine->root_dir);
tools/perf/builtin-report.c
1002
parent = machine__find_thread(machine, -1, thread__ppid(a));
tools/perf/builtin-report.c
1007
parent = machine__find_thread(machine, -1, thread__ppid(b));
tools/perf/builtin-report.c
1033
struct machine *machine = &rep->session->machines.host;
tools/perf/builtin-report.c
1037
ret = machine__thread_list(machine, &tasks);
tools/perf/builtin-report.c
1041
list_sort(machine, &tasks, task_list_cmp);
tools/perf/builtin-report.c
1046
task__print_level(machine, task->thread, fp);
tools/perf/builtin-report.c
267
struct machine *machine)
tools/perf/builtin-report.c
287
if (machine__resolve(machine, &al, sample) < 0) {
tools/perf/builtin-report.c
348
struct machine *machine __maybe_unused)
tools/perf/builtin-report.c
782
struct machine *machine __maybe_unused)
tools/perf/builtin-report.c
793
struct machine *machine __maybe_unused)
tools/perf/builtin-report.c
900
static int thread_level(struct machine *machine, const struct thread *thread)
tools/perf/builtin-report.c
911
parent_thread = machine__find_thread(machine, -1, thread__ppid(thread));
tools/perf/builtin-report.c
916
res = 1 + thread_level(machine, parent_thread);
tools/perf/builtin-report.c
921
static void task__print_level(struct machine *machine, struct thread *thread, FILE *fp)
tools/perf/builtin-report.c
923
int level = thread_level(machine, thread);
tools/perf/builtin-report.c
945
struct machine *machine = priv;
tools/perf/builtin-report.c
972
level_a = thread_level(machine, a);
tools/perf/builtin-report.c
973
level_b = thread_level(machine, b);
tools/perf/builtin-report.c
977
struct thread *parent = machine__find_thread(machine, -1, thread__ppid(a));
tools/perf/builtin-report.c
988
struct thread *parent = machine__find_thread(machine, -1, thread__ppid(b));
tools/perf/builtin-sched.c
1180
struct machine *machine)
tools/perf/builtin-sched.c
1210
sched_out = machine__findnew_thread(machine, -1, prev_pid);
tools/perf/builtin-sched.c
1211
sched_in = machine__findnew_thread(machine, -1, next_pid);
tools/perf/builtin-sched.c
1254
struct machine *machine)
tools/perf/builtin-sched.c
1258
struct thread *thread = machine__findnew_thread(machine, -1, pid);
tools/perf/builtin-sched.c
1296
struct machine *machine)
tools/perf/builtin-sched.c
1305
wakee = machine__findnew_thread(machine, -1, pid);
tools/perf/builtin-sched.c
135
struct machine *machine);
tools/perf/builtin-sched.c
1356
struct machine *machine)
tools/perf/builtin-sched.c
1371
migrant = machine__findnew_thread(machine, -1, pid);
tools/perf/builtin-sched.c
138
struct machine *machine);
tools/perf/builtin-sched.c
141
struct machine *machine);
tools/perf/builtin-sched.c
145
struct machine *machine);
tools/perf/builtin-sched.c
149
struct machine *machine);
tools/perf/builtin-sched.c
1574
struct machine *machine)
tools/perf/builtin-sched.c
1579
return sched->tp_handler->wakeup_event(sched, sample, machine);
tools/perf/builtin-sched.c
1586
struct machine *machine __maybe_unused)
tools/perf/builtin-sched.c
1599
map__findnew_thread(struct perf_sched *sched, struct machine *machine, pid_t pid, pid_t tid)
tools/perf/builtin-sched.c
1601
struct thread *thread = machine__findnew_thread(machine, pid, tid);
tools/perf/builtin-sched.c
1689
struct machine *machine)
tools/perf/builtin-sched.c
1740
sched_in = map__findnew_thread(sched, machine, -1, next_pid);
tools/perf/builtin-sched.c
1741
sched_out = map__findnew_thread(sched, machine, -1, prev_pid);
tools/perf/builtin-sched.c
1859
struct machine *machine)
tools/perf/builtin-sched.c
1883
err = sched->tp_handler->switch_event(sched, sample, machine);
tools/perf/builtin-sched.c
1891
struct machine *machine)
tools/perf/builtin-sched.c
1903
return sched->tp_handler->runtime_event(sched, sample, machine);
tools/perf/builtin-sched.c
1911
struct machine *machine)
tools/perf/builtin-sched.c
1916
perf_event__process_fork(tool, event, sample, machine);
tools/perf/builtin-sched.c
1920
return sched->tp_handler->fork_event(sched, event, machine);
tools/perf/builtin-sched.c
1927
struct machine *machine)
tools/perf/builtin-sched.c
1932
return sched->tp_handler->migrate_task_event(sched, sample, machine);
tools/perf/builtin-sched.c
1939
struct machine *machine);
tools/perf/builtin-sched.c
1944
struct machine *machine)
tools/perf/builtin-sched.c
1951
err = f(tool, sample, machine);
tools/perf/builtin-sched.c
1960
struct machine *machine)
tools/perf/builtin-sched.c
1966
err = perf_event__process_comm(tool, event, sample, machine);
tools/perf/builtin-sched.c
1970
thread = machine__find_thread(machine, sample->pid, sample->tid);
tools/perf/builtin-sched.c
2402
struct machine *machine)
tools/perf/builtin-sched.c
2408
thread = machine__findnew_thread(machine, sample->pid, sample->pid);
tools/perf/builtin-sched.c
2582
struct machine *machine)
tools/perf/builtin-sched.c
2593
thread = machine__findnew_thread(machine, sample->pid,
tools/perf/builtin-sched.c
2600
save_task_callchain(sched, sample, machine);
tools/perf/builtin-sched.c
2680
struct machine *machine,
tools/perf/builtin-sched.c
2686
thread = machine__findnew_thread(machine, sample->pid, sample->tid);
tools/perf/builtin-sched.c
2717
struct machine *machine __maybe_unused)
tools/perf/builtin-sched.c
2725
struct machine *machine)
tools/perf/builtin-sched.c
2733
thread = machine__findnew_thread(machine, 0, pid);
tools/perf/builtin-sched.c
2749
timehist_print_wakeup_event(sched, sample, machine, thread);
tools/perf/builtin-sched.c
2757
struct machine *machine,
tools/perf/builtin-sched.c
2772
thread = machine__findnew_thread(machine, sample->pid, sample->tid);
tools/perf/builtin-sched.c
2812
struct machine *machine)
tools/perf/builtin-sched.c
2820
thread = machine__findnew_thread(machine, 0, pid);
tools/perf/builtin-sched.c
2835
timehist_print_migration_event(sched, sample, machine, thread);
tools/perf/builtin-sched.c
2843
struct machine *machine)
tools/perf/builtin-sched.c
2853
thread = machine__findnew_thread(machine, -1, next_pid);
tools/perf/builtin-sched.c
2868
struct machine *machine)
tools/perf/builtin-sched.c
2887
if (machine__resolve(machine, &al, sample) < 0) {
tools/perf/builtin-sched.c
2896
timehist_update_task_prio(sample, machine);
tools/perf/builtin-sched.c
2898
thread = timehist_get_thread(sched, sample, machine);
tools/perf/builtin-sched.c
3020
struct machine *machine __maybe_unused)
tools/perf/builtin-sched.c
3022
return timehist_sched_change_event(tool, event, sample, machine);
tools/perf/builtin-sched.c
3028
struct machine *machine __maybe_unused)
tools/perf/builtin-sched.c
3169
struct machine *m = &session->machines.host;
tools/perf/builtin-sched.c
3272
struct machine *machine);
tools/perf/builtin-sched.c
3277
struct machine *machine)
tools/perf/builtin-sched.c
3294
err = f(tool, event, sample, machine);
tools/perf/builtin-sched.c
3838
struct machine *machine __maybe_unused)
tools/perf/builtin-sched.c
4831
struct machine *machine __maybe_unused)
tools/perf/builtin-sched.c
869
struct machine *machine __maybe_unused)
tools/perf/builtin-sched.c
892
struct machine *machine __maybe_unused)
tools/perf/builtin-sched.c
938
struct machine *machine)
tools/perf/builtin-sched.c
942
child = machine__findnew_thread(machine, event->fork.pid,
tools/perf/builtin-sched.c
944
parent = machine__findnew_thread(machine, event->fork.ppid,
tools/perf/builtin-script.c
1102
struct machine *machine, struct thread *thread,
tools/perf/builtin-script.c
1114
kernel = machine__kernel_ip(machine, start);
tools/perf/builtin-script.c
1126
if (kernel != machine__kernel_ip(machine, end)) {
tools/perf/builtin-script.c
1153
len = dso__data_read_offset(dso, machine, offset, (u8 *)buffer,
tools/perf/builtin-script.c
1233
int printed = fprintf_insn_asm(x->machine, x->thread, x->cpumode, x->is64bit,
tools/perf/builtin-script.c
1366
struct machine *machine, FILE *fp)
tools/perf/builtin-script.c
1386
x.machine = machine;
tools/perf/builtin-script.c
1397
machine, thread, &x.is64bit, &x.cpumode, false);
tools/perf/builtin-script.c
1417
len = grab_bb(buffer, start, end, machine, thread, &x.is64bit, &x.cpumode, false);
tools/perf/builtin-script.c
1422
len = grab_bb(buffer, start, end, machine, thread, &x.is64bit, &x.cpumode, false);
tools/perf/builtin-script.c
1481
len = grab_bb(buffer, start, end, machine, thread, &x.is64bit, &x.cpumode, true);
tools/perf/builtin-script.c
1486
machine, thread, &x.is64bit, &x.cpumode, false);
tools/perf/builtin-script.c
1635
struct machine *machine, FILE *fp,
tools/perf/builtin-script.c
1640
perf_sample__fetch_insn(sample, thread, machine);
tools/perf/builtin-script.c
1650
printed += sample__fprintf_insn_asm(sample, thread, machine, fp, al);
tools/perf/builtin-script.c
1653
printed += perf_sample__fprintf_brstackinsn(sample, evsel, thread, attr, machine, fp);
tools/perf/builtin-script.c
1677
struct machine *machine, FILE *fp)
tools/perf/builtin-script.c
1725
printed += perf_sample__fprintf_insn(sample, evsel, attr, thread, machine, fp, al);
tools/perf/builtin-script.c
2432
struct machine *machine)
tools/perf/builtin-script.c
2467
perf_sample__fprintf_bts(sample, evsel, thread, al, addr_al, machine, fp);
tools/perf/builtin-script.c
2501
struct cgroup *cgrp = cgroup__find(machine->env,
tools/perf/builtin-script.c
2530
thread__e_machine(thread, machine, &e_flags),
tools/perf/builtin-script.c
2537
thread__e_machine(thread, machine, &e_flags),
tools/perf/builtin-script.c
2551
perf_sample__fprintf_insn(sample, evsel, attr, thread, machine, fp, al);
tools/perf/builtin-script.c
2657
struct machine *machine)
tools/perf/builtin-script.c
2669
ret = dlfilter__filter_event_early(dlfilter, event, sample, evsel, machine, &al, &addr_al);
tools/perf/builtin-script.c
2695
if (!al.thread && machine__resolve(machine, &al, sample) < 0) {
tools/perf/builtin-script.c
2712
ret = dlfilter__filter_event(dlfilter, event, sample, evsel, machine, &al, &addr_al);
tools/perf/builtin-script.c
2730
process_event(scr, sample, &al, &addr_al, machine);
tools/perf/builtin-script.c
2742
struct machine *machine)
tools/perf/builtin-script.c
2778
if (machine__resolve(machine, &al, sample) < 0) {
tools/perf/builtin-script.c
2902
struct machine *machine,
tools/perf/builtin-script.c
2924
thread = machine__findnew_thread(machine, pid, tid);
tools/perf/builtin-script.c
2935
perf_event__fprintf(event, machine, stdout);
tools/perf/builtin-script.c
2943
struct perf_sample *sample, struct machine *machine,
tools/perf/builtin-script.c
2946
return print_event_with_time(tool, event, sample, machine, pid, tid, 0);
tools/perf/builtin-script.c
2952
struct machine *machine)
tools/perf/builtin-script.c
2954
if (perf_event__process_comm(tool, event, sample, machine) < 0)
tools/perf/builtin-script.c
2957
return print_event(tool, event, sample, machine, event->comm.pid,
tools/perf/builtin-script.c
2964
struct machine *machine)
tools/perf/builtin-script.c
2966
if (perf_event__process_namespaces(tool, event, sample, machine) < 0)
tools/perf/builtin-script.c
2969
return print_event(tool, event, sample, machine, event->namespaces.pid,
tools/perf/builtin-script.c
2976
struct machine *machine)
tools/perf/builtin-script.c
2978
if (perf_event__process_cgroup(tool, event, sample, machine) < 0)
tools/perf/builtin-script.c
2981
return print_event(tool, event, sample, machine, sample->pid,
tools/perf/builtin-script.c
2988
struct machine *machine)
tools/perf/builtin-script.c
2990
if (perf_event__process_fork(tool, event, sample, machine) < 0)
tools/perf/builtin-script.c
2993
return print_event_with_time(tool, event, sample, machine,
tools/perf/builtin-script.c
3000
struct machine *machine)
tools/perf/builtin-script.c
3003
if (print_event_with_time(tool, event, sample, machine, event->fork.pid,
tools/perf/builtin-script.c
3007
return perf_event__process_exit(tool, event, sample, machine);
tools/perf/builtin-script.c
3013
struct machine *machine)
tools/perf/builtin-script.c
3015
if (perf_event__process_mmap(tool, event, sample, machine) < 0)
tools/perf/builtin-script.c
3018
return print_event(tool, event, sample, machine, event->mmap.pid,
tools/perf/builtin-script.c
3025
struct machine *machine)
tools/perf/builtin-script.c
3027
if (perf_event__process_mmap2(tool, event, sample, machine) < 0)
tools/perf/builtin-script.c
3030
return print_event(tool, event, sample, machine, event->mmap2.pid,
tools/perf/builtin-script.c
3037
struct machine *machine)
tools/perf/builtin-script.c
3041
if (perf_event__process_switch(tool, event, sample, machine) < 0)
tools/perf/builtin-script.c
3045
scripting_ops->process_switch(event, sample, machine);
tools/perf/builtin-script.c
3050
return print_event(tool, event, sample, machine, sample->pid,
tools/perf/builtin-script.c
3070
struct machine *machine)
tools/perf/builtin-script.c
3072
return print_event(tool, event, sample, machine, sample->pid,
tools/perf/builtin-script.c
3080
struct machine *machine)
tools/perf/builtin-script.c
3083
scripting_ops->process_throttle(event, sample, machine);
tools/perf/builtin-script.c
3101
struct machine *machine)
tools/perf/builtin-script.c
3103
if (machine__process_ksymbol(machine, event, sample) < 0)
tools/perf/builtin-script.c
3106
return print_event(tool, event, sample, machine, sample->pid,
tools/perf/builtin-script.c
3122
struct machine *machine)
tools/perf/builtin-script.c
3124
if (perf_event__process_text_poke(tool, event, sample, machine) < 0)
tools/perf/builtin-script.c
3127
return print_event(tool, event, sample, machine, sample->pid,
tools/perf/builtin-stat.c
248
struct machine *machine __maybe_unused)
tools/perf/builtin-timechart.c
326
struct machine *machine __maybe_unused)
tools/perf/builtin-timechart.c
336
struct machine *machine __maybe_unused)
tools/perf/builtin-timechart.c
346
struct machine *machine __maybe_unused)
tools/perf/builtin-timechart.c
498
struct machine *machine)
tools/perf/builtin-timechart.c
518
if (machine__resolve(machine, &al, sample) < 0) {
tools/perf/builtin-timechart.c
583
struct machine *machine)
tools/perf/builtin-timechart.c
598
char *backtrace = cat_backtrace(event, sample, machine);
tools/perf/builtin-top.c
1152
struct machine *machine;
tools/perf/builtin-top.c
1186
machine = &session->machines.host;
tools/perf/builtin-top.c
1192
machine = &session->machines.host;
tools/perf/builtin-top.c
1196
machine = perf_session__find_machine(session,
tools/perf/builtin-top.c
1209
machine = &session->machines.host;
tools/perf/builtin-top.c
1215
&sample, machine);
tools/perf/builtin-top.c
1222
machine__process_event(machine, event, &sample);
tools/perf/builtin-top.c
191
err ? "[unknown]" : uts.machine,
tools/perf/builtin-top.c
748
struct machine *machine)
tools/perf/builtin-top.c
753
if (!machine && perf_guest) {
tools/perf/builtin-top.c
767
if (!machine) {
tools/perf/builtin-top.c
777
if (machine__resolve(machine, &al, sample) < 0)
tools/perf/builtin-top.c
783
if (!machine->kptr_restrict_warned &&
tools/perf/builtin-top.c
796
machine->kptr_restrict_warned = true;
tools/perf/builtin-top.c
812
if (!machine->kptr_restrict_warned && !top->vmlinux_warned &&
tools/perf/builtin-top.c
832
!symbol__is_idle(al.sym, al.map ? map__dso(al.map) : NULL, machine->env)) {
tools/perf/builtin-trace.c
161
struct machine *host;
tools/perf/builtin-trace.c
1952
static int trace__process_event(struct trace *trace, struct machine *machine,
tools/perf/builtin-trace.c
1961
ret = machine__process_lost_event(machine, event, sample);
tools/perf/builtin-trace.c
1964
ret = machine__process_event(machine, event, sample);
tools/perf/builtin-trace.c
1974
struct machine *machine)
tools/perf/builtin-trace.c
1977
return trace__process_event(trace, machine, event, sample);
tools/perf/builtin-trace.c
1982
struct machine *machine = vmachine;
tools/perf/builtin-trace.c
1984
if (machine->kptr_restrict_warned)
tools/perf/builtin-trace.c
1991
machine->kptr_restrict_warned = true;
tools/perf/builtin-trace.c
244
struct machine *trace__host(const struct trace *trace)
tools/perf/builtin-trace.c
3516
struct machine *machine __maybe_unused)
tools/perf/scripts/python/Perf-Trace-Util/Context.c
94
struct machine *machine = maps__machine(thread__maps(c->al->thread));
tools/perf/scripts/python/Perf-Trace-Util/Context.c
96
perf_sample__fetch_insn(c->sample, c->al->thread, machine);
tools/perf/tests/code-reading.c
317
if (!strncmp(uname_buf.machine, "riscv", 5)) {
tools/perf/tests/code-reading.c
533
static int process_sample_event(struct machine *machine, struct evlist *evlist,
tools/perf/tests/code-reading.c
549
thread = machine__findnew_thread(machine, sample.pid, sample.tid);
tools/perf/tests/code-reading.c
564
static int process_event(struct machine *machine, struct evlist *evlist,
tools/perf/tests/code-reading.c
568
return process_sample_event(machine, evlist, event,
tools/perf/tests/code-reading.c
578
ret = machine__process_event(machine, event, NULL);
tools/perf/tests/code-reading.c
588
static int process_events(struct machine *machine, struct evlist *evlist,
tools/perf/tests/code-reading.c
601
ret = process_event(machine, evlist, event, tested_sections);
tools/perf/tests/code-reading.c
690
struct machine *machine;
tools/perf/tests/code-reading.c
718
machine = machine__new_host(&host_env);
tools/perf/tests/code-reading.c
720
ret = machine__create_kernel_maps(machine);
tools/perf/tests/code-reading.c
731
map = machine__kernel_map(machine);
tools/perf/tests/code-reading.c
756
perf_event__process, machine,
tools/perf/tests/code-reading.c
763
thread = machine__findnew_thread(machine, pid, pid);
tools/perf/tests/code-reading.c
835
ret = process_events(machine, evlist, &tested_sections);
tools/perf/tests/code-reading.c
853
machine__delete(machine);
tools/perf/tests/cpumap.c
12
struct machine;
tools/perf/tests/cpumap.c
17
struct machine *machine __maybe_unused)
tools/perf/tests/cpumap.c
53
struct machine *machine __maybe_unused)
tools/perf/tests/cpumap.c
79
struct machine *machine __maybe_unused)
tools/perf/tests/dlfilter-test.c
200
err = process(&td->tool, event, &sample, td->machine);
tools/perf/tests/dlfilter-test.c
360
td->machine = machine__new_host(&host_env);
tools/perf/tests/dlfilter-test.c
405
machine__delete(td->machine);
tools/perf/tests/dlfilter-test.c
43
struct machine *machine;
tools/perf/tests/dlfilter-test.c
66
struct machine *machine __maybe_unused)
tools/perf/tests/dso-data.c
107
static int dso__data_fd(struct dso *dso, struct machine *machine)
tools/perf/tests/dso-data.c
111
if (dso__data_get_fd(dso, machine, &fd))
tools/perf/tests/dso-data.c
130
struct machine machine;
tools/perf/tests/dso-data.c
137
memset(&machine, 0, sizeof(machine));
tools/perf/tests/dso-data.c
138
dsos__init(&machine.dsos);
tools/perf/tests/dso-data.c
141
TEST_ASSERT_VAL("Failed to add dso", !dsos__add(&machine.dsos, dso));
tools/perf/tests/dso-data.c
143
dso__data_fd(dso, &machine) >= 0);
tools/perf/tests/dso-data.c
152
size = dso__data_read_offset(dso, &machine, data->offset,
tools/perf/tests/dso-data.c
171
size = dso__data_read_offset(dso, &machine, 10,
tools/perf/tests/dso-data.c
186
dsos__delete(&machine.dsos);
tools/perf/tests/dso-data.c
251
struct machine machine;
tools/perf/tests/dso-data.c
258
memset(&machine, 0, sizeof(machine));
tools/perf/tests/dso-data.c
267
!dsos__create(dso_cnt, TEST_FILE_SIZE, &machine.dsos));
tools/perf/tests/dso-data.c
270
struct dso *dso = machine.dsos.dsos[i];
tools/perf/tests/dso-data.c
276
fd = dso__data_fd(dso, &machine);
tools/perf/tests/dso-data.c
284
n = dso__data_read_offset(dso, &machine, 0, buf, BUFSIZE);
tools/perf/tests/dso-data.c
290
TEST_ASSERT_VAL("dsos[0] is not open", dso__data(machine.dsos.dsos[0])->fd != -1);
tools/perf/tests/dso-data.c
293
fd = dso__data_fd(machine.dsos.dsos[i], &machine);
tools/perf/tests/dso-data.c
297
TEST_ASSERT_VAL("failed to close dsos[0]", dso__data(machine.dsos.dsos[0])->fd == -1);
tools/perf/tests/dso-data.c
300
dsos__delete(&machine.dsos);
tools/perf/tests/dso-data.c
321
struct machine machine;
tools/perf/tests/dso-data.c
325
#define dso_0 (machine.dsos.dsos[0])
tools/perf/tests/dso-data.c
326
#define dso_1 (machine.dsos.dsos[1])
tools/perf/tests/dso-data.c
327
#define dso_2 (machine.dsos.dsos[2])
tools/perf/tests/dso-data.c
332
memset(&machine, 0, sizeof(machine));
tools/perf/tests/dso-data.c
348
!dsos__create(3, TEST_FILE_SIZE, &machine.dsos));
tools/perf/tests/dso-data.c
351
fd = dso__data_fd(dso_0, &machine);
tools/perf/tests/dso-data.c
355
fd = dso__data_fd(dso_1, &machine);
tools/perf/tests/dso-data.c
366
fd = dso__data_fd(dso_2, &machine);
tools/perf/tests/dso-data.c
376
fd = dso__data_fd(dso_0, &machine);
tools/perf/tests/dso-data.c
387
dsos__delete(&machine.dsos);
tools/perf/tests/dwarf-unwind.c
185
struct machine *machine;
tools/perf/tests/dwarf-unwind.c
194
machine = machine__new_live(&host_env, /*kernel_maps=*/true, pid);
tools/perf/tests/dwarf-unwind.c
195
if (!machine) {
tools/perf/tests/dwarf-unwind.c
200
if (machine__create_kernel_maps(machine)) {
tools/perf/tests/dwarf-unwind.c
206
machine__fprintf(machine, stderr);
tools/perf/tests/dwarf-unwind.c
208
thread = machine__find_thread(machine, pid, pid);
tools/perf/tests/dwarf-unwind.c
218
machine__delete(machine);
tools/perf/tests/event_update.c
19
struct machine *machine __maybe_unused)
tools/perf/tests/event_update.c
32
struct machine *machine __maybe_unused)
tools/perf/tests/event_update.c
50
struct machine *machine __maybe_unused)
tools/perf/tests/event_update.c
64
struct machine *machine __maybe_unused)
tools/perf/tests/hists_common.c
124
machine__process_mmap_event(machine, &fake_mmap_event, &sample);
tools/perf/tests/hists_common.c
131
dso = machine__findnew_dso(machine, fake_symbols[i].dso_name);
tools/perf/tests/hists_common.c
155
return machine;
tools/perf/tests/hists_common.c
159
machine__delete_threads(machine);
tools/perf/tests/hists_common.c
85
struct machine *setup_fake_machine(struct machines *machines)
tools/perf/tests/hists_common.c
87
struct machine *machine = machines__find(machines, HOST_KERNEL_ID);
tools/perf/tests/hists_common.c
90
if (machine == NULL) {
tools/perf/tests/hists_common.c
98
thread = machine__findnew_thread(machine, fake_threads[i].pid,
tools/perf/tests/hists_common.h
5
struct machine;
tools/perf/tests/hists_common.h
71
struct machine *setup_fake_machine(struct machines *machines);
tools/perf/tests/hists_cumulate.c
105
if (machine__resolve(machine, &al, &sample) < 0)
tools/perf/tests/hists_cumulate.c
163
typedef int (*test_fn_t)(struct evsel *, struct machine *);
tools/perf/tests/hists_cumulate.c
262
static int test1(struct evsel *evsel, struct machine *machine)
tools/perf/tests/hists_cumulate.c
297
setup_sorting(/*evlist=*/NULL, machine->env);
tools/perf/tests/hists_cumulate.c
300
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_cumulate.c
313
static int test2(struct evsel *evsel, struct machine *machine)
tools/perf/tests/hists_cumulate.c
444
setup_sorting(/*evlist=*/NULL, machine->env);
tools/perf/tests/hists_cumulate.c
447
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_cumulate.c
461
static int test3(struct evsel *evsel, struct machine *machine)
tools/perf/tests/hists_cumulate.c
502
setup_sorting(/*evlist=*/NULL, machine->env);
tools/perf/tests/hists_cumulate.c
505
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_cumulate.c
518
static int test4(struct evsel *evsel, struct machine *machine)
tools/perf/tests/hists_cumulate.c
686
setup_sorting(/*evlist=*/NULL, machine->env);
tools/perf/tests/hists_cumulate.c
691
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_cumulate.c
708
struct machine *machine;
tools/perf/tests/hists_cumulate.c
730
machine = setup_fake_machine(&machines);
tools/perf/tests/hists_cumulate.c
731
if (!machine)
tools/perf/tests/hists_cumulate.c
735
machine__fprintf(machine, stderr);
tools/perf/tests/hists_cumulate.c
740
err = testcases[i](evsel, machine);
tools/perf/tests/hists_cumulate.c
80
static int add_hist_entries(struct hists *hists, struct machine *machine)
tools/perf/tests/hists_filter.c
120
struct machine *machine;
tools/perf/tests/hists_filter.c
138
machine = setup_fake_machine(&machines);
tools/perf/tests/hists_filter.c
139
if (!machine)
tools/perf/tests/hists_filter.c
143
machine__fprintf(machine, stderr);
tools/perf/tests/hists_filter.c
146
if (setup_sorting(evlist, machine->env) < 0)
tools/perf/tests/hists_filter.c
150
err = add_hist_entries(evlist, machine);
tools/perf/tests/hists_filter.c
50
struct machine *machine)
tools/perf/tests/hists_filter.c
83
if (machine__resolve(machine, &al, &sample) < 0)
tools/perf/tests/hists_link.c
109
if (machine__resolve(machine, &al, &sample) < 0)
tools/perf/tests/hists_link.c
291
struct machine *machine = NULL;
tools/perf/tests/hists_link.c
310
machine = setup_fake_machine(&machines);
tools/perf/tests/hists_link.c
311
if (!machine)
tools/perf/tests/hists_link.c
315
machine__fprintf(machine, stderr);
tools/perf/tests/hists_link.c
318
if (setup_sorting(evlist, machine->env) < 0)
tools/perf/tests/hists_link.c
322
err = add_hist_entries(evlist, machine);
tools/perf/tests/hists_link.c
66
static int add_hist_entries(struct evlist *evlist, struct machine *machine)
tools/perf/tests/hists_link.c
89
if (machine__resolve(machine, &al, &sample) < 0)
tools/perf/tests/hists_output.c
128
typedef int (*test_fn_t)(struct evsel *, struct machine *);
tools/perf/tests/hists_output.c
137
static int test1(struct evsel *evsel, struct machine *machine)
tools/perf/tests/hists_output.c
148
setup_sorting(/*evlist=*/NULL, machine->env);
tools/perf/tests/hists_output.c
165
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_output.c
239
static int test2(struct evsel *evsel, struct machine *machine)
tools/perf/tests/hists_output.c
250
setup_sorting(/*evlist=*/NULL, machine->env);
tools/perf/tests/hists_output.c
265
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_output.c
295
static int test3(struct evsel *evsel, struct machine *machine)
tools/perf/tests/hists_output.c
306
setup_sorting(/*evlist=*/NULL, machine->env);
tools/perf/tests/hists_output.c
319
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_output.c
369
static int test4(struct evsel *evsel, struct machine *machine)
tools/perf/tests/hists_output.c
380
setup_sorting(/*evlist=*/NULL, machine->env);
tools/perf/tests/hists_output.c
397
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_output.c
471
static int test5(struct evsel *evsel, struct machine *machine)
tools/perf/tests/hists_output.c
482
setup_sorting(/*evlist=*/NULL, machine->env);
tools/perf/tests/hists_output.c
50
static int add_hist_entries(struct hists *hists, struct machine *machine)
tools/perf/tests/hists_output.c
500
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_output.c
594
struct machine *machine;
tools/perf/tests/hists_output.c
617
machine = setup_fake_machine(&machines);
tools/perf/tests/hists_output.c
618
if (!machine)
tools/perf/tests/hists_output.c
622
machine__fprintf(machine, stderr);
tools/perf/tests/hists_output.c
627
err = testcases[i](evsel, machine);
tools/perf/tests/hists_output.c
71
if (machine__resolve(machine, &al, &sample) < 0)
tools/perf/tests/kallsyms-split.c
100
struct machine m = { 0 };
tools/perf/tests/mmap-thread-lookup.c
133
typedef int (*synth_cb)(struct machine *machine);
tools/perf/tests/mmap-thread-lookup.c
135
static int synth_all(struct machine *machine)
tools/perf/tests/mmap-thread-lookup.c
139
machine, 1, 0, 1);
tools/perf/tests/mmap-thread-lookup.c
142
static int synth_process(struct machine *machine)
tools/perf/tests/mmap-thread-lookup.c
151
machine, 1, 0);
tools/perf/tests/mmap-thread-lookup.c
160
struct machine *machine;
tools/perf/tests/mmap-thread-lookup.c
173
machine = machine__new_host(&host_env);
tools/perf/tests/mmap-thread-lookup.c
177
err = synth(machine);
tools/perf/tests/mmap-thread-lookup.c
194
thread = machine__findnew_thread(machine, getpid(), td->tid);
tools/perf/tests/mmap-thread-lookup.c
214
machine__delete(machine);
tools/perf/tests/stat.c
101
struct machine *machine __maybe_unused)
tools/perf/tests/stat.c
27
struct machine *machine __maybe_unused)
tools/perf/tests/stat.c
70
struct machine *machine __maybe_unused)
tools/perf/tests/symbols.c
105
*map_p = map__new(ti->machine, 0x100000, 0xffffffff, 0, &dso_id_empty,
tools/perf/tests/symbols.c
150
static int subdivided_dso_cb(struct dso *dso, struct machine *machine __maybe_unused, void *d)
tools/perf/tests/symbols.c
161
static int process_subdivided_dso(struct machine *machine, struct dso *dso)
tools/perf/tests/symbols.c
165
ret = machine__for_each_dso(machine, subdivided_dso_cb, dso);
tools/perf/tests/symbols.c
18
struct machine *machine;
tools/perf/tests/symbols.c
200
ret = process_subdivided_dso(ti->machine, dso);
tools/perf/tests/symbols.c
25
ti->machine = machine__new_host(&ti->host_env);
tools/perf/tests/symbols.c
26
if (!ti->machine) {
tools/perf/tests/symbols.c
33
ti->thread = machine__findnew_thread(ti->machine, 100, 100);
tools/perf/tests/symbols.c
46
machine__delete(ti->machine);
tools/perf/tests/symbols.c
65
static struct map *find_module_map(struct machine *machine, struct dso *dso)
tools/perf/tests/symbols.c
69
machine__for_each_kernel_map(machine, find_map_cb, &data);
tools/perf/tests/symbols.c
84
struct dso *dso = machine__findnew_dso(ti->machine, filename);
tools/perf/tests/symbols.c
91
*map_p = find_module_map(ti->machine, dso);
tools/perf/tests/thread-map.c
17
struct machine;
tools/perf/tests/thread-map.c
65
struct machine *machine __maybe_unused)
tools/perf/tests/thread-maps-share.c
10
struct machine *machine;
tools/perf/tests/thread-maps-share.c
31
machine = &machines.host;
tools/perf/tests/thread-maps-share.c
34
leader = machine__findnew_thread(machine, 0, 0);
tools/perf/tests/thread-maps-share.c
35
t1 = machine__findnew_thread(machine, 0, 1);
tools/perf/tests/thread-maps-share.c
36
t2 = machine__findnew_thread(machine, 0, 2);
tools/perf/tests/thread-maps-share.c
37
t3 = machine__findnew_thread(machine, 0, 3);
tools/perf/tests/thread-maps-share.c
40
other = machine__findnew_thread(machine, 4, 5);
tools/perf/tests/thread-maps-share.c
58
other_leader = machine__find_thread(machine, 4, 4);
tools/perf/tests/thread-maps-share.c
66
machine__remove_thread(machine, leader);
tools/perf/tests/thread-maps-share.c
67
machine__remove_thread(machine, t1);
tools/perf/tests/thread-maps-share.c
68
machine__remove_thread(machine, t2);
tools/perf/tests/thread-maps-share.c
69
machine__remove_thread(machine, t3);
tools/perf/tests/thread-maps-share.c
70
machine__remove_thread(machine, other);
tools/perf/tests/thread-maps-share.c
71
machine__remove_thread(machine, other_leader);
tools/perf/tests/vmlinux-kallsyms.c
114
struct machine kallsyms;
tools/perf/tests/vmlinux-kallsyms.c
195
struct machine vmlinux = { 0 };
tools/perf/trace/beauty/beauty.h
39
struct machine *trace__host(const struct trace *trace);
tools/perf/util/annotate.c
988
struct machine *machine;
tools/perf/util/annotate.c
997
machine = maps__machine(thread__maps(thread));
tools/perf/util/annotate.c
998
e_machine = thread__e_machine(thread, machine, &e_flags);
tools/perf/util/annotate.c
999
arch = arch__find(e_machine, e_flags, machine->env ? machine->env->cpuid : NULL);
tools/perf/util/arm-spe.c
1185
spe->kernel_start = machine__kernel_start(spe->machine);
tools/perf/util/arm-spe.c
1438
return machine__set_current_tid(spe->machine, cpu, pid, tid);
tools/perf/util/arm-spe.c
1978
spe->machine = &session->machines.host; /* No kvm support */
tools/perf/util/arm-spe.c
294
tid = machine__get_current_tid(spe->machine, speq->cpu);
tools/perf/util/arm-spe.c
302
speq->thread = machine__find_thread(spe->machine, -1,
tools/perf/util/arm-spe.c
318
int err = machine__set_current_tid(spe->machine, speq->cpu, -1, tid);
tools/perf/util/arm-spe.c
66
struct machine *machine;
tools/perf/util/aslr.c
100
return (size_t)key->machine ^ (size_t)dso_ptr ^ key->invariant ^ key->pid;
tools/perf/util/aslr.c
108
return key1->machine == key2->machine &&
tools/perf/util/aslr.c
1139
ret = delegate->sample(delegate, new_event, &new_sample, machine);
tools/perf/util/aslr.c
115
struct machine *machine;
tools/perf/util/aslr.c
123
return (size_t)key->machine ^ key->pid;
tools/perf/util/aslr.c
131
return key1->machine == key2->machine && key1->pid == key2->pid;
tools/perf/util/aslr.c
1335
struct machine *machine = rb_entry(nd, struct machine, rb_node);
tools/perf/util/aslr.c
1338
machine__delete(machine);
tools/perf/util/aslr.c
179
key.machine = maps__machine(thread__maps(aslr_thread));
tools/perf/util/aslr.c
205
static int aslr_tool__preload_kernel_maps(struct machine *machine)
tools/perf/util/aslr.c
207
struct aslr_machine_priv *mpriv = machine->priv;
tools/perf/util/aslr.c
213
machine->priv = mpriv;
tools/perf/util/aslr.c
217
struct maps *kmaps = machine__kernel_maps(machine);
tools/perf/util/aslr.c
224
machine->pid);
tools/perf/util/aslr.c
233
static void aslr_tool__free_machine_priv(struct machine *machine)
tools/perf/util/aslr.c
235
free(machine->priv);
tools/perf/util/aslr.c
236
machine->priv = NULL;
tools/perf/util/aslr.c
245
struct machine *machine = rb_entry(nd, struct machine, rb_node);
tools/perf/util/aslr.c
247
aslr_tool__free_machine_priv(machine);
tools/perf/util/aslr.c
252
struct machine *session_machine,
tools/perf/util/aslr.c
283
remap_key.machine = maps__machine(thread__maps(aslr_thread));
tools/perf/util/aslr.c
302
top_addr_key.machine = remap_key.machine;
tools/perf/util/aslr.c
37
struct machine *machine;
tools/perf/util/aslr.c
437
struct machine *machine)
tools/perf/util/aslr.c
445
struct machine *aslr_machine;
tools/perf/util/aslr.c
454
aslr_machine = machines__findnew(&aslr->machines, machine->pid);
tools/perf/util/aslr.c
470
new_event->mmap.start = aslr_tool__findnew_mapping(aslr, machine, thread, cpumode,
tools/perf/util/aslr.c
485
err = delegate->mmap(delegate, new_event, sample, machine);
tools/perf/util/aslr.c
493
struct machine *machine)
tools/perf/util/aslr.c
501
struct machine *aslr_machine;
tools/perf/util/aslr.c
510
aslr_machine = machines__findnew(&aslr->machines, machine->pid);
tools/perf/util/aslr.c
526
new_event->mmap2.start = aslr_tool__findnew_mapping(aslr, machine, thread, cpumode,
tools/perf/util/aslr.c
541
err = delegate->mmap2(delegate, new_event, sample, machine);
tools/perf/util/aslr.c
549
struct machine *machine)
tools/perf/util/aslr.c
554
struct machine *aslr_machine;
tools/perf/util/aslr.c
561
aslr_machine = machines__findnew(&aslr->machines, machine->pid);
tools/perf/util/aslr.c
572
return delegate->comm(delegate, event, sample, machine);
tools/perf/util/aslr.c
578
struct machine *machine)
tools/perf/util/aslr.c
583
struct machine *aslr_machine;
tools/perf/util/aslr.c
590
aslr_machine = machines__findnew(&aslr->machines, machine->pid);
tools/perf/util/aslr.c
601
return delegate->fork(delegate, event, sample, machine);
tools/perf/util/aslr.c
607
struct machine *machine)
tools/perf/util/aslr.c
612
struct machine *aslr_machine;
tools/perf/util/aslr.c
619
aslr_machine = machines__findnew(&aslr->machines, machine->pid);
tools/perf/util/aslr.c
630
return delegate->exit(delegate, event, sample, machine);
tools/perf/util/aslr.c
636
struct machine *machine __maybe_unused)
tools/perf/util/aslr.c
645
struct machine *machine)
tools/perf/util/aslr.c
652
struct machine *aslr_machine;
tools/perf/util/aslr.c
661
aslr_machine = machines__findnew(&aslr->machines, machine->pid);
tools/perf/util/aslr.c
676
new_event->ksymbol.addr = aslr_tool__findnew_mapping(aslr, machine, thread,
tools/perf/util/aslr.c
684
new_event->ksymbol.addr = aslr_tool__findnew_mapping(aslr, machine, thread,
tools/perf/util/aslr.c
695
err = delegate->ksymbol(delegate, new_event, sample, machine);
tools/perf/util/aslr.c
703
struct machine *machine)
tools/perf/util/aslr.c
713
struct machine *aslr_machine;
tools/perf/util/aslr.c
733
return delegate->sample(delegate, event, sample, machine);
tools/perf/util/aslr.c
761
aslr_machine = machines__findnew(&aslr->machines, machine->pid);
tools/perf/util/bpf-event.c
43
static int machine__process_bpf_event_load(struct machine *machine,
tools/perf/util/bpf-event.c
437
struct machine *machine)
tools/perf/util/bpf-event.c
443
event = zalloc(event_size + machine->id_hdr_size);
tools/perf/util/bpf-event.c
447
memset((void *)event + event->header.size, 0, machine->id_hdr_size);
tools/perf/util/bpf-event.c
448
event->header.size += machine->id_hdr_size;
tools/perf/util/bpf-event.c
452
err = perf_tool__process_synth_event(tool, event, machine,
tools/perf/util/bpf-event.c
48
struct perf_env *env = machine->env;
tools/perf/util/bpf-event.c
483
struct machine *machine __maybe_unused)
tools/perf/util/bpf-event.c
497
struct machine *machine;
tools/perf/util/bpf-event.c
510
ctx->process, ctx->machine);
tools/perf/util/bpf-event.c
530
.machine = &session->machines.host,
tools/perf/util/bpf-event.c
549
struct machine *machine,
tools/perf/util/bpf-event.c
648
memset((void *)event + event->header.size, 0, machine->id_hdr_size);
tools/perf/util/bpf-event.c
649
event->header.size += machine->id_hdr_size;
tools/perf/util/bpf-event.c
651
machine, process);
tools/perf/util/bpf-event.c
666
memset((void *)event + event->header.size, 0, machine->id_hdr_size);
tools/perf/util/bpf-event.c
667
event->header.size += machine->id_hdr_size;
tools/perf/util/bpf-event.c
69
struct map *map = maps__find(machine__kernel_maps(machine), addr);
tools/perf/util/bpf-event.c
695
machine, process);
tools/perf/util/bpf-event.c
702
machine);
tools/perf/util/bpf-event.c
716
struct machine *machine;
tools/perf/util/bpf-event.c
723
struct machine *machine = data->machine;
tools/perf/util/bpf-event.c
743
memset((void *) event + event->header.size, 0, machine->id_hdr_size);
tools/perf/util/bpf-event.c
744
event->header.size += machine->id_hdr_size;
tools/perf/util/bpf-event.c
746
return perf_tool__process_synth_event(data->tool, event, machine,
tools/perf/util/bpf-event.c
785
struct machine *machine,
tools/perf/util/bpf-event.c
798
event = malloc(sizeof(event->bpf) + KSYM_NAME_LEN + machine->id_hdr_size);
tools/perf/util/bpf-event.c
824
machine, fd,
tools/perf/util/bpf-event.c
84
int machine__process_bpf(struct machine *machine, union perf_event *event,
tools/perf/util/bpf-event.c
842
.machine = machine,
tools/perf/util/bpf-event.c
92
return machine__process_bpf_event_load(machine, event, sample);
tools/perf/util/bpf-event.h
11
struct machine;
tools/perf/util/bpf-event.h
40
int machine__process_bpf(struct machine *machine, union perf_event *event,
tools/perf/util/bpf-event.h
48
static inline int machine__process_bpf(struct machine *machine __maybe_unused,
tools/perf/util/bpf_lock_contention.c
142
sym = machine__find_kernel_symbol_by_name(con->machine,
tools/perf/util/bpf_lock_contention.c
156
sym = machine__find_kernel_symbol_by_name(con->machine,
tools/perf/util/bpf_lock_contention.c
192
map__load(machine__kernel_map(con->machine));
tools/perf/util/bpf_lock_contention.c
253
sym = machine__find_kernel_symbol_by_name(con->machine,
tools/perf/util/bpf_lock_contention.c
282
sym = machine__find_kernel_symbol_by_name(con->machine,
tools/perf/util/bpf_lock_contention.c
577
struct machine *machine = con->machine;
tools/perf/util/bpf_lock_contention.c
586
struct thread *t = machine__findnew_thread(machine, /*pid=*/-1, pid);
tools/perf/util/bpf_lock_contention.c
609
sym = machine__find_kernel_symbol(machine, key->lock_addr_or_cgroup, &kmap);
tools/perf/util/bpf_lock_contention.c
645
while (machine__is_lock_function(machine, stack_trace[idx]) &&
tools/perf/util/bpf_lock_contention.c
650
sym = machine__find_kernel_symbol(machine, addr, &kmap);
tools/perf/util/bpf_lock_contention.c
731
struct machine *machine = con->machine;
tools/perf/util/bpf_lock_contention.c
750
struct thread *idle = machine__findnew_thread(machine,
tools/perf/util/bpf_lock_contention.c
777
if (!match_callstack_filter(machine, stack_trace, con->max_stack)) {
tools/perf/util/build-id.c
317
struct machine *machine;
tools/perf/util/build-id.c
339
name = args->machine->mmap_name;
tools/perf/util/build-id.c
347
return write_buildid(name, name_len, &dso__id(dso)->build_id, args->machine->pid,
tools/perf/util/build-id.c
351
static int machine__write_buildid_table(struct machine *machine, struct feat_fd *fd)
tools/perf/util/build-id.c
354
.machine = machine,
tools/perf/util/build-id.c
360
if (!machine__is_host(machine)) {
tools/perf/util/build-id.c
365
return dsos__for_each_dso(&machine->dsos, machine__write_buildid_table_cb, &args);
tools/perf/util/build-id.c
379
struct machine *pos = rb_entry(nd, struct machine, rb_node);
tools/perf/util/build-id.c
59
struct machine *machine)
tools/perf/util/build-id.c
62
struct thread *thread = machine__findnew_thread(machine, sample->pid,
tools/perf/util/build-id.c
874
static int dso__cache_build_id(struct dso *dso, struct machine *machine,
tools/perf/util/build-id.c
890
name = machine->mmap_name;
tools/perf/util/build-id.c
893
if (!machine__is_host(machine)) {
tools/perf/util/build-id.c
894
if (*machine->root_dir) {
tools/perf/util/build-id.c
895
root_dir = machine->root_dir;
tools/perf/util/build-id.c
927
struct machine *pos = rb_entry(nd, struct machine, rb_node);
tools/perf/util/build-id.c
951
static bool machine__read_build_ids(struct machine *machine, bool with_hits)
tools/perf/util/build-id.c
953
return dsos__read_build_ids(&machine->dsos, with_hits);
tools/perf/util/build-id.c
963
struct machine *pos = rb_entry(nd, struct machine, rb_node);
tools/perf/util/build-id.h
37
struct perf_sample *sample, struct machine *machine);
tools/perf/util/callchain.c
1198
struct machine *machine = NULL;
tools/perf/util/callchain.c
1201
machine = maps__machine(thread__maps(node->ms.thread));
tools/perf/util/callchain.c
1215
if (maps__equal(thread__maps(al->thread), machine__kernel_maps(machine))) {
tools/perf/util/callchain.c
1216
if (machine__is_host(machine)) {
tools/perf/util/callchain.c
1224
if (machine__is_host(machine)) {
tools/perf/util/capstone.c
252
ssize_t capstone__fprintf_insn_asm(struct machine *machine, struct thread *thread, u8 cpumode,
tools/perf/util/capstone.c
261
uint16_t e_machine = thread__e_machine_endian(thread, machine,
tools/perf/util/capstone.h
13
struct machine;
tools/perf/util/capstone.h
18
ssize_t capstone__fprintf_insn_asm(struct machine *machine, struct thread *thread, u8 cpumode,
tools/perf/util/capstone.h
27
static inline ssize_t capstone__fprintf_insn_asm(struct machine *machine __maybe_unused,
tools/perf/util/cputopo.c
230
if (strncmp(uts.machine, "x86_64", 6) &&
tools/perf/util/cputopo.c
231
strncmp(uts.machine, "s390x", 5))
tools/perf/util/cs-etm.c
1045
static struct machine *cs_etm__get_machine(struct cs_etm_queue *etmq,
tools/perf/util/cs-etm.c
1081
struct machine *machine = cs_etm__get_machine(etmq, el);
tools/perf/util/cs-etm.c
1083
if (address >= machine__kernel_start(machine)) {
tools/perf/util/cs-etm.c
1084
if (machine__is_host(machine))
tools/perf/util/cs-etm.c
1089
if (machine__is_host(machine))
tools/perf/util/cs-etm.c
1537
struct machine *machine = cs_etm__get_machine(etmq, el);
tools/perf/util/cs-etm.c
1539
if (!machine || !*thread)
tools/perf/util/cs-etm.c
1544
*thread = machine__find_thread(machine, -1, tid);
tools/perf/util/cs-etm.c
1549
*thread = machine__idle_thread(machine);
tools/perf/util/data-convert-bt.c
805
struct machine *machine __maybe_unused)
tools/perf/util/data-convert-bt.c
889
struct machine *machine) \
tools/perf/util/data-convert-bt.c
918
return perf_event__process_##_name(tool, _event, sample, machine);\
tools/perf/util/data-convert-json.c
163
struct machine *machine)
tools/perf/util/data-convert-json.c
172
if (machine__resolve(machine, &al, sample) < 0) {
tools/perf/util/db-export.c
146
struct machine *machine)
tools/perf/util/db-export.c
154
return dbe->export_dso(dbe, dso, machine);
tools/perf/util/db-export.c
209
struct machine *machine,
tools/perf/util/db-export.c
213
u64 kernel_start = machine__kernel_start(machine);
tools/perf/util/db-export.c
294
struct machine *machine, struct comm **comm_ptr)
tools/perf/util/db-export.c
305
err = db_export__thread(dbe, main_thread, machine, main_thread);
tools/perf/util/db-export.c
312
comm = machine__thread_exec_comm(machine, main_thread);
tools/perf/util/db-export.c
328
err = db_export__thread(dbe, thread, machine, main_thread);
tools/perf/util/db-export.c
358
struct machine *machine = NULL;
tools/perf/util/db-export.c
362
machine = maps__machine(thread__maps(thread));
tools/perf/util/db-export.c
363
if (!machine)
tools/perf/util/db-export.c
370
err = db_export__machine(dbe, machine);
tools/perf/util/db-export.c
374
main_thread = thread__main_thread(machine, thread);
tools/perf/util/db-export.c
376
err = db_export__threads(dbe, thread, main_thread, machine, &comm);
tools/perf/util/db-export.c
390
struct call_path *cp = call_path_from_sample(dbe, machine,
tools/perf/util/db-export.c
48
int db_export__machine(struct db_export *dbe, struct machine *machine)
tools/perf/util/db-export.c
50
if (machine->db_id)
tools/perf/util/db-export.c
528
static int db_export__pid_tid(struct db_export *dbe, struct machine *machine,
tools/perf/util/db-export.c
53
machine->db_id = ++dbe->machine_last_db_id;
tools/perf/util/db-export.c
532
struct thread *thread = machine__find_thread(machine, pid, tid);
tools/perf/util/db-export.c
541
main_thread = thread__main_thread(machine, thread);
tools/perf/util/db-export.c
543
err = db_export__threads(dbe, thread, main_thread, machine, comm_ptr);
tools/perf/util/db-export.c
555
struct perf_sample *sample, struct machine *machine)
tools/perf/util/db-export.c
56
return dbe->export_machine(dbe, machine);
tools/perf/util/db-export.c
570
err = db_export__machine(dbe, machine);
tools/perf/util/db-export.c
574
err = db_export__pid_tid(dbe, machine, sample->pid, sample->tid,
tools/perf/util/db-export.c
583
err = db_export__pid_tid(dbe, machine, pid, tid, &th_b_id,
tools/perf/util/db-export.c
611
return dbe->export_context_switch(dbe, db_id, machine, sample,
tools/perf/util/db-export.c
62
struct machine *machine, struct thread *main_thread)
tools/perf/util/db-export.c
76
machine);
tools/perf/util/db-export.h
107
struct perf_sample *sample, struct machine *machine);
tools/perf/util/db-export.h
14
struct machine;
tools/perf/util/db-export.h
42
int (*export_machine)(struct db_export *dbe, struct machine *machine);
tools/perf/util/db-export.h
44
u64 main_thread_db_id, struct machine *machine);
tools/perf/util/db-export.h
50
struct machine *machine);
tools/perf/util/db-export.h
60
struct machine *machine,
tools/perf/util/db-export.h
82
int db_export__machine(struct db_export *dbe, struct machine *machine);
tools/perf/util/db-export.h
84
struct machine *machine, struct thread *main_thread);
tools/perf/util/db-export.h
92
struct machine *machine);
tools/perf/util/debug.c
313
struct machine *machine;
tools/perf/util/debug.c
318
machine = machine__new_live(&host_env, /*kernel_maps=*/false, pid);
tools/perf/util/debug.c
320
if (machine)
tools/perf/util/debug.c
321
thread = machine__find_thread(machine, pid, pid);
tools/perf/util/debug.c
324
if (!machine || !thread) {
tools/perf/util/debug.c
330
machine__delete(machine);
tools/perf/util/debug.c
357
machine__delete(machine);
tools/perf/util/dlfilter.c
108
d_al->is_kernel_ip = machine__kernel_ip(d->machine, d->sample->ip);
tools/perf/util/dlfilter.c
138
d_addr_al->is_kernel_ip = machine__kernel_ip(d->machine, d->sample->addr);
tools/perf/util/dlfilter.c
184
d_al.is_kernel_ip = machine__kernel_ip(d->machine, address);
tools/perf/util/dlfilter.c
230
if (!al->thread && machine__resolve(d->machine, al, d->sample) < 0)
tools/perf/util/dlfilter.c
234
struct machine *machine = maps__machine(thread__maps(al->thread));
tools/perf/util/dlfilter.c
236
if (machine)
tools/perf/util/dlfilter.c
237
perf_sample__fetch_insn(d->sample, al->thread, machine);
tools/perf/util/dlfilter.c
287
static __s32 code_read(__u64 ip, struct map *map, struct machine *machine, void *buf, __u32 len)
tools/perf/util/dlfilter.c
294
return dso__data_read_offset(map__dso(map), machine, offset, buf, len);
tools/perf/util/dlfilter.c
312
machine__kernel_ip(d->machine, ip) == machine__kernel_ip(d->machine, d->sample->ip))
tools/perf/util/dlfilter.c
313
return code_read(ip, al->map, d->machine, buf, len);
tools/perf/util/dlfilter.c
318
ret = a.map ? code_read(ip, a.map, d->machine, buf, len) : -1;
tools/perf/util/dlfilter.c
494
struct machine *machine,
tools/perf/util/dlfilter.c
507
d->machine = machine;
tools/perf/util/dlfilter.c
77
if (!al->thread && machine__resolve(d->machine, al, d->sample) < 0)
tools/perf/util/dlfilter.h
14
struct machine;
tools/perf/util/dlfilter.h
34
struct machine *machine;
tools/perf/util/dlfilter.h
62
struct machine *machine,
tools/perf/util/dlfilter.h
73
struct machine *machine,
tools/perf/util/dlfilter.h
79
return dlfilter__do_filter_event(d, event, sample, evsel, machine, al, addr_al, false);
tools/perf/util/dlfilter.h
86
struct machine *machine,
tools/perf/util/dlfilter.h
92
return dlfilter__do_filter_event(d, event, sample, evsel, machine, al, addr_al, true);
tools/perf/util/dso.c
1012
static ssize_t file_read(struct dso *dso, struct machine *machine,
tools/perf/util/dso.c
1023
try_to_open_dso(dso, machine);
tools/perf/util/dso.c
1038
struct machine *machine,
tools/perf/util/dso.c
1058
*ret = file_read(dso, machine, cache_offset, cache->data);
tools/perf/util/dso.c
1079
struct machine *machine,
tools/perf/util/dso.c
1085
return cache ? cache : dso_cache__populate(dso, machine, offset, ret);
tools/perf/util/dso.c
1088
static ssize_t dso_cache_io(struct dso *dso, struct machine *machine,
tools/perf/util/dso.c
1094
cache = dso_cache__find(dso, machine, offset, &ret);
tools/perf/util/dso.c
1106
static ssize_t cached_io(struct dso *dso, struct machine *machine,
tools/perf/util/dso.c
1115
ret = dso_cache_io(dso, machine, offset, p, size, out);
tools/perf/util/dso.c
1135
static int file_size(struct dso *dso, struct machine *machine)
tools/perf/util/dso.c
1146
try_to_open_dso(dso, machine);
tools/perf/util/dso.c
1167
int dso__data_file_size(struct dso *dso, struct machine *machine)
tools/perf/util/dso.c
1178
return file_size(dso, machine);
tools/perf/util/dso.c
1188
off_t dso__data_size(struct dso *dso, struct machine *machine)
tools/perf/util/dso.c
1190
if (dso__data_file_size(dso, machine))
tools/perf/util/dso.c
1197
static ssize_t data_read_write_offset(struct dso *dso, struct machine *machine,
tools/perf/util/dso.c
1201
if (dso__data_file_size(dso, machine))
tools/perf/util/dso.c
1211
return cached_io(dso, machine, offset, data, size, out);
tools/perf/util/dso.c
1225
ssize_t dso__data_read_offset(struct dso *dso, struct machine *machine,
tools/perf/util/dso.c
1231
return data_read_write_offset(dso, machine, offset, data, size, true);
tools/perf/util/dso.c
1323
uint16_t dso__e_machine_endian(struct dso *dso, struct machine *machine, uint32_t *e_flags,
tools/perf/util/dso.c
1346
machine && machine->env ? perf_env__arch(machine->env) : NULL);
tools/perf/util/dso.c
1348
return perf_env__e_machine(machine ? machine->env : NULL, e_flags);
tools/perf/util/dso.c
1373
try_to_open_dso(dso, machine);
tools/perf/util/dso.c
1395
struct machine *machine, u64 addr,
tools/perf/util/dso.c
1400
return dso__data_read_offset(dso, machine, offset, data, size);
tools/perf/util/dso.c
1413
ssize_t dso__data_write_cache_offs(struct dso *dso, struct machine *machine,
tools/perf/util/dso.c
1421
return data_read_write_offset(dso, machine, offset, data, size, false);
tools/perf/util/dso.c
1436
struct machine *machine, u64 addr,
tools/perf/util/dso.c
1441
return dso__data_write_cache_offs(dso, machine, offset, data, size);
tools/perf/util/dso.c
1457
struct dso *machine__findnew_kernel(struct machine *machine, const char *name,
tools/perf/util/dso.c
1463
struct dso *dso = machine__findnew_dso(machine, name);
tools/perf/util/dso.c
1797
void dso__read_running_kernel_build_id(struct dso *dso, struct machine *machine)
tools/perf/util/dso.c
1802
if (machine__is_default_guest(machine))
tools/perf/util/dso.c
1804
snprintf(path, sizeof(path), "%s/sys/kernel/notes", machine->root_dir);
tools/perf/util/dso.c
1855
enum dso_type dso__type(struct dso *dso, struct machine *machine)
tools/perf/util/dso.c
1860
if (dso__data_get_fd(dso, machine, &fd)) {
tools/perf/util/dso.c
483
struct machine *machine)
tools/perf/util/dso.c
485
if (machine__is_host(machine))
tools/perf/util/dso.c
633
static int __open_dso(struct dso *dso, struct machine *machine)
tools/perf/util/dso.c
642
name = dso__get_filename(dso, machine ? machine->root_dir : "", &decomp);
tools/perf/util/dso.c
665
static int open_dso(struct dso *dso, struct machine *machine)
tools/perf/util/dso.c
676
fd = __open_dso(dso, machine);
tools/perf/util/dso.c
796
static void try_to_open_dso(struct dso *dso, struct machine *machine)
tools/perf/util/dso.c
811
dso_data->fd = open_dso(dso, machine);
tools/perf/util/dso.c
818
dso_data->fd = open_dso(dso, machine);
tools/perf/util/dso.c
839
bool dso__data_get_fd(struct dso *dso, struct machine *machine, int *fd)
tools/perf/util/dso.c
847
try_to_open_dso(dso, machine);
tools/perf/util/dso.h
17
struct machine;
tools/perf/util/dso.h
783
struct machine *machine);
tools/perf/util/dso.h
813
struct machine *machine);
tools/perf/util/dso.h
860
bool dso__data_get_fd(struct dso *dso, struct machine *machine, int *fd)
tools/perf/util/dso.h
865
int dso__data_file_size(struct dso *dso, struct machine *machine);
tools/perf/util/dso.h
866
off_t dso__data_size(struct dso *dso, struct machine *machine);
tools/perf/util/dso.h
867
ssize_t dso__data_read_offset(struct dso *dso, struct machine *machine,
tools/perf/util/dso.h
875
uint16_t dso__e_machine_endian(struct dso *dso, struct machine *machine, uint32_t *e_flags,
tools/perf/util/dso.h
877
static inline uint16_t dso__e_machine(struct dso *dso, struct machine *machine, uint32_t *e_flags)
tools/perf/util/dso.h
879
return dso__e_machine_endian(dso, machine, e_flags, NULL);
tools/perf/util/dso.h
882
struct machine *machine, u64 addr,
tools/perf/util/dso.h
885
ssize_t dso__data_write_cache_offs(struct dso *dso, struct machine *machine,
tools/perf/util/dso.h
888
struct machine *machine, u64 addr,
tools/perf/util/dso.h
892
struct dso *machine__findnew_kernel(struct machine *machine, const char *name,
tools/perf/util/dso.h
935
enum dso_type dso__type(struct dso *dso, struct machine *machine);
tools/perf/util/dsos.c
421
struct machine *machine,
tools/perf/util/dsos.c
446
dso__set_module_info(dso, m, machine);
tools/perf/util/dsos.h
14
struct machine;
tools/perf/util/dsos.h
45
struct dso *dsos__findnew_module_dso(struct dsos *dsos, struct machine *machine,
tools/perf/util/dump-insn.h
14
struct machine *machine;
tools/perf/util/dwarf-regs.c
102
if (machine == EM_NONE) {
tools/perf/util/dwarf-regs.c
104
machine = EM_HOST;
tools/perf/util/dwarf-regs.c
106
switch (machine) {
tools/perf/util/dwarf-regs.c
149
pr_err("ELF MACHINE %x is not supported.\n", machine);
tools/perf/util/dwarf-regs.c
157
static int get_libdw_frame_nregs(unsigned int machine, unsigned int flags __maybe_unused)
tools/perf/util/dwarf-regs.c
159
switch (machine) {
tools/perf/util/dwarf-regs.c
189
int get_dwarf_regnum_for_perf_regnum(int perf_regnum, unsigned int machine,
tools/perf/util/dwarf-regs.c
194
switch (machine) {
tools/perf/util/dwarf-regs.c
227
pr_err("ELF MACHINE %x is not supported.\n", machine);
tools/perf/util/dwarf-regs.c
231
int nregs = get_libdw_frame_nregs(machine, flags);
tools/perf/util/dwarf-regs.c
31
const char *get_dwarf_regstr(unsigned int n, unsigned int machine, unsigned int flags)
tools/perf/util/dwarf-regs.c
35
if (machine == EM_NONE) {
tools/perf/util/dwarf-regs.c
37
machine = EM_HOST;
tools/perf/util/dwarf-regs.c
39
switch (machine) {
tools/perf/util/dwarf-regs.c
69
pr_err("ELF MACHINE %x is not supported.\n", machine);
tools/perf/util/dwarf-regs.c
86
int get_dwarf_regnum(const char *name, unsigned int machine, unsigned int flags)
tools/perf/util/env.c
320
static struct utsname uts = { .machine[0] = '\0', };
tools/perf/util/env.c
322
if (uts.machine[0] == '\0')
tools/perf/util/env.c
324
if (uts.machine[0] != '\0')
tools/perf/util/env.c
325
arch = uts.machine;
tools/perf/util/env.c
797
static struct utsname uts = { .machine[0] = '\0', };
tools/perf/util/env.c
799
if (uts.machine[0] == '\0')
tools/perf/util/env.c
801
if (uts.machine[0] != '\0')
tools/perf/util/env.c
802
arch = uts.machine;
tools/perf/util/env.c
848
static struct utsname uts = { .machine[0] = '\0', };
tools/perf/util/env.c
851
if (uts.machine[0] == '\0')
tools/perf/util/env.c
853
if (uts.machine[0] != '\0') {
tools/perf/util/env.c
854
host_e_machine = perf_arch_to_e_machine(uts.machine, -1);
tools/perf/util/event.c
230
struct machine *machine)
tools/perf/util/event.c
232
return machine__process_comm_event(machine, event, sample);
tools/perf/util/event.c
238
struct machine *machine)
tools/perf/util/event.c
240
return machine__process_namespaces_event(machine, event, sample);
tools/perf/util/event.c
246
struct machine *machine)
tools/perf/util/event.c
248
return machine__process_cgroup_event(machine, event, sample);
tools/perf/util/event.c
254
struct machine *machine)
tools/perf/util/event.c
256
return machine__process_lost_event(machine, event, sample);
tools/perf/util/event.c
262
struct machine *machine)
tools/perf/util/event.c
264
return machine__process_aux_event(machine, event);
tools/perf/util/event.c
270
struct machine *machine)
tools/perf/util/event.c
272
return machine__process_itrace_start_event(machine, event);
tools/perf/util/event.c
278
struct machine *machine)
tools/perf/util/event.c
280
return machine__process_aux_output_hw_id_event(machine, event);
tools/perf/util/event.c
286
struct machine *machine)
tools/perf/util/event.c
288
return machine__process_lost_samples_event(machine, event, sample);
tools/perf/util/event.c
294
struct machine *machine)
tools/perf/util/event.c
296
return machine__process_switch_event(machine, event);
tools/perf/util/event.c
302
struct machine *machine)
tools/perf/util/event.c
304
return machine__process_ksymbol(machine, event, sample);
tools/perf/util/event.c
310
struct machine *machine)
tools/perf/util/event.c
312
return machine__process_bpf(machine, event, sample);
tools/perf/util/event.c
318
struct machine *machine)
tools/perf/util/event.c
320
return machine__process_text_poke(machine, event, sample);
tools/perf/util/event.c
401
struct machine *machine)
tools/perf/util/event.c
403
return machine__process_mmap_event(machine, event, sample);
tools/perf/util/event.c
409
struct machine *machine)
tools/perf/util/event.c
411
return machine__process_mmap2_event(machine, event, sample);
tools/perf/util/event.c
424
struct machine *machine)
tools/perf/util/event.c
426
return machine__process_fork_event(machine, event, sample);
tools/perf/util/event.c
432
struct machine *machine)
tools/perf/util/event.c
434
return machine__process_exit_event(machine, event, sample);
tools/perf/util/event.c
440
struct machine *machine)
tools/perf/util/event.c
442
struct thread *thread = machine__findnew_thread(machine,
tools/perf/util/event.c
450
machine__remove_thread(machine, thread);
tools/perf/util/event.c
546
size_t perf_event__fprintf_text_poke(union perf_event *event, struct machine *machine, FILE *fp)
tools/perf/util/event.c
553
if (machine) {
tools/perf/util/event.c
557
al.map = maps__find(machine__kernel_maps(machine), tp->addr);
tools/perf/util/event.c
626
size_t perf_event__fprintf(union perf_event *event, struct machine *machine, FILE *fp)
tools/perf/util/event.c
671
ret += perf_event__fprintf_text_poke(event, machine, fp);
tools/perf/util/event.c
689
struct machine *machine)
tools/perf/util/event.c
691
return machine__process_event(machine, event, sample);
tools/perf/util/event.c
698
struct machine *machine = maps__machine(maps);
tools/perf/util/event.c
709
if (machine == NULL)
tools/perf/util/event.c
714
maps = machine__kernel_maps(machine);
tools/perf/util/event.c
720
maps = machine__kernel_maps(machine);
tools/perf/util/event.c
761
struct machine *machine = maps__machine(thread__maps(thread));
tools/perf/util/event.c
762
u8 addr_cpumode = machine__addr_cpumode(machine, cpumode, addr);
tools/perf/util/event.c
805
int machine__resolve(struct machine *machine, struct addr_location *al,
tools/perf/util/event.c
811
if (symbol_conf.guest_code && !machine__is_host(machine))
tools/perf/util/event.c
812
thread = machine__findnew_guest_code(machine, sample->pid);
tools/perf/util/event.c
814
thread = machine__findnew_thread(machine, sample->pid, sample->tid);
tools/perf/util/event.c
838
struct perf_env *env = machine->env;
tools/perf/util/event.c
855
al->parallelism = max(1, min(machine->parallelism, machine__nr_cpus_avail(machine)));
tools/perf/util/event.h
16
struct machine;
tools/perf/util/event.h
304
struct machine *machine);
tools/perf/util/event.h
308
struct machine *machine);
tools/perf/util/event.h
312
struct machine *machine);
tools/perf/util/event.h
316
struct machine *machine);
tools/perf/util/event.h
320
struct machine *machine);
tools/perf/util/event.h
324
struct machine *machine);
tools/perf/util/event.h
328
struct machine *machine);
tools/perf/util/event.h
332
struct machine *machine);
tools/perf/util/event.h
336
struct machine *machine);
tools/perf/util/event.h
340
struct machine *machine);
tools/perf/util/event.h
344
struct machine *machine);
tools/perf/util/event.h
348
struct machine *machine);
tools/perf/util/event.h
352
struct machine *machine);
tools/perf/util/event.h
356
struct machine *machine);
tools/perf/util/event.h
360
struct machine *machine);
tools/perf/util/event.h
364
struct machine *machine);
tools/perf/util/event.h
368
struct machine *machine);
tools/perf/util/event.h
372
struct machine *machine);
tools/perf/util/event.h
394
size_t perf_event__fprintf_text_poke(union perf_event *event, struct machine *machine,FILE *fp);
tools/perf/util/event.h
397
size_t perf_event__fprintf(union perf_event *event, struct machine *machine, FILE *fp);
tools/perf/util/header.c
2636
struct machine *machine;
tools/perf/util/header.c
2641
machine = perf_session__findnew_machine(session, bev->pid);
tools/perf/util/header.c
2642
if (!machine)
tools/perf/util/header.c
2662
dso = machine__findnew_dso(machine, filename);
tools/perf/util/header.c
2679
dso__set_module_info(dso, &m, machine);
tools/perf/util/header.c
463
arch = uts.machine;
tools/perf/util/hisi-ptt.c
175
ptt->machine = &session->machines.host; /* No kvm support */
tools/perf/util/hisi-ptt.c
34
struct machine *machine;
tools/perf/util/include/dwarf-regs.h
123
int get_dwarf_regnum(const char *name, unsigned int machine, unsigned int flags);
tools/perf/util/include/dwarf-regs.h
128
int get_dwarf_regnum_for_perf_regnum(int perf_regnum, unsigned int machine, unsigned int flags,
tools/perf/util/include/dwarf-regs.h
136
unsigned int machine __maybe_unused,
tools/perf/util/include/dwarf-regs.h
98
const char *get_dwarf_regstr(unsigned int n, unsigned int machine, unsigned int flags);
tools/perf/util/intel-bts.c
267
return machine__kernel_ip(bts->machine, ip) ?
tools/perf/util/intel-bts.c
323
struct machine *machine = btsq->bts->machine;
tools/perf/util/intel-bts.c
330
thread = machine__find_thread(machine, -1, btsq->tid);
tools/perf/util/intel-bts.c
334
len = thread__memcpy(thread, machine, buf, ip, INTEL_PT_INSN_BUF_SZ, &x86_64);
tools/perf/util/intel-bts.c
395
if (!machine__kernel_ip(btsq->bts->machine, branch->from) &&
tools/perf/util/intel-bts.c
396
machine__kernel_ip(btsq->bts->machine, branch->to) &&
tools/perf/util/intel-bts.c
459
thread = machine__find_thread(btsq->bts->machine, -1,
tools/perf/util/intel-bts.c
464
thread = machine__findnew_thread(btsq->bts->machine, btsq->pid,
tools/perf/util/intel-bts.c
50
struct machine *machine;
tools/perf/util/intel-bts.c
850
bts->machine = &session->machines.host; /* No kvm support */
tools/perf/util/intel-pt.c
1240
struct thread *thread = machine__findnew_thread(pt->machine,
tools/perf/util/intel-pt.c
1278
struct thread *thread = machine__findnew_thread(pt->machine,
tools/perf/util/intel-pt.c
1297
struct perf_env *env = pt->machine->env;
tools/perf/util/intel-pt.c
1435
struct machine *machine;
tools/perf/util/intel-pt.c
1443
machine = machines__find(machines, machine_pid);
tools/perf/util/intel-pt.c
1444
if (!machine)
tools/perf/util/intel-pt.c
1447
if (ptq->guest_machine != machine) {
tools/perf/util/intel-pt.c
1452
ptq->unknown_guest_thread = machine__find_thread(machine, 0, 0);
tools/perf/util/intel-pt.c
1455
ptq->guest_machine = machine;
tools/perf/util/intel-pt.c
1462
tid = machine__get_current_tid(machine, vcpu);
tools/perf/util/intel-pt.c
1468
ptq->guest_thread = machine__find_thread(machine, -1, tid);
tools/perf/util/intel-pt.c
1487
ptq->tid = machine__get_current_tid(pt->machine, ptq->cpu);
tools/perf/util/intel-pt.c
1494
ptq->thread = machine__find_thread(pt->machine, -1, ptq->tid);
tools/perf/util/intel-pt.c
203
struct machine *guest_machine;
tools/perf/util/intel-pt.c
2782
err = machine__set_current_tid(pt->machine, ptq->cpu, -1, tid);
tools/perf/util/intel-pt.c
2984
struct machine *machine = pt->machine;
tools/perf/util/intel-pt.c
2993
map = machine__kernel_map(machine);
tools/perf/util/intel-pt.c
3149
pt->kernel_start = machine__kernel_start(pt->machine);
tools/perf/util/intel-pt.c
3313
struct machine *m = ptq->pt->machine;
tools/perf/util/intel-pt.c
3461
return machine__set_current_tid(pt->machine, cpu, -1, tid);
tools/perf/util/intel-pt.c
3497
if (machine__get_current_tid(pt->machine, cpu) == tid)
tools/perf/util/intel-pt.c
3500
return machine__set_current_tid(pt->machine, cpu, pid, tid);
tools/perf/util/intel-pt.c
3509
struct machine *machine = machines__find(machines, sample->machine_pid);
tools/perf/util/intel-pt.c
3524
if (!machine)
tools/perf/util/intel-pt.c
3527
return machine__set_current_tid(machine, sample->vcpu, sample->pid, sample->tid);
tools/perf/util/intel-pt.c
3565
return machine__set_current_tid(pt->machine, cpu, pid, tid);
tools/perf/util/intel-pt.c
3580
return machine__set_current_tid(pt->machine, sample->cpu,
tools/perf/util/intel-pt.c
3591
struct perf_env *env = pt->machine->env;
tools/perf/util/intel-pt.c
3673
struct machine *machine = pt->machine;
tools/perf/util/intel-pt.c
3697
e = intel_pt_cache_lookup(dso, machine, offset);
tools/perf/util/intel-pt.c
3710
intel_pt_cache_invalidate(dso, machine, offset);
tools/perf/util/intel-pt.c
4477
pt->machine = &session->machines.host; /* No kvm support */
tools/perf/util/intel-pt.c
4595
if (thread__init_maps(pt->unknown_thread, pt->machine)) {
tools/perf/util/intel-pt.c
584
struct machine *machine)
tools/perf/util/intel-pt.c
588
size = dso__data_size(dso, machine);
tools/perf/util/intel-pt.c
598
struct machine *machine)
tools/perf/util/intel-pt.c
606
bits = intel_pt_cache_size(dso, machine);
tools/perf/util/intel-pt.c
616
static int intel_pt_cache_add(struct dso *dso, struct machine *machine,
tools/perf/util/intel-pt.c
620
struct auxtrace_cache *c = intel_pt_cache(dso, machine);
tools/perf/util/intel-pt.c
648
intel_pt_cache_lookup(struct dso *dso, struct machine *machine, u64 offset)
tools/perf/util/intel-pt.c
650
struct auxtrace_cache *c = intel_pt_cache(dso, machine);
tools/perf/util/intel-pt.c
658
static void intel_pt_cache_invalidate(struct dso *dso, struct machine *machine,
tools/perf/util/intel-pt.c
661
struct auxtrace_cache *c = intel_pt_cache(dso, machine);
tools/perf/util/intel-pt.c
67
struct machine *machine;
tools/perf/util/intel-pt.c
699
struct machine *machine;
tools/perf/util/intel-pt.c
713
machine = machines__find_guest(machines, pid);
tools/perf/util/intel-pt.c
714
if (!machine)
tools/perf/util/intel-pt.c
717
ptq->unknown_guest_thread = machine__idle_thread(machine);
tools/perf/util/intel-pt.c
721
ptq->guest_machine = machine;
tools/perf/util/intel-pt.c
734
static bool intel_pt_emulated_ptwrite(struct dso *dso, struct machine *machine, u64 offset)
tools/perf/util/intel-pt.c
739
len = dso__data_read_offset(dso, machine, offset, buf, PTWRITE_MAGIC_LEN);
tools/perf/util/intel-pt.c
754
struct machine *machine = ptq->pt->machine;
tools/perf/util/intel-pt.c
790
machine = ptq->guest_machine;
tools/perf/util/intel-pt.c
837
e = intel_pt_cache_lookup(dso, machine, offset);
tools/perf/util/intel-pt.c
863
len = dso__data_read_offset(dso, machine,
tools/perf/util/intel-pt.c
892
eptw = intel_pt_emulated_ptwrite(dso, machine, offs);
tools/perf/util/intel-pt.c
928
e = intel_pt_cache_lookup(map__dso(al.map), machine, start_offset);
tools/perf/util/intel-pt.c
934
intel_pt_cache_add(map__dso(al.map), machine, start_offset, insn_cnt,
tools/perf/util/intel-tpebs.c
192
struct machine *machine __maybe_unused)
tools/perf/util/jit.h
8
struct machine *machine, const char *filename,
tools/perf/util/jitdump.c
38
struct machine *machine;
tools/perf/util/jitdump.c
454
idr_size = jd->machine->id_hdr_size;
tools/perf/util/jitdump.c
528
ret = perf_event__process_mmap2(tool, event, &sample, jd->machine);
tools/perf/util/jitdump.c
547
struct dso *dso = machine__findnew_dso_id(jd->machine, filename, &dso_id);
tools/perf/util/jitdump.c
581
idr_size = jd->machine->id_hdr_size;
tools/perf/util/jitdump.c
639
ret = perf_event__process_mmap2(tool, event, &sample, jd->machine);
tools/perf/util/jitdump.c
645
build_id__mark_dso_hit(tool, event, &sample, jd->machine);
tools/perf/util/jitdump.c
818
static void jit_add_pid(struct machine *machine, pid_t pid)
tools/perf/util/jitdump.c
820
struct thread *thread = machine__findnew_thread(machine, pid, pid);
tools/perf/util/jitdump.c
831
static bool jit_has_pid(struct machine *machine, pid_t pid)
tools/perf/util/jitdump.c
833
struct thread *thread = machine__find_thread(machine, pid, pid);
tools/perf/util/jitdump.c
847
struct machine *machine,
tools/perf/util/jitdump.c
860
thread = machine__findnew_thread(machine, pid, tid);
tools/perf/util/jitdump.c
878
if (jit_has_pid(machine, pid) &&
tools/perf/util/jitdump.c
891
jd.machine = machine;
tools/perf/util/jitdump.c
908
jit_add_pid(machine, pid);
tools/perf/util/kwork.h
162
struct machine *machine);
tools/perf/util/kwork.h
179
struct perf_sample *sample, struct machine *machine);
tools/perf/util/kwork.h
183
struct perf_sample *sample, struct machine *machine);
tools/perf/util/kwork.h
187
struct perf_sample *sample, struct machine *machine);
tools/perf/util/kwork.h
191
struct perf_sample *sample, struct machine *machine);
tools/perf/util/libunwind-arch/libunwind-arch.h
15
struct machine *machine;
tools/perf/util/libunwind-arch/libunwind-arch.h
9
struct machine;
tools/perf/util/libunwind-arch/libunwind-arm.c
235
ui->ui.machine = maps__machine(maps);
tools/perf/util/libunwind-arch/libunwind-arm64.c
234
ui->ui.machine = maps__machine(maps);
tools/perf/util/libunwind-arch/libunwind-i386.c
257
ui->ui.machine = maps__machine(maps);
tools/perf/util/libunwind-arch/libunwind-loongarch.c
242
ui->ui.machine = maps__machine(maps);
tools/perf/util/libunwind-arch/libunwind-mips.c
244
ui->ui.machine = maps__machine(maps);
tools/perf/util/libunwind-arch/libunwind-ppc32.c
248
ui->ui.machine = maps__machine(maps);
tools/perf/util/libunwind-arch/libunwind-ppc64.c
248
ui->ui.machine = maps__machine(maps);
tools/perf/util/libunwind-arch/libunwind-riscv.c
242
ui->ui.machine = maps__machine(maps);
tools/perf/util/libunwind-arch/libunwind-s390.c
244
ui->ui.machine = maps__machine(maps);
tools/perf/util/libunwind-arch/libunwind-x86_64.c
266
ui->ui.machine = maps__machine(maps);
tools/perf/util/lock-contention.c
102
bool match_callstack_filter(struct machine *machine, u64 *callstack, int max_stack_depth)
tools/perf/util/lock-contention.c
107
uint16_t e_machine = perf_env__e_machine(machine->env, /*e_flags=*/NULL);
tools/perf/util/lock-contention.c
133
sym = machine__find_kernel_symbol(machine, ip, &kmap);
tools/perf/util/lock-contention.h
133
struct machine;
tools/perf/util/lock-contention.h
146
struct machine *machine;
tools/perf/util/lock-contention.h
170
bool match_callstack_filter(struct machine *machine, u64 *callstack, int max_stack_depth);
tools/perf/util/machine.c
1002
dso__read_running_kernel_build_id(kernel, machine);
tools/perf/util/machine.c
1007
void machine__get_kallsyms_filename(struct machine *machine, char *buf,
tools/perf/util/machine.c
101
machine->parallelism = 1;
tools/perf/util/machine.c
1010
if (machine__is_default_guest(machine))
tools/perf/util/machine.c
1013
scnprintf(buf, bufsz, "%s/proc/kallsyms", machine->root_dir);
tools/perf/util/machine.c
1022
static int machine__get_running_kernel_start(struct machine *machine,
tools/perf/util/machine.c
103
machine->root_dir = strdup(root_dir);
tools/perf/util/machine.c
1031
machine__get_kallsyms_filename(machine, filename, PATH_MAX);
tools/perf/util/machine.c
104
if (machine->root_dir == NULL)
tools/perf/util/machine.c
1059
int machine__create_extra_kernel_map(struct machine *machine,
tools/perf/util/machine.c
107
if (machine__set_mmap_name(machine))
tools/perf/util/machine.c
1078
err = maps__insert(machine__kernel_maps(machine), map);
tools/perf/util/machine.c
111
struct thread *thread = machine__findnew_thread(machine, -1,
tools/perf/util/machine.c
1145
int machine__map_x86_64_entry_trampolines(struct machine *machine,
tools/perf/util/machine.c
1149
.kmaps = machine__kernel_maps(machine),
tools/perf/util/machine.c
1161
if (args.found || machine->trampolines_mapped)
tools/perf/util/machine.c
1168
nr_cpus_avail = machine__nr_cpus_avail(machine);
tools/perf/util/machine.c
1183
if (machine__create_extra_kernel_map(machine, kernel, &xm) < 0)
tools/perf/util/machine.c
1187
machine->trampolines_mapped = nr_cpus_avail;
tools/perf/util/machine.c
1192
int __weak machine__create_extra_kernel_maps(struct machine *machine __maybe_unused,
tools/perf/util/machine.c
1199
__machine__create_kernel_maps(struct machine *machine, struct dso *kernel)
tools/perf/util/machine.c
1202
machine__destroy_kernel_maps(machine);
tools/perf/util/machine.c
1204
map__put(machine->vmlinux_map);
tools/perf/util/machine.c
1205
machine->vmlinux_map = map__new2(0, kernel);
tools/perf/util/machine.c
1206
if (machine->vmlinux_map == NULL)
tools/perf/util/machine.c
1209
map__set_mapping_type(machine->vmlinux_map, MAPPING_TYPE__IDENTITY);
tools/perf/util/machine.c
121
machine->current_tid = NULL;
tools/perf/util/machine.c
1210
return maps__insert(machine__kernel_maps(machine), machine->vmlinux_map);
tools/perf/util/machine.c
1213
void machine__destroy_kernel_maps(struct machine *machine)
tools/perf/util/machine.c
1216
struct map *map = machine__kernel_map(machine);
tools/perf/util/machine.c
1222
maps__remove(machine__kernel_maps(machine), map);
tools/perf/util/machine.c
1228
map__zput(machine->vmlinux_map);
tools/perf/util/machine.c
126
maps__zput(machine->kmaps);
tools/perf/util/machine.c
127
zfree(&machine->root_dir);
tools/perf/util/machine.c
128
zfree(&machine->mmap_name);
tools/perf/util/machine.c
1287
struct machine *pos = rb_entry(next, struct machine, rb_node);
tools/perf/util/machine.c
1297
struct machine *machine = machines__findnew(machines, pid);
tools/perf/util/machine.c
1299
if (machine == NULL)
tools/perf/util/machine.c
1302
return machine__create_kernel_maps(machine);
tools/perf/util/machine.c
1305
int machine__load_kallsyms(struct machine *machine, const char *filename)
tools/perf/util/machine.c
1307
struct map *map = machine__kernel_map(machine);
tools/perf/util/machine.c
1318
maps__fixup_end(machine__kernel_maps(machine));
tools/perf/util/machine.c
1324
int machine__load_vmlinux_path(struct machine *machine)
tools/perf/util/machine.c
1326
struct map *map = machine__kernel_map(machine);
tools/perf/util/machine.c
133
static struct machine *__machine__new_host(struct perf_env *host_env, bool kernel_maps)
tools/perf/util/machine.c
135
struct machine *machine = malloc(sizeof(*machine));
tools/perf/util/machine.c
137
if (!machine)
tools/perf/util/machine.c
140
if (machine__init(machine, "", HOST_KERNEL_ID) != 0) {
tools/perf/util/machine.c
141
free(machine);
tools/perf/util/machine.c
145
if (kernel_maps && machine__create_kernel_maps(machine) < 0) {
tools/perf/util/machine.c
146
free(machine);
tools/perf/util/machine.c
1465
static int machine__set_modules_path(struct machine *machine)
tools/perf/util/machine.c
1470
version = get_kernel_version(machine->root_dir);
tools/perf/util/machine.c
1475
machine->root_dir, version);
tools/perf/util/machine.c
1478
return maps__set_modules_path_dir(machine__kernel_maps(machine),
tools/perf/util/machine.c
149
machine->env = host_env;
tools/perf/util/machine.c
1491
struct machine *machine = arg;
tools/perf/util/machine.c
1497
map = machine__addnew_module_map(machine, start, name);
tools/perf/util/machine.c
150
return machine;
tools/perf/util/machine.c
1502
dso__kernel_module_get_build_id(map__dso(map), machine->root_dir);
tools/perf/util/machine.c
1507
static int machine__create_modules(struct machine *machine)
tools/perf/util/machine.c
1512
if (machine__is_default_guest(machine)) {
tools/perf/util/machine.c
1515
snprintf(path, PATH_MAX, "%s/proc/modules", machine->root_dir);
tools/perf/util/machine.c
1522
if (modules__parse(modules, machine, machine__create_module))
tools/perf/util/machine.c
1525
if (!machine__set_modules_path(machine))
tools/perf/util/machine.c
153
struct machine *machine__new_host(struct perf_env *host_env)
tools/perf/util/machine.c
1533
static void machine__set_kernel_mmap(struct machine *machine,
tools/perf/util/machine.c
1536
map__set_start(machine->vmlinux_map, start);
tools/perf/util/machine.c
1537
map__set_end(machine->vmlinux_map, end);
tools/perf/util/machine.c
1543
map__set_end(machine->vmlinux_map, ~0ULL);
tools/perf/util/machine.c
1562
static int machine__update_kernel_mmap(struct machine *machine,
tools/perf/util/machine.c
1567
return maps__mutate_mapping(machine__kernel_maps(machine),
tools/perf/util/machine.c
1568
machine->vmlinux_map,
tools/perf/util/machine.c
1572
int machine__create_kernel_maps(struct machine *machine)
tools/perf/util/machine.c
1574
struct dso *kernel = machine__get_kernel(machine);
tools/perf/util/machine.c
1582
ret = __machine__create_kernel_maps(machine, kernel);
tools/perf/util/machine.c
1586
if (symbol_conf.use_modules && machine__create_modules(machine) < 0) {
tools/perf/util/machine.c
1587
if (machine__is_host(machine))
tools/perf/util/machine.c
1592
"continuing anyway...\n", machine->pid);
tools/perf/util/machine.c
1595
if (!machine__get_running_kernel_start(machine, &name, &start, &end)) {
tools/perf/util/machine.c
1597
map__set_kallsyms_ref_reloc_sym(machine->vmlinux_map, name, start)) {
tools/perf/util/machine.c
1598
machine__destroy_kernel_maps(machine);
tools/perf/util/machine.c
1607
ret = machine__update_kernel_mmap(machine, start, end);
tools/perf/util/machine.c
161
struct machine *machine)
tools/perf/util/machine.c
1612
if (machine__create_extra_kernel_maps(machine, kernel))
tools/perf/util/machine.c
1617
struct map *next = maps__find_next_entry(machine__kernel_maps(machine),
tools/perf/util/machine.c
1618
machine__kernel_map(machine));
tools/perf/util/machine.c
1621
machine__set_kernel_mmap(machine, start, map__start(next));
tools/perf/util/machine.c
1626
maps__fixup_end(machine__kernel_maps(machine));
tools/perf/util/machine.c
163
return machine__process_mmap2_event(machine, event, sample);
tools/perf/util/machine.c
1638
static bool machine__uses_kcore(struct machine *machine)
tools/perf/util/machine.c
1640
return dsos__for_each_dso(&machine->dsos, machine__uses_kcore_cb, NULL) != 0 ? true : false;
tools/perf/util/machine.c
1643
static bool machine__is(struct machine *machine, uint16_t e_machine)
tools/perf/util/machine.c
1645
if (!machine)
tools/perf/util/machine.c
1648
if (!machine->env) {
tools/perf/util/machine.c
1649
if (machine__is_host(machine))
tools/perf/util/machine.c
1654
return perf_env__e_machine(machine->env, NULL) == e_machine;
tools/perf/util/machine.c
1657
static bool perf_event__is_extra_kernel_mmap(struct machine *machine,
tools/perf/util/machine.c
166
static int machine__init_live(struct machine *machine, pid_t pid)
tools/perf/util/machine.c
1660
return machine__is(machine, EM_X86_64) &&
tools/perf/util/machine.c
1664
static int machine__process_extra_kernel_map(struct machine *machine,
tools/perf/util/machine.c
1667
struct dso *kernel = machine__kernel_dso(machine);
tools/perf/util/machine.c
1672
return machine__create_extra_kernel_map(machine, kernel, xm);
tools/perf/util/machine.c
1675
static int machine__process_kernel_mmap_event(struct machine *machine,
tools/perf/util/machine.c
1681
const char *mmap_name = machine->mmap_name;
tools/perf/util/machine.c
1684
if (machine__uses_kcore(machine))
tools/perf/util/machine.c
1687
if (machine__is_host(machine))
tools/perf/util/machine.c
1693
if (!is_kernel_mmap && !machine__is_host(machine)) {
tools/perf/util/machine.c
1704
struct map *map = machine__addnew_module_map(machine, xm->start, xm->name);
tools/perf/util/machine.c
172
mmap_handler, machine, true);
tools/perf/util/machine.c
1721
struct dso *kernel = dsos__find_kernel_dso(&machine->dsos);
tools/perf/util/machine.c
1724
kernel = machine__findnew_dso(machine, machine->mmap_name);
tools/perf/util/machine.c
1729
if (__machine__create_kernel_maps(machine, kernel) < 0) {
tools/perf/util/machine.c
1737
if (machine__update_kernel_mmap(machine, xm->start, xm->end) < 0) {
tools/perf/util/machine.c
175
struct machine *machine__new_live(struct perf_env *host_env, bool kernel_maps, pid_t pid)
tools/perf/util/machine.c
1751
map__set_kallsyms_ref_reloc_sym(machine->vmlinux_map,
tools/perf/util/machine.c
1756
if (machine__is_default_guest(machine)) {
tools/perf/util/machine.c
1760
dso__load(kernel, machine__kernel_map(machine));
tools/perf/util/machine.c
1763
} else if (perf_event__is_extra_kernel_mmap(machine, xm)) {
tools/perf/util/machine.c
1764
return machine__process_extra_kernel_map(machine, xm);
tools/perf/util/machine.c
177
struct machine *machine = __machine__new_host(host_env, kernel_maps);
tools/perf/util/machine.c
1771
int machine__process_mmap2_event(struct machine *machine,
tools/perf/util/machine.c
179
if (!machine)
tools/perf/util/machine.c
1803
ret = machine__process_kernel_mmap_event(machine, &xm, &dso_id.build_id);
tools/perf/util/machine.c
1809
thread = machine__findnew_thread(machine, event->mmap2.pid,
tools/perf/util/machine.c
1814
map = map__new(machine, event->mmap2.start,
tools/perf/util/machine.c
182
if (machine__init_live(machine, pid)) {
tools/perf/util/machine.c
183
machine__delete(machine);
tools/perf/util/machine.c
1840
int machine__process_mmap_event(struct machine *machine, union perf_event *event,
tools/perf/util/machine.c
186
return machine;
tools/perf/util/machine.c
1860
ret = machine__process_kernel_mmap_event(machine, &xm, NULL);
tools/perf/util/machine.c
1866
thread = machine__findnew_thread(machine, event->mmap.pid,
tools/perf/util/machine.c
1874
map = map__new(machine, event->mmap.start,
tools/perf/util/machine.c
189
struct machine *machine__new_kallsyms(struct perf_env *host_env)
tools/perf/util/machine.c
1898
void machine__remove_thread(struct machine *machine, struct thread *th)
tools/perf/util/machine.c
1900
return threads__remove(&machine->threads, th);
tools/perf/util/machine.c
1903
int machine__process_fork_event(struct machine *machine, union perf_event *event,
tools/perf/util/machine.c
1906
struct thread *thread = machine__find_thread(machine,
tools/perf/util/machine.c
1909
struct thread *parent = machine__findnew_thread(machine,
tools/perf/util/machine.c
191
struct machine *machine = machine__new_host(host_env);
tools/perf/util/machine.c
1927
machine__remove_thread(machine, parent);
tools/perf/util/machine.c
1929
parent = machine__findnew_thread(machine, event->fork.ppid,
tools/perf/util/machine.c
1935
machine__remove_thread(machine, thread);
tools/perf/util/machine.c
1939
thread = machine__findnew_thread(machine, event->fork.pid,
tools/perf/util/machine.c
1969
int machine__process_exit_event(struct machine *machine, union perf_event *event,
tools/perf/util/machine.c
1972
struct thread *thread = machine__find_thread(machine,
tools/perf/util/machine.c
198
if (machine && machine__load_kallsyms(machine, "/proc/kallsyms") <= 0) {
tools/perf/util/machine.c
1980
machine->parallelism--;
tools/perf/util/machine.c
1985
machine__remove_thread(machine, thread);
tools/perf/util/machine.c
199
machine__delete(machine);
tools/perf/util/machine.c
1991
int machine__process_event(struct machine *machine, union perf_event *event,
tools/perf/util/machine.c
1998
ret = machine__process_comm_event(machine, event, sample); break;
tools/perf/util/machine.c
200
machine = NULL;
tools/perf/util/machine.c
2000
ret = machine__process_mmap_event(machine, event, sample); break;
tools/perf/util/machine.c
2002
ret = machine__process_namespaces_event(machine, event, sample); break;
tools/perf/util/machine.c
2004
ret = machine__process_cgroup_event(machine, event, sample); break;
tools/perf/util/machine.c
2006
ret = machine__process_mmap2_event(machine, event, sample); break;
tools/perf/util/machine.c
2008
ret = machine__process_fork_event(machine, event, sample); break;
tools/perf/util/machine.c
2010
ret = machine__process_exit_event(machine, event, sample); break;
tools/perf/util/machine.c
2012
ret = machine__process_lost_event(machine, event, sample); break;
tools/perf/util/machine.c
2014
ret = machine__process_aux_event(machine, event); break;
tools/perf/util/machine.c
2016
ret = machine__process_itrace_start_event(machine, event); break;
tools/perf/util/machine.c
2018
ret = machine__process_lost_samples_event(machine, event, sample); break;
tools/perf/util/machine.c
2021
ret = machine__process_switch_event(machine, event); break;
tools/perf/util/machine.c
2023
ret = machine__process_ksymbol(machine, event, sample); break;
tools/perf/util/machine.c
2025
ret = machine__process_bpf(machine, event, sample); break;
tools/perf/util/machine.c
2027
ret = machine__process_text_poke(machine, event, sample); break;
tools/perf/util/machine.c
2029
ret = machine__process_aux_output_hw_id_event(machine, event); break;
tools/perf/util/machine.c
203
return machine;
tools/perf/util/machine.c
206
void machine__delete_threads(struct machine *machine)
tools/perf/util/machine.c
208
threads__remove_all_threads(&machine->threads);
tools/perf/util/machine.c
211
void machine__exit(struct machine *machine)
tools/perf/util/machine.c
213
if (machine == NULL)
tools/perf/util/machine.c
216
machine__destroy_kernel_maps(machine);
tools/perf/util/machine.c
217
maps__zput(machine->kmaps);
tools/perf/util/machine.c
218
dsos__exit(&machine->dsos);
tools/perf/util/machine.c
219
machine__exit_vdso(machine);
tools/perf/util/machine.c
220
zfree(&machine->root_dir);
tools/perf/util/machine.c
221
zfree(&machine->mmap_name);
tools/perf/util/machine.c
222
zfree(&machine->current_tid);
tools/perf/util/machine.c
223
zfree(&machine->kallsyms_filename);
tools/perf/util/machine.c
225
threads__exit(&machine->threads);
tools/perf/util/machine.c
228
void machine__delete(struct machine *machine)
tools/perf/util/machine.c
230
if (machine) {
tools/perf/util/machine.c
231
machine__exit(machine);
tools/perf/util/machine.c
232
free(machine);
tools/perf/util/machine.c
250
struct machine *machines__add(struct machines *machines, pid_t pid,
tools/perf/util/machine.c
255
struct machine *pos, *machine = malloc(sizeof(*machine));
tools/perf/util/machine.c
258
if (machine == NULL)
tools/perf/util/machine.c
261
if (machine__init(machine, root_dir, pid) != 0) {
tools/perf/util/machine.c
262
free(machine);
tools/perf/util/machine.c
268
pos = rb_entry(parent, struct machine, rb_node);
tools/perf/util/machine.c
277
rb_link_node(&machine->rb_node, parent, p);
tools/perf/util/machine.c
278
rb_insert_color_cached(&machine->rb_node, &machines->guests, leftmost);
tools/perf/util/machine.c
280
machine->machines = machines;
tools/perf/util/machine.c
282
return machine;
tools/perf/util/machine.c
292
struct machine *machine = rb_entry(nd, struct machine, rb_node);
tools/perf/util/machine.c
294
machine->comm_exec = comm_exec;
tools/perf/util/machine.c
298
struct machine *machines__find(struct machines *machines, pid_t pid)
tools/perf/util/machine.c
302
struct machine *machine;
tools/perf/util/machine.c
303
struct machine *default_machine = NULL;
tools/perf/util/machine.c
3094
int machine__for_each_thread(struct machine *machine,
tools/perf/util/machine.c
3098
return threads__for_each_thread(&machine->threads, fn, priv);
tools/perf/util/machine.c
310
machine = rb_entry(parent, struct machine, rb_node);
tools/perf/util/machine.c
311
if (pid < machine->pid)
tools/perf/util/machine.c
3113
struct machine *machine = rb_entry(nd, struct machine, rb_node);
tools/perf/util/machine.c
3115
rc = machine__for_each_thread(machine, fn, priv);
tools/perf/util/machine.c
313
else if (pid > machine->pid)
tools/perf/util/machine.c
3136
int machine__thread_list(struct machine *machine, struct list_head *list)
tools/perf/util/machine.c
3138
return machine__for_each_thread(machine, thread_list_cb, list);
tools/perf/util/machine.c
3152
pid_t machine__get_current_tid(struct machine *machine, int cpu)
tools/perf/util/machine.c
3154
if (cpu < 0 || (size_t)cpu >= machine->current_tid_sz)
tools/perf/util/machine.c
3157
return machine->current_tid[cpu];
tools/perf/util/machine.c
316
return machine;
tools/perf/util/machine.c
3160
int machine__set_current_tid(struct machine *machine, int cpu, pid_t pid,
tools/perf/util/machine.c
3169
if (realloc_array_as_needed(machine->current_tid,
tools/perf/util/machine.c
317
if (!machine->pid)
tools/perf/util/machine.c
3170
machine->current_tid_sz,
tools/perf/util/machine.c
3175
machine->current_tid[cpu] = tid;
tools/perf/util/machine.c
3177
thread = machine__findnew_thread(machine, pid, tid);
tools/perf/util/machine.c
318
default_machine = machine;
tools/perf/util/machine.c
3187
int machine__nr_cpus_avail(struct machine *machine)
tools/perf/util/machine.c
3189
return machine ? perf_env__nr_cpus_avail(machine->env) : 0;
tools/perf/util/machine.c
3192
int machine__get_kernel_start(struct machine *machine)
tools/perf/util/machine.c
3194
struct map *map = machine__kernel_map(machine);
tools/perf/util/machine.c
3205
machine->kernel_start = 1ULL << 63;
tools/perf/util/machine.c
3213
if (!err && !machine__is(machine, EM_X86_64))
tools/perf/util/machine.c
3214
machine->kernel_start = map__start(map);
tools/perf/util/machine.c
3219
u8 machine__addr_cpumode(struct machine *machine, u8 cpumode, u64 addr)
tools/perf/util/machine.c
3224
if (!machine->single_address_space)
tools/perf/util/machine.c
3227
kernel_ip = machine__kernel_ip(machine, addr);
tools/perf/util/machine.c
324
struct machine *machines__findnew(struct machines *machines, pid_t pid)
tools/perf/util/machine.c
3246
struct dso *machine__findnew_dso_id(struct machine *machine, const char *filename,
tools/perf/util/machine.c
3249
return dsos__findnew_id(&machine->dsos, filename, id);
tools/perf/util/machine.c
3252
struct dso *machine__findnew_dso(struct machine *machine, const char *filename)
tools/perf/util/machine.c
3254
return machine__findnew_dso_id(machine, filename, &dso_id_empty);
tools/perf/util/machine.c
3259
struct machine *machine = vmachine;
tools/perf/util/machine.c
3261
struct symbol *sym = machine__find_kernel_symbol(machine, *addrp, &map);
tools/perf/util/machine.c
3272
struct machine *machine;
tools/perf/util/machine.c
328
struct machine *machine = machines__find(machines, pid);
tools/perf/util/machine.c
3281
return args->fn(dso, args->machine, args->priv);
tools/perf/util/machine.c
3284
int machine__for_each_dso(struct machine *machine, machine__dso_t fn, void *priv)
tools/perf/util/machine.c
3287
.machine = machine,
tools/perf/util/machine.c
3292
return dsos__for_each_dso(&machine->dsos, machine__for_each_dso_cb, &args);
tools/perf/util/machine.c
3295
int machine__for_each_kernel_map(struct machine *machine, machine__map_t fn, void *priv)
tools/perf/util/machine.c
3297
struct maps *maps = machine__kernel_maps(machine);
tools/perf/util/machine.c
330
if (machine && (machine->pid == pid))
tools/perf/util/machine.c
3302
bool machine__is_lock_function(struct machine *machine, u64 addr)
tools/perf/util/machine.c
3304
if (!machine->sched.text_start) {
tools/perf/util/machine.c
3306
struct symbol *sym = machine__find_kernel_symbol_by_name(machine, "__sched_text_start", &kmap);
tools/perf/util/machine.c
3310
machine->sched.text_start = 1;
tools/perf/util/machine.c
3314
machine->sched.text_start = map__unmap_ip(kmap, sym->start);
tools/perf/util/machine.c
3317
sym = machine__find_kernel_symbol_by_name(machine, "__sched_text_end", &kmap);
tools/perf/util/machine.c
3318
machine->sched.text_end = map__unmap_ip(kmap, sym->start);
tools/perf/util/machine.c
3320
sym = machine__find_kernel_symbol_by_name(machine, "__lock_text_start", &kmap);
tools/perf/util/machine.c
3321
machine->lock.text_start = map__unmap_ip(kmap, sym->start);
tools/perf/util/machine.c
3323
sym = machine__find_kernel_symbol_by_name(machine, "__lock_text_end", &kmap);
tools/perf/util/machine.c
3324
machine->lock.text_end = map__unmap_ip(kmap, sym->start);
tools/perf/util/machine.c
3326
sym = machine__find_kernel_symbol_by_name(machine, "__traceiter_contention_begin", &kmap);
tools/perf/util/machine.c
3328
machine->traceiter.text_start = map__unmap_ip(kmap, sym->start);
tools/perf/util/machine.c
3329
machine->traceiter.text_end = map__unmap_ip(kmap, sym->end);
tools/perf/util/machine.c
3331
sym = machine__find_kernel_symbol_by_name(machine, "trace_contention_begin", &kmap);
tools/perf/util/machine.c
3333
machine->trace.text_start = map__unmap_ip(kmap, sym->start);
tools/perf/util/machine.c
3334
machine->trace.text_end = map__unmap_ip(kmap, sym->end);
tools/perf/util/machine.c
3339
if (machine->sched.text_start == 1)
tools/perf/util/machine.c
3343
if (machine->sched.text_start <= addr && addr < machine->sched.text_end)
tools/perf/util/machine.c
3347
if (machine->lock.text_start <= addr && addr < machine->lock.text_end)
tools/perf/util/machine.c
3353
if (machine->traceiter.text_start != 0) {
tools/perf/util/machine.c
3354
if (machine->traceiter.text_start <= addr && addr < machine->traceiter.text_end)
tools/perf/util/machine.c
3358
if (machine->trace.text_start != 0) {
tools/perf/util/machine.c
3359
if (machine->trace.text_start <= addr && addr < machine->trace.text_end)
tools/perf/util/machine.c
3366
int machine__hit_all_dsos(struct machine *machine)
tools/perf/util/machine.c
3368
return dsos__hit_all(&machine->dsos);
tools/perf/util/machine.c
347
machine = NULL;
tools/perf/util/machine.c
353
machine = machines__add(machines, pid, root_dir);
tools/perf/util/machine.c
355
return machine;
tools/perf/util/machine.c
358
struct machine *machines__find_guest(struct machines *machines, pid_t pid)
tools/perf/util/machine.c
360
struct machine *machine = machines__find(machines, pid);
tools/perf/util/machine.c
362
if (!machine)
tools/perf/util/machine.c
363
machine = machines__findnew(machines, DEFAULT_GUEST_KERNEL_ID);
tools/perf/util/machine.c
364
return machine;
tools/perf/util/machine.c
392
static struct thread *findnew_guest_code(struct machine *machine,
tools/perf/util/machine.c
393
struct machine *host_machine,
tools/perf/util/machine.c
400
if (!machine)
tools/perf/util/machine.c
403
thread = machine__findnew_thread(machine, -1, pid);
tools/perf/util/machine.c
435
struct machine *host_machine = machines__find(machines, HOST_KERNEL_ID);
tools/perf/util/machine.c
436
struct machine *machine = machines__findnew(machines, pid);
tools/perf/util/machine.c
438
return findnew_guest_code(machine, host_machine, pid);
tools/perf/util/machine.c
441
struct thread *machine__findnew_guest_code(struct machine *machine, pid_t pid)
tools/perf/util/machine.c
443
struct machines *machines = machine->machines;
tools/perf/util/machine.c
444
struct machine *host_machine;
tools/perf/util/machine.c
451
return findnew_guest_code(machine, host_machine, pid);
tools/perf/util/machine.c
460
struct machine *pos = rb_entry(nd, struct machine, rb_node);
tools/perf/util/machine.c
468
struct machine *machine;
tools/perf/util/machine.c
474
machine = rb_entry(node, struct machine, rb_node);
tools/perf/util/machine.c
475
machine->id_hdr_size = id_hdr_size;
tools/perf/util/machine.c
481
static void machine__update_thread_pid(struct machine *machine,
tools/perf/util/machine.c
494
leader = machine__findnew_thread(machine, thread__pid(th), thread__pid(th));
tools/perf/util/machine.c
499
thread__set_maps(leader, maps__new(machine));
tools/perf/util/machine.c
51
static struct dso *machine__kernel_dso(struct machine *machine)
tools/perf/util/machine.c
53
return map__dso(machine->vmlinux_map);
tools/perf/util/machine.c
532
static struct thread *__machine__findnew_thread(struct machine *machine,
tools/perf/util/machine.c
537
struct thread *th = threads__find(&machine->threads, tid);
tools/perf/util/machine.c
541
machine__update_thread_pid(machine, th, pid);
tools/perf/util/machine.c
547
th = threads__findnew(&machine->threads, pid, tid, &created);
tools/perf/util/machine.c
557
if (thread__init_maps(th, machine)) {
tools/perf/util/machine.c
559
threads__remove(&machine->threads, th);
tools/perf/util/machine.c
56
static int machine__set_mmap_name(struct machine *machine)
tools/perf/util/machine.c
564
machine__update_thread_pid(machine, th, pid);
tools/perf/util/machine.c
569
struct thread *machine__findnew_thread(struct machine *machine, pid_t pid, pid_t tid)
tools/perf/util/machine.c
571
return __machine__findnew_thread(machine, pid, tid, /*create=*/true);
tools/perf/util/machine.c
574
struct thread *machine__find_thread(struct machine *machine, pid_t pid,
tools/perf/util/machine.c
577
return __machine__findnew_thread(machine, pid, tid, /*create=*/false);
tools/perf/util/machine.c
58
if (machine__is_host(machine))
tools/perf/util/machine.c
587
struct thread *machine__idle_thread(struct machine *machine)
tools/perf/util/machine.c
589
struct thread *thread = machine__findnew_thread(machine, 0, 0);
tools/perf/util/machine.c
59
machine->mmap_name = strdup("[kernel.kallsyms]");
tools/perf/util/machine.c
593
pr_err("problem inserting idle task for machine pid %d\n", machine->pid);
tools/perf/util/machine.c
598
struct comm *machine__thread_exec_comm(struct machine *machine,
tools/perf/util/machine.c
60
else if (machine__is_default_guest(machine))
tools/perf/util/machine.c
601
if (machine->comm_exec)
tools/perf/util/machine.c
607
int machine__process_comm_event(struct machine *machine, union perf_event *event,
tools/perf/util/machine.c
61
machine->mmap_name = strdup("[guest.kernel.kallsyms]");
tools/perf/util/machine.c
610
struct thread *thread = machine__findnew_thread(machine,
tools/perf/util/machine.c
617
machine->comm_exec = true;
tools/perf/util/machine.c
62
else if (asprintf(&machine->mmap_name, "[guest.kernel.kallsyms.%d]",
tools/perf/util/machine.c
63
machine->pid) < 0)
tools/perf/util/machine.c
633
int machine__process_namespaces_event(struct machine *machine __maybe_unused,
tools/perf/util/machine.c
637
struct thread *thread = machine__findnew_thread(machine,
tools/perf/util/machine.c
64
machine->mmap_name = NULL;
tools/perf/util/machine.c
66
return machine->mmap_name ? 0 : -ENOMEM;
tools/perf/util/machine.c
664
int machine__process_cgroup_event(struct machine *machine,
tools/perf/util/machine.c
673
cgrp = cgroup__findnew(machine->env, event->cgroup.id, event->cgroup.path);
tools/perf/util/machine.c
680
int machine__process_lost_event(struct machine *machine __maybe_unused,
tools/perf/util/machine.c
688
int machine__process_lost_samples_event(struct machine *machine __maybe_unused,
tools/perf/util/machine.c
697
int machine__process_aux_event(struct machine *machine __maybe_unused,
tools/perf/util/machine.c
705
int machine__process_itrace_start_event(struct machine *machine __maybe_unused,
tools/perf/util/machine.c
713
int machine__process_aux_output_hw_id_event(struct machine *machine __maybe_unused,
tools/perf/util/machine.c
721
int machine__process_switch_event(struct machine *machine __maybe_unused,
tools/perf/util/machine.c
728
machine->parallelism += out ? -1 : 1;
tools/perf/util/machine.c
732
static int machine__process_ksymbol_register(struct machine *machine,
tools/perf/util/machine.c
745
map = maps__find(machine__kernel_maps(machine), event->ksymbol.addr);
tools/perf/util/machine.c
768
err = maps__fixup_overlap_and_insert(machine__kernel_maps(machine), map);
tools/perf/util/machine.c
77
int machine__init(struct machine *machine, const char *root_dir, pid_t pid)
tools/perf/util/machine.c
798
static int machine__process_ksymbol_unregister(struct machine *machine,
tools/perf/util/machine.c
809
map = maps__find(machine__kernel_maps(machine), event->ksymbol.addr);
tools/perf/util/machine.c
81
memset(machine, 0, sizeof(*machine));
tools/perf/util/machine.c
813
if (!RC_CHK_EQUAL(map, machine->vmlinux_map))
tools/perf/util/machine.c
814
maps__remove(machine__kernel_maps(machine), map);
tools/perf/util/machine.c
82
RB_CLEAR_NODE(&machine->rb_node);
tools/perf/util/machine.c
826
int machine__process_ksymbol(struct machine *machine __maybe_unused,
tools/perf/util/machine.c
83
dsos__init(&machine->dsos);
tools/perf/util/machine.c
84
threads__init(&machine->threads);
tools/perf/util/machine.c
843
return machine__process_ksymbol_unregister(machine, event,
tools/perf/util/machine.c
845
return machine__process_ksymbol_register(machine, event, sample);
tools/perf/util/machine.c
848
int machine__process_text_poke(struct machine *machine, union perf_event *event,
tools/perf/util/machine.c
851
struct map *map = maps__find(machine__kernel_maps(machine), event->text_poke.addr);
tools/perf/util/machine.c
856
perf_event__fprintf_text_poke(event, machine, stdout);
tools/perf/util/machine.c
86
machine->kmaps = maps__new(machine);
tools/perf/util/machine.c
87
if (machine->kmaps == NULL)
tools/perf/util/machine.c
875
ret = dso__data_write_cache_addr(dso, map, machine,
tools/perf/util/machine.c
891
static struct map *machine__addnew_module_map(struct machine *machine, u64 start,
tools/perf/util/machine.c
90
machine->vdso_info = NULL;
tools/perf/util/machine.c
902
dso = dsos__findnew_module_dso(&machine->dsos, machine, &m, filename);
tools/perf/util/machine.c
91
machine->env = NULL;
tools/perf/util/machine.c
910
err = maps__insert(machine__kernel_maps(machine), map);
tools/perf/util/machine.c
929
struct machine *pos = rb_entry(nd, struct machine, rb_node);
tools/perf/util/machine.c
93
machine->pid = pid;
tools/perf/util/machine.c
936
size_t machine__fprintf_dsos_buildid(struct machine *m, FILE *fp,
tools/perf/util/machine.c
949
struct machine *pos = rb_entry(nd, struct machine, rb_node);
tools/perf/util/machine.c
95
machine->id_hdr_size = 0;
tools/perf/util/machine.c
96
machine->kptr_restrict_warned = false;
tools/perf/util/machine.c
969
size_t machine__fprintf(struct machine *machine, FILE *fp)
tools/perf/util/machine.c
97
machine->comm_exec = false;
tools/perf/util/machine.c
975
size_t ret = fprintf(fp, "Threads: %zu\n", threads__nr(&machine->threads));
tools/perf/util/machine.c
977
machine__for_each_thread(machine, machine_fprintf_cb, &args);
tools/perf/util/machine.c
98
machine->kernel_start = 0;
tools/perf/util/machine.c
981
static struct dso *machine__get_kernel(struct machine *machine)
tools/perf/util/machine.c
983
const char *vmlinux_name = machine->mmap_name;
tools/perf/util/machine.c
986
if (machine__is_host(machine)) {
tools/perf/util/machine.c
99
machine->vmlinux_map = NULL;
tools/perf/util/machine.c
990
kernel = machine__findnew_kernel(machine, vmlinux_name,
tools/perf/util/machine.c
996
kernel = machine__findnew_kernel(machine, vmlinux_name,
tools/perf/util/machine.h
103
u8 machine__addr_cpumode(struct machine *machine, u8 cpumode, u64 addr);
tools/perf/util/machine.h
105
struct thread *machine__find_thread(struct machine *machine, pid_t pid,
tools/perf/util/machine.h
107
struct thread *machine__idle_thread(struct machine *machine);
tools/perf/util/machine.h
108
struct comm *machine__thread_exec_comm(struct machine *machine,
tools/perf/util/machine.h
111
int machine__process_comm_event(struct machine *machine, union perf_event *event,
tools/perf/util/machine.h
113
int machine__process_exit_event(struct machine *machine, union perf_event *event,
tools/perf/util/machine.h
115
int machine__process_fork_event(struct machine *machine, union perf_event *event,
tools/perf/util/machine.h
117
int machine__process_lost_event(struct machine *machine, union perf_event *event,
tools/perf/util/machine.h
119
int machine__process_lost_samples_event(struct machine *machine, union perf_event *event,
tools/perf/util/machine.h
121
int machine__process_aux_event(struct machine *machine,
tools/perf/util/machine.h
123
int machine__process_itrace_start_event(struct machine *machine,
tools/perf/util/machine.h
125
int machine__process_aux_output_hw_id_event(struct machine *machine,
tools/perf/util/machine.h
127
int machine__process_switch_event(struct machine *machine,
tools/perf/util/machine.h
129
int machine__process_namespaces_event(struct machine *machine,
tools/perf/util/machine.h
132
int machine__process_cgroup_event(struct machine *machine,
tools/perf/util/machine.h
135
int machine__process_mmap_event(struct machine *machine, union perf_event *event,
tools/perf/util/machine.h
137
int machine__process_mmap2_event(struct machine *machine, union perf_event *event,
tools/perf/util/machine.h
139
int machine__process_ksymbol(struct machine *machine,
tools/perf/util/machine.h
142
int machine__process_text_poke(struct machine *machine,
tools/perf/util/machine.h
145
int machine__process_event(struct machine *machine, union perf_event *event,
tools/perf/util/machine.h
148
typedef void (*machine__process_t)(struct machine *machine, void *data);
tools/perf/util/machine.h
151
struct machine host;
tools/perf/util/machine.h
161
struct machine *machines__add(struct machines *machines, pid_t pid,
tools/perf/util/machine.h
163
struct machine *machines__find(struct machines *machines, pid_t pid);
tools/perf/util/machine.h
164
struct machine *machines__findnew(struct machines *machines, pid_t pid);
tools/perf/util/machine.h
165
struct machine *machines__find_guest(struct machines *machines, pid_t pid);
tools/perf/util/machine.h
167
struct thread *machine__findnew_guest_code(struct machine *machine, pid_t pid);
tools/perf/util/machine.h
172
struct machine *machine__new_host(struct perf_env *host_env);
tools/perf/util/machine.h
173
struct machine *machine__new_kallsyms(struct perf_env *host_env);
tools/perf/util/machine.h
174
struct machine *machine__new_live(struct perf_env *host_env, bool kernel_maps, pid_t pid);
tools/perf/util/machine.h
175
int machine__init(struct machine *machine, const char *root_dir, pid_t pid);
tools/perf/util/machine.h
176
void machine__exit(struct machine *machine);
tools/perf/util/machine.h
177
void machine__delete_threads(struct machine *machine);
tools/perf/util/machine.h
178
void machine__delete(struct machine *machine);
tools/perf/util/machine.h
179
void machine__remove_thread(struct machine *machine, struct thread *th);
tools/perf/util/machine.h
216
static inline bool machine__is_default_guest(struct machine *machine)
tools/perf/util/machine.h
218
return machine ? machine->pid == DEFAULT_GUEST_KERNEL_ID : false;
tools/perf/util/machine.h
221
static inline bool machine__is_host(struct machine *machine)
tools/perf/util/machine.h
223
return machine ? machine->pid == HOST_KERNEL_ID : false;
tools/perf/util/machine.h
226
bool machine__is_lock_function(struct machine *machine, u64 addr);
tools/perf/util/machine.h
227
int machine__nr_cpus_avail(struct machine *machine);
tools/perf/util/machine.h
229
struct thread *machine__findnew_thread(struct machine *machine, pid_t pid, pid_t tid);
tools/perf/util/machine.h
231
struct dso *machine__findnew_dso_id(struct machine *machine, const char *filename,
tools/perf/util/machine.h
233
struct dso *machine__findnew_dso(struct machine *machine, const char *filename);
tools/perf/util/machine.h
235
size_t machine__fprintf(struct machine *machine, FILE *fp);
tools/perf/util/machine.h
238
struct symbol *machine__find_kernel_symbol(struct machine *machine, u64 addr,
tools/perf/util/machine.h
241
return maps__find_symbol(machine->kmaps, addr, mapp);
tools/perf/util/machine.h
245
struct symbol *machine__find_kernel_symbol_by_name(struct machine *machine,
tools/perf/util/machine.h
249
return maps__find_symbol_by_name(machine->kmaps, name, mapp);
tools/perf/util/machine.h
254
int machine__load_kallsyms(struct machine *machine, const char *filename);
tools/perf/util/machine.h
256
int machine__load_vmlinux_path(struct machine *machine);
tools/perf/util/machine.h
258
size_t machine__fprintf_dsos_buildid(struct machine *machine, FILE *fp,
tools/perf/util/machine.h
264
void machine__destroy_kernel_maps(struct machine *machine);
tools/perf/util/machine.h
265
int machine__create_kernel_maps(struct machine *machine);
tools/perf/util/machine.h
271
typedef int (*machine__dso_t)(struct dso *dso, struct machine *machine, void *priv);
tools/perf/util/machine.h
273
int machine__for_each_dso(struct machine *machine, machine__dso_t fn,
tools/perf/util/machine.h
277
int machine__for_each_kernel_map(struct machine *machine, machine__map_t fn,
tools/perf/util/machine.h
280
int machine__for_each_thread(struct machine *machine,
tools/perf/util/machine.h
293
int machine__thread_list(struct machine *machine, struct list_head *list);
tools/perf/util/machine.h
297
pid_t machine__get_current_tid(struct machine *machine, int cpu);
tools/perf/util/machine.h
298
int machine__set_current_tid(struct machine *machine, int cpu, pid_t pid,
tools/perf/util/machine.h
305
void machine__get_kallsyms_filename(struct machine *machine, char *buf,
tools/perf/util/machine.h
308
int machine__create_extra_kernel_maps(struct machine *machine,
tools/perf/util/machine.h
319
int machine__create_extra_kernel_map(struct machine *machine,
tools/perf/util/machine.h
323
int machine__map_x86_64_entry_trampolines(struct machine *machine,
tools/perf/util/machine.h
326
int machine__resolve(struct machine *machine, struct addr_location *al,
tools/perf/util/machine.h
329
int machine__hit_all_dsos(struct machine *machine);
tools/perf/util/machine.h
73
struct map *machine__kernel_map(struct machine *machine)
tools/perf/util/machine.h
75
return machine->vmlinux_map;
tools/perf/util/machine.h
82
struct maps *machine__kernel_maps(struct machine *machine)
tools/perf/util/machine.h
84
return machine->kmaps;
tools/perf/util/machine.h
87
int machine__get_kernel_start(struct machine *machine);
tools/perf/util/machine.h
89
static inline u64 machine__kernel_start(struct machine *machine)
tools/perf/util/machine.h
91
if (!machine->kernel_start)
tools/perf/util/machine.h
92
machine__get_kernel_start(machine);
tools/perf/util/machine.h
93
return machine->kernel_start;
tools/perf/util/machine.h
96
static inline bool machine__kernel_ip(struct machine *machine, u64 ip)
tools/perf/util/machine.h
98
u64 kernel_start = machine__kernel_start(machine);
tools/perf/util/map.c
122
struct map *map__new(struct machine *machine, u64 start, u64 len,
tools/perf/util/map.c
167
dso = machine__findnew_vdso(machine, thread);
tools/perf/util/map.c
169
dso = machine__findnew_dso_id(machine, filename, id);
tools/perf/util/map.c
199
struct dso *header_bid_dso = dsos__find(&machine->dsos, filename, false);
tools/perf/util/map.c
540
struct machine *machine = maps__machine(kmap->kmaps);
tools/perf/util/map.c
542
if (machine) {
tools/perf/util/map.c
543
struct map *kernel_map = machine__kernel_map(machine);
tools/perf/util/map.h
17
struct machine;
tools/perf/util/map.h
177
struct map *map__new(struct machine *machine, u64 start, u64 len,
tools/perf/util/maps.c
175
struct machine *maps__machine(const struct maps *maps)
tools/perf/util/maps.c
177
return RC_CHK_ACCESS(maps)->machine;
tools/perf/util/maps.c
228
static void maps__init(struct maps *maps, struct machine *machine)
tools/perf/util/maps.c
233
RC_CHK_ACCESS(maps)->machine = machine;
tools/perf/util/maps.c
267
struct maps *maps__new(struct machine *machine)
tools/perf/util/maps.c
273
maps__init(result, machine);
tools/perf/util/maps.c
39
struct machine *machine;
tools/perf/util/maps.h
11
struct machine;
tools/perf/util/maps.h
23
struct maps *maps__new(struct machine *machine);
tools/perf/util/maps.h
45
struct machine *maps__machine(const struct maps *maps);
tools/perf/util/powerpc-vpadtl.c
30
struct machine *machine;
tools/perf/util/powerpc-vpadtl.c
703
vpa->machine = &session->machines.host; /* No kvm support */
tools/perf/util/print_insn.c
38
static bool is64bitip(struct machine *machine, struct addr_location *al)
tools/perf/util/print_insn.c
46
e_machine = perf_env__e_machine(machine->env, /*e_flags=*/NULL);
tools/perf/util/print_insn.c
50
ssize_t fprintf_insn_asm(struct machine *machine, struct thread *thread, u8 cpumode,
tools/perf/util/print_insn.c
54
return capstone__fprintf_insn_asm(machine, thread, cpumode, is64bit, code, code_size,
tools/perf/util/print_insn.c
59
struct machine *machine, FILE *fp,
tools/perf/util/print_insn.c
62
bool is64bit = is64bitip(machine, al);
tools/perf/util/print_insn.c
65
printed = fprintf_insn_asm(machine, thread, sample->cpumode, is64bit,
tools/perf/util/print_insn.h
11
struct machine;
tools/perf/util/print_insn.h
19
struct machine *machine, FILE *fp, struct addr_location *al);
tools/perf/util/print_insn.h
21
ssize_t fprintf_insn_asm(struct machine *machine, struct thread *thread, u8 cpumode,
tools/perf/util/probe-event.c
76
static struct machine *host_machine;
tools/perf/util/s390-cpumsf.c
1142
sf->machine = &session->machines.host; /* No kvm support */
tools/perf/util/s390-cpumsf.c
173
struct machine *machine;
tools/perf/util/sample.c
108
e_machine = thread__e_machine(thread, machine, /*e_flags=*/NULL);
tools/perf/util/sample.c
110
len = thread__memcpy(thread, machine, sample->insn,
tools/perf/util/sample.c
99
struct machine *machine)
tools/perf/util/sample.h
257
struct machine *machine);
tools/perf/util/sample.h
9
struct machine;
tools/perf/util/scripting-engines/trace-event-python.c
1157
struct machine *machine)
tools/perf/util/scripting-engines/trace-event-python.c
1164
tuple_set_d64(t, 0, machine->db_id);
tools/perf/util/scripting-engines/trace-event-python.c
1165
tuple_set_s32(t, 1, machine->pid);
tools/perf/util/scripting-engines/trace-event-python.c
1166
tuple_set_string(t, 2, machine->root_dir ? machine->root_dir : "");
tools/perf/util/scripting-engines/trace-event-python.c
1176
u64 main_thread_db_id, struct machine *machine)
tools/perf/util/scripting-engines/trace-event-python.c
1184
tuple_set_d64(t, 1, machine->db_id);
tools/perf/util/scripting-engines/trace-event-python.c
1237
struct machine *machine)
tools/perf/util/scripting-engines/trace-event-python.c
1248
tuple_set_d64(t, 1, machine->db_id);
tools/perf/util/scripting-engines/trace-event-python.c
1427
struct machine *machine,
tools/perf/util/scripting-engines/trace-event-python.c
1438
tuple_set_d64(t, 1, machine->db_id);
tools/perf/util/scripting-engines/trace-event-python.c
1521
struct machine *machine)
tools/perf/util/scripting-engines/trace-event-python.c
1552
struct machine *machine)
tools/perf/util/scripting-engines/trace-event-python.c
1579
tuple_set_s32(t, 6, machine->pid);
tools/perf/util/scripting-engines/trace-event-python.c
1592
struct machine *machine)
tools/perf/util/scripting-engines/trace-event-python.c
1597
db_export__switch(&tables->dbe, event, sample, machine);
tools/perf/util/scripting-engines/trace-event-python.c
1599
python_do_process_switch(event, sample, machine);
tools/perf/util/scripting-engines/trace-event-python.c
1891
SET_TABLE_HANDLER(machine);
tools/perf/util/session.c
1570
static void dump_sample(struct machine *machine, union perf_event *event,
tools/perf/util/session.c
1585
struct thread *thread = machine__find_thread(machine, sample->pid, sample->pid);
tools/perf/util/session.c
1587
e_machine = thread__e_machine(thread, machine, &e_flags);
tools/perf/util/session.c
1700
static struct machine *machines__find_for_cpumode(struct machines *machines,
tools/perf/util/session.c
1735
struct machine *machine,
tools/perf/util/session.c
1766
ret = tool->sample(tool, event, sample, machine);
tools/perf/util/session.c
1775
struct machine *machine,
tools/perf/util/session.c
1783
return deliver_sample_value(evlist, tool, event, sample, v, machine,
tools/perf/util/session.c
1788
machine, per_thread);
tools/perf/util/session.c
1798
struct machine *machine)
tools/perf/util/session.c
1808
return tool->sample(tool, event, sample, machine);
tools/perf/util/session.c
1813
machine, read_format, per_thread);
tools/perf/util/session.c
1816
&sample->read.one, machine,
tools/perf/util/session.c
1839
struct machine *machine)
tools/perf/util/session.c
1848
ret = tool->callchain_deferred(tool, event, sample, machine);
tools/perf/util/session.c
1877
&orig_sample, machine);
tools/perf/util/session.c
1898
struct machine *machine = &session->machines.host;
tools/perf/util/session.c
1916
&sample, machine);
tools/perf/util/session.c
1956
struct machine *machine;
tools/perf/util/session.c
1965
machine = machines__find_for_cpumode(machines, event, sample);
tools/perf/util/session.c
1973
if (machine == NULL) {
tools/perf/util/session.c
1975
dump_sample(machine, event, sample);
tools/perf/util/session.c
1978
dump_sample(machine, event, sample);
tools/perf/util/session.c
1996
return evlist__deliver_sample(evlist, tool, event, sample, machine);
tools/perf/util/session.c
2002
return tool->mmap(tool, event, sample, machine);
tools/perf/util/session.c
2010
return tool->mmap2(tool, event, sample, machine);
tools/perf/util/session.c
2016
return tool->comm(tool, event, sample, machine);
tools/perf/util/session.c
2036
return tool->namespaces(tool, event, sample, machine);
tools/perf/util/session.c
2043
return tool->cgroup(tool, event, sample, machine);
tools/perf/util/session.c
2045
return tool->fork(tool, event, sample, machine);
tools/perf/util/session.c
2047
return tool->exit(tool, event, sample, machine);
tools/perf/util/session.c
2051
return tool->lost(tool, event, sample, machine);
tools/perf/util/session.c
2057
return tool->lost_samples(tool, event, sample, machine);
tools/perf/util/session.c
2060
return tool->read(tool, event, sample, machine);
tools/perf/util/session.c
2062
return tool->throttle(tool, event, sample, machine);
tools/perf/util/session.c
2064
return tool->unthrottle(tool, event, sample, machine);
tools/perf/util/session.c
2074
return tool->aux(tool, event, sample, machine);
tools/perf/util/session.c
2076
return tool->itrace_start(tool, event, sample, machine);
tools/perf/util/session.c
2079
return tool->context_switch(tool, event, sample, machine);
tools/perf/util/session.c
2085
return tool->ksymbol(tool, event, sample, machine);
tools/perf/util/session.c
2087
return tool->bpf(tool, event, sample, machine);
tools/perf/util/session.c
2099
return tool->text_poke(tool, event, sample, machine);
tools/perf/util/session.c
2102
return tool->aux_output_hw_id(tool, event, sample, machine);
tools/perf/util/session.c
2106
sample, machine);
tools/perf/util/session.c
3833
struct machine *pos = rb_entry(nd, struct machine, rb_node);
tools/perf/util/session.c
3922
struct machine *machine = machines__findnew(&session->machines, machine_pid);
tools/perf/util/session.c
3925
if (!machine)
tools/perf/util/session.c
3928
machine->single_address_space = session->machines.host.single_address_space;
tools/perf/util/session.c
3930
thread = machine__idle_thread(machine);
tools/perf/util/session.c
3935
machine->kallsyms_filename = perf_data__guest_kallsyms_name(session->data, machine_pid);
tools/perf/util/session.c
3943
struct machine *machine = &session->machines.host;
tools/perf/util/session.c
3944
struct thread *thread = machine__findnew_thread(machine, pid, tid);
tools/perf/util/session.c
4050
struct machine *pos = rb_entry(nd, struct machine, rb_node);
tools/perf/util/session.h
156
struct machine *perf_session__find_machine(struct perf_session *session, pid_t pid)
tools/perf/util/session.h
162
struct machine *perf_session__findnew_machine(struct perf_session *session, pid_t pid)
tools/perf/util/symbol.c
1001
machine = maps__machine(kmaps);
tools/perf/util/symbol.c
1002
e_machine = machine_or_dso_e_machine(machine, dso);
tools/perf/util/symbol.c
1022
machine__is_default_guest(machine)) {
tools/perf/util/symbol.c
1039
machine->root_dir, module);
tools/perf/util/symbol.c
1045
!machine__is_default_guest(machine))
tools/perf/util/symbol.c
1439
struct machine *machine;
tools/perf/util/symbol.c
1448
machine = maps__machine(kmaps);
tools/perf/util/symbol.c
1486
machine->trampolines_mapped = false;
tools/perf/util/symbol.c
1557
if (machine_or_dso_e_machine(machine, dso) == EM_X86_64) {
tools/perf/util/symbol.c
1567
machine->trampolines_mapped = true;
tools/perf/util/symbol.c
1806
struct machine *machine = NULL;
tools/perf/util/symbol.c
1844
machine = maps__machine(map__kmaps(map));
tools/perf/util/symbol.c
1845
if (machine && machine_or_dso_e_machine(machine, dso) == EM_X86_64)
tools/perf/util/symbol.c
1846
machine__map_x86_64_entry_trampolines(machine, dso);
tools/perf/util/symbol.c
1860
if (machine)
tools/perf/util/symbol.c
1861
root_dir = machine->root_dir;
tools/perf/util/symbol.c
2165
struct machine *machine = maps__machine(kmaps);
tools/perf/util/symbol.c
2167
scnprintf(path, sizeof(path), "%s/proc/kallsyms", machine->root_dir);
tools/perf/util/symbol.c
2264
struct machine *machine = maps__machine(map__kmaps(map));
tools/perf/util/symbol.c
2267
if (machine->kallsyms_filename) {
tools/perf/util/symbol.c
2268
kallsyms_filename = machine->kallsyms_filename;
tools/perf/util/symbol.c
2269
} else if (machine__is_default_guest(machine)) {
tools/perf/util/symbol.c
2286
snprintf(path, sizeof(path), "%s/proc/kallsyms", machine->root_dir);
tools/perf/util/symbol.c
2297
dso__set_long_name(dso, machine->mmap_name, false);
tools/perf/util/symbol.c
964
static uint16_t machine_or_dso_e_machine(struct machine *machine, struct dso *dso)
tools/perf/util/symbol.c
969
e_machine = dso__e_machine(dso, machine, /*e_flags=*/NULL);
tools/perf/util/symbol.c
975
if (machine && machine->env && machine->env->e_machine != EM_NONE)
tools/perf/util/symbol.c
976
return machine->env->e_machine;
tools/perf/util/symbol.c
978
return perf_env__e_machine(machine ? machine->env : NULL, /*e_flags=*/NULL);
tools/perf/util/symbol.c
989
struct machine *machine;
tools/perf/util/synthetic-events.c
1011
struct machine *machine;
tools/perf/util/synthetic-events.c
1024
args->machine,
tools/perf/util/synthetic-events.c
1033
struct machine *machine,
tools/perf/util/synthetic-events.c
1048
if (machine__is_default_guest(machine))
tools/perf/util/synthetic-events.c
1051
snprintf(proc_path, sizeof(proc_path), "%s/proc", machine->root_dir);
tools/perf/util/synthetic-events.c
1063
machine,
tools/perf/util/synthetic-events.c
1084
args[i].machine = machine;
tools/perf/util/synthetic-events.c
1122
struct machine *machine __maybe_unused)
tools/perf/util/synthetic-events.c
1129
struct machine *machine)
tools/perf/util/synthetic-events.c
1134
struct map *map = machine__kernel_map(machine);
tools/perf/util/synthetic-events.c
1150
event = zalloc(size + machine->id_hdr_size);
tools/perf/util/synthetic-events.c
1157
if (machine__is_host(machine)) {
tools/perf/util/synthetic-events.c
1169
"%s%s", machine->mmap_name, kmap->ref_reloc_sym->name) + 1;
tools/perf/util/synthetic-events.c
1173
(sizeof(event->mmap2.filename) - size) + machine->id_hdr_size);
tools/perf/util/synthetic-events.c
1177
event->mmap2.pid = machine->pid;
tools/perf/util/synthetic-events.c
1179
perf_record_mmap2__read_build_id(&event->mmap2, machine, true);
tools/perf/util/synthetic-events.c
1182
"%s%s", machine->mmap_name, kmap->ref_reloc_sym->name) + 1;
tools/perf/util/synthetic-events.c
1186
(sizeof(event->mmap.filename) - size) + machine->id_hdr_size);
tools/perf/util/synthetic-events.c
1190
event->mmap.pid = machine->pid;
tools/perf/util/synthetic-events.c
1193
err = perf_tool__process_synth_event(tool, event, machine, process);
tools/perf/util/synthetic-events.c
1201
struct machine *machine)
tools/perf/util/synthetic-events.c
1205
err = __perf_event__synthesize_kernel_mmap(tool, process, machine);
tools/perf/util/synthetic-events.c
1209
return perf_event__synthesize_extra_kmaps(tool, process, machine);
tools/perf/util/synthetic-events.c
1215
struct machine *machine)
tools/perf/util/synthetic-events.c
1242
err = process(tool, event, NULL, machine);
tools/perf/util/synthetic-events.c
1365
struct machine *machine)
tools/perf/util/synthetic-events.c
1374
err = process(tool, (union perf_event *) event, NULL, machine);
tools/perf/util/synthetic-events.c
1383
struct machine *machine)
tools/perf/util/synthetic-events.c
1413
err = process(tool, (union perf_event *) event, NULL, machine);
tools/perf/util/synthetic-events.c
1423
struct machine *machine)
tools/perf/util/synthetic-events.c
1438
return process(tool, (union perf_event *) &event, NULL, machine);
tools/perf/util/synthetic-events.c
1444
struct machine *machine)
tools/perf/util/synthetic-events.c
1455
return process(tool, (union perf_event *) &event, NULL, machine);
tools/perf/util/synthetic-events.c
155
struct machine *machine,
tools/perf/util/synthetic-events.c
164
if (machine__is_host(machine)) {
tools/perf/util/synthetic-events.c
171
*tgid = machine->pid;
tools/perf/util/synthetic-events.c
182
memset(event->comm.comm + size, 0, machine->id_hdr_size);
tools/perf/util/synthetic-events.c
185
machine->id_hdr_size);
tools/perf/util/synthetic-events.c
1864
struct evlist *evlist, struct machine *machine, size_t from)
tools/perf/util/synthetic-events.c
1913
err = process(tool, ev, NULL, machine);
tools/perf/util/synthetic-events.c
194
struct machine *machine)
tools/perf/util/synthetic-events.c
1948
err = process(tool, ev, NULL, machine);
tools/perf/util/synthetic-events.c
1956
struct evlist *evlist, struct machine *machine)
tools/perf/util/synthetic-events.c
1958
return __perf_event__synthesize_id_index(tool, process, evlist, machine, 0);
tools/perf/util/synthetic-events.c
1961
int __machine__synthesize_threads(struct machine *machine, const struct perf_tool *tool,
tools/perf/util/synthetic-events.c
1986
return perf_event__synthesize_thread_map(tool, threads, process, machine,
tools/perf/util/synthetic-events.c
1989
return perf_event__synthesize_threads(tool, process, machine,
tools/perf/util/synthetic-events.c
199
if (perf_event__prepare_comm(event, 0, pid, machine, &tgid, &ppid,
tools/perf/util/synthetic-events.c
1996
int machine__synthesize_threads(struct machine *machine, struct target *target,
tools/perf/util/synthetic-events.c
2000
return __machine__synthesize_threads(machine, NULL, target, threads,
tools/perf/util/synthetic-events.c
203
if (perf_tool__process_synth_event(tool, event, machine, process) != 0)
tools/perf/util/synthetic-events.c
226
struct machine *machine)
tools/perf/util/synthetic-events.c
2281
struct machine *machine,
tools/perf/util/synthetic-events.c
2310
ev.build_id.pid = machine->pid;
tools/perf/util/synthetic-events.c
2325
return process(tool, &ev, sample, machine);
tools/perf/util/synthetic-events.c
2330
struct machine *machine,
tools/perf/util/synthetic-events.c
236
machine->id_hdr_size));
tools/perf/util/synthetic-events.c
2390
return process(tool, &ev, sample, machine);
tools/perf/util/synthetic-events.c
253
machine->id_hdr_size);
tools/perf/util/synthetic-events.c
255
if (perf_tool__process_synth_event(tool, event, machine, process) != 0)
tools/perf/util/synthetic-events.c
265
struct machine *machine)
tools/perf/util/synthetic-events.c
267
memset(&event->fork, 0, sizeof(event->fork) + machine->id_hdr_size);
tools/perf/util/synthetic-events.c
286
event->fork.header.size = (sizeof(event->fork) + machine->id_hdr_size);
tools/perf/util/synthetic-events.c
288
if (perf_tool__process_synth_event(tool, event, machine, process) != 0)
tools/perf/util/synthetic-events.c
368
struct machine *machine,
tools/perf/util/synthetic-events.c
394
dso = dsos__findnew_id(&machine->dsos, event->filename, &dso_id);
tools/perf/util/synthetic-events.c
432
struct machine *machine,
tools/perf/util/synthetic-events.c
444
if (machine__is_default_guest(machine))
tools/perf/util/synthetic-events.c
448
machine->root_dir, pid, pid);
tools/perf/util/synthetic-events.c
488
machine->root_dir, pid, pid);
tools/perf/util/synthetic-events.c
498
if (machine__is_host(machine))
tools/perf/util/synthetic-events.c
529
memset(event->mmap2.filename + size, 0, machine->id_hdr_size +
tools/perf/util/synthetic-events.c
53
struct machine *machine,
tools/perf/util/synthetic-events.c
531
event->mmap2.header.size += machine->id_hdr_size;
tools/perf/util/synthetic-events.c
536
perf_record_mmap2__read_build_id(&event->mmap2, machine, false);
tools/perf/util/synthetic-events.c
538
if (perf_tool__process_synth_event(tool, event, machine, process) != 0) {
tools/perf/util/synthetic-events.c
556
struct machine *machine)
tools/perf/util/synthetic-events.c
572
event->cgroup.header.size = event_size + path_len + machine->id_hdr_size;
tools/perf/util/synthetic-events.c
582
memset(event->cgroup.path + path_len, 0, machine->id_hdr_size);
tools/perf/util/synthetic-events.c
584
if (perf_tool__process_synth_event(tool, event, machine, process) < 0) {
tools/perf/util/synthetic-events.c
596
struct machine *machine)
tools/perf/util/synthetic-events.c
604
process, machine) < 0)
tools/perf/util/synthetic-events.c
629
mount_len, process, machine);
tools/perf/util/synthetic-events.c
642
struct machine *machine)
tools/perf/util/synthetic-events.c
66
return process(tool, event, &synth_sample, machine);
tools/perf/util/synthetic-events.c
661
process, machine) < 0)
tools/perf/util/synthetic-events.c
669
struct machine *machine __maybe_unused)
tools/perf/util/synthetic-events.c
678
struct machine *machine;
tools/perf/util/synthetic-events.c
698
memset(event->mmap2.filename + size, 0, args->machine->id_hdr_size);
tools/perf/util/synthetic-events.c
699
event->mmap2.header.size += args->machine->id_hdr_size;
tools/perf/util/synthetic-events.c
702
event->mmap2.pid = args->machine->pid;
tools/perf/util/synthetic-events.c
711
perf_record_mmap2__read_build_id(&event->mmap2, args->machine, false);
tools/perf/util/synthetic-events.c
717
memset(event->mmap.filename + size, 0, args->machine->id_hdr_size);
tools/perf/util/synthetic-events.c
718
event->mmap.header.size += args->machine->id_hdr_size;
tools/perf/util/synthetic-events.c
721
event->mmap.pid = args->machine->pid;
tools/perf/util/synthetic-events.c
726
if (perf_tool__process_synth_event(args->tool, event, args->machine, args->process) != 0)
tools/perf/util/synthetic-events.c
733
struct machine *machine)
tools/perf/util/synthetic-events.c
736
struct maps *maps = machine__kernel_maps(machine);
tools/perf/util/synthetic-events.c
740
.machine = machine,
tools/perf/util/synthetic-events.c
746
args.event = zalloc(size + machine->id_hdr_size);
tools/perf/util/synthetic-events.c
757
if (machine__is_host(machine))
tools/perf/util/synthetic-events.c
778
const struct perf_tool *tool, struct machine *machine,
tools/perf/util/synthetic-events.c
790
process, machine);
tools/perf/util/synthetic-events.c
796
tgid, process, machine) < 0)
tools/perf/util/synthetic-events.c
805
process, machine, mmap_data))
tools/perf/util/synthetic-events.c
811
if (machine__is_default_guest(machine))
tools/perf/util/synthetic-events.c
815
machine->root_dir, pid);
tools/perf/util/synthetic-events.c
834
if (perf_event__prepare_comm(comm_event, pid, _pid, machine,
tools/perf/util/synthetic-events.c
840
ppid, process, machine) < 0)
tools/perf/util/synthetic-events.c
844
tgid, process, machine) < 0)
tools/perf/util/synthetic-events.c
850
if (perf_tool__process_synth_event(tool, comm_event, machine, process) != 0)
tools/perf/util/synthetic-events.c
857
process, machine, mmap_data);
tools/perf/util/synthetic-events.c
871
struct machine *machine,
tools/perf/util/synthetic-events.c
878
comm_event = malloc(sizeof(comm_event->comm) + machine->id_hdr_size);
tools/perf/util/synthetic-events.c
882
mmap_event = malloc(sizeof(mmap_event->mmap2) + machine->id_hdr_size);
tools/perf/util/synthetic-events.c
886
fork_event = malloc(sizeof(fork_event->fork) + machine->id_hdr_size);
tools/perf/util/synthetic-events.c
892
machine->id_hdr_size);
tools/perf/util/synthetic-events.c
901
process, tool, machine,
tools/perf/util/synthetic-events.c
927
process, tool, machine,
tools/perf/util/synthetic-events.c
947
struct machine *machine,
tools/perf/util/synthetic-events.c
961
comm_event = malloc(sizeof(comm_event->comm) + machine->id_hdr_size);
tools/perf/util/synthetic-events.c
965
mmap_event = malloc(sizeof(mmap_event->mmap2) + machine->id_hdr_size);
tools/perf/util/synthetic-events.c
969
fork_event = malloc(sizeof(fork_event->fork) + machine->id_hdr_size);
tools/perf/util/synthetic-events.c
975
machine->id_hdr_size);
tools/perf/util/synthetic-events.c
993
tool, machine, needs_mmap, mmap_data);
tools/perf/util/synthetic-events.h
102
int __machine__synthesize_threads(struct machine *machine, const struct perf_tool *tool,
tools/perf/util/synthetic-events.h
106
int machine__synthesize_threads(struct machine *machine, struct target *target,
tools/perf/util/synthetic-events.h
115
struct machine *machine, struct record_opts *opts);
tools/perf/util/synthetic-events.h
119
struct machine *machine __maybe_unused,
tools/perf/util/synthetic-events.h
16
struct machine;
tools/perf/util/synthetic-events.h
45
struct perf_sample *sample, struct machine *machine);
tools/perf/util/synthetic-events.h
51
struct machine *machine,
tools/perf/util/synthetic-events.h
58
struct machine *machine,
tools/perf/util/synthetic-events.h
66
int perf_event__synthesize_cpu_map(const struct perf_tool *tool, const struct perf_cpu_map *cpus, perf_event__handler_t process, struct machine *machine);
tools/perf/util/synthetic-events.h
72
int perf_event__synthesize_extra_kmaps(const struct perf_tool *tool, perf_event__handler_t process, struct machine *machine);
tools/perf/util/synthetic-events.h
74
int perf_event__synthesize_id_index(const struct perf_tool *tool, perf_event__handler_t process, struct evlist *evlist, struct machine *machine);
tools/perf/util/synthetic-events.h
75
int __perf_event__synthesize_id_index(const struct perf_tool *tool, perf_event__handler_t process, struct evlist *evlist, struct machine *machine, size_t from);
tools/perf/util/synthetic-events.h
77
int perf_event__synthesize_kernel_mmap(const struct perf_tool *tool, perf_event__handler_t process, struct machine *machine);
tools/perf/util/synthetic-events.h
78
int perf_event__synthesize_mmap_events(const struct perf_tool *tool, union perf_event *event, pid_t pid, pid_t tgid, perf_event__handler_t process, struct machine *machine, bool mmap_data);
tools/perf/util/synthetic-events.h
79
int perf_event__synthesize_modules(const struct perf_tool *tool, perf_event__handler_t process, struct machine *machine);
tools/perf/util/synthetic-events.h
80
int perf_event__synthesize_namespaces(const struct perf_tool *tool, union perf_event *event, pid_t pid, pid_t tgid, perf_event__handler_t process, struct machine *machine);
tools/perf/util/synthetic-events.h
81
int perf_event__synthesize_cgroups(const struct perf_tool *tool, perf_event__handler_t process, struct machine *machine);
tools/perf/util/synthetic-events.h
84
int perf_event__synthesize_stat_config(const struct perf_tool *tool, struct perf_stat_config *config, perf_event__handler_t process, struct machine *machine);
tools/perf/util/synthetic-events.h
86
int perf_event__synthesize_stat_round(const struct perf_tool *tool, u64 time, u64 type, perf_event__handler_t process, struct machine *machine);
tools/perf/util/synthetic-events.h
87
int perf_event__synthesize_stat(const struct perf_tool *tool, struct perf_cpu cpu, u32 thread, u64 id, struct perf_counts_values *count, perf_event__handler_t process, struct machine *machine);
tools/perf/util/synthetic-events.h
88
int perf_event__synthesize_thread_map2(const struct perf_tool *tool, struct perf_thread_map *threads, perf_event__handler_t process, struct machine *machine);
tools/perf/util/synthetic-events.h
89
int perf_event__synthesize_thread_map(const struct perf_tool *tool, struct perf_thread_map *threads, perf_event__handler_t process, struct machine *machine, bool needs_mmap, bool mmap_data);
tools/perf/util/synthetic-events.h
90
int perf_event__synthesize_threads(const struct perf_tool *tool, perf_event__handler_t process, struct machine *machine, bool needs_mmap, bool mmap_data, unsigned int nr_threads_synthesize);
tools/perf/util/synthetic-events.h
92
int perf_event__synth_time_conv(const struct perf_event_mmap_page *pc, const struct perf_tool *tool, perf_event__handler_t process, struct machine *machine);
tools/perf/util/synthetic-events.h
93
pid_t perf_event__synthesize_comm(const struct perf_tool *tool, union perf_event *event, pid_t pid, perf_event__handler_t process, struct machine *machine);
tools/perf/util/synthetic-events.h
97
int perf_tool__process_synth_event(const struct perf_tool *tool, union perf_event *event, struct machine *machine, perf_event__handler_t process);
tools/perf/util/thread-stack.c
159
struct machine *machine = maps__machine(thread__maps(thread));
tools/perf/util/thread-stack.c
160
uint16_t e_machine = thread__e_machine(thread, machine, /*e_flags=*/NULL);
tools/perf/util/thread-stack.c
162
ts->kernel_start = machine__kernel_start(machine);
tools/perf/util/thread.c
25
int thread__init_maps(struct thread *thread, struct machine *machine)
tools/perf/util/thread.c
30
thread__set_maps(thread, maps__new(machine));
tools/perf/util/thread.c
32
struct thread *leader = machine__findnew_thread(machine, pid, pid);
tools/perf/util/thread.c
455
struct machine *machine;
tools/perf/util/thread.c
470
dso__e_machine_endian(dso, args->machine, &args->e_flags, &args->is_big_endian);
tools/perf/util/thread.c
474
uint16_t thread__e_machine_endian(struct thread *thread, struct machine *machine, uint32_t *e_flags,
tools/perf/util/thread.c
485
machine && machine->env ? perf_env__arch(machine->env) : NULL);
tools/perf/util/thread.c
487
return perf_env__e_machine(machine ? machine->env : NULL, e_flags);
tools/perf/util/thread.c
491
args.machine = machine;
tools/perf/util/thread.c
504
if (machine == NULL) {
tools/perf/util/thread.c
507
machine = maps__machine(maps);
tools/perf/util/thread.c
508
args.machine = machine;
tools/perf/util/thread.c
513
struct thread *parent = machine__findnew_thread(machine, pid, pid);
tools/perf/util/thread.c
516
e_machine = thread__e_machine_endian(parent, machine, &local_e_flags,
tools/perf/util/thread.c
531
bool is_live = machine->machines == NULL;
tools/perf/util/thread.c
535
struct perf_session *session = container_of(machine->machines,
tools/perf/util/thread.c
545
} else if (machine && machine->env) {
tools/perf/util/thread.c
547
e_machine = perf_env__e_machine(machine->env, &local_e_flags);
tools/perf/util/thread.c
548
args.is_big_endian = perf_arch_is_big_endian(perf_env__arch(machine->env));
tools/perf/util/thread.c
569
struct thread *thread__main_thread(struct machine *machine, struct thread *thread)
tools/perf/util/thread.c
577
return machine__find_thread(machine, thread__pid(thread), thread__pid(thread));
tools/perf/util/thread.c
580
int thread__memcpy(struct thread *thread, struct machine *machine,
tools/perf/util/thread.c
588
if (machine__kernel_ip(machine, ip))
tools/perf/util/thread.c
610
return dso__data_read_offset(dso, machine, offset, buf, len);
tools/perf/util/thread.h
125
struct thread *thread__main_thread(struct machine *machine, struct thread *thread);
tools/perf/util/thread.h
140
int thread__memcpy(struct thread *thread, struct machine *machine,
tools/perf/util/thread.h
319
uint16_t thread__e_machine_endian(struct thread *thread, struct machine *machine, uint32_t *e_flags,
tools/perf/util/thread.h
321
static inline uint16_t thread__e_machine(struct thread *thread, struct machine *machine,
tools/perf/util/thread.h
324
return thread__e_machine_endian(thread, machine, e_flags, NULL);
tools/perf/util/thread.h
82
struct machine;
tools/perf/util/thread.h
87
int thread__init_maps(struct thread *thread, struct machine *machine);
tools/perf/util/tool.c
162
struct machine *machine __maybe_unused)
tools/perf/util/tool.c
171
struct machine *machine __maybe_unused)
tools/perf/util/tool.c
400
struct machine *machine) \
tools/perf/util/tool.c
404
return delegate->name(delegate, event, sample, machine); \
tools/perf/util/tool.c
437
struct machine *machine) \
tools/perf/util/tool.c
441
return delegate->name(delegate, event, sample, machine); \
tools/perf/util/tool.h
105
struct machine *machine);
tools/perf/util/tool.h
14
struct machine;
tools/perf/util/tool.h
19
struct machine *machine);
tools/perf/util/tool.h
22
struct perf_sample *sample, struct machine *machine);
tools/perf/util/trace-event.c
55
int trace_event__register_resolver(struct machine *machine,
tools/perf/util/trace-event.c
61
return tep_set_function_resolver(tevent.pevent, func, machine);
tools/perf/util/trace-event.h
101
struct machine *machine);
tools/perf/util/trace-event.h
109
struct machine *machine);
tools/perf/util/trace-event.h
11
struct machine;
tools/perf/util/trace-event.h
35
int trace_event__register_resolver(struct machine *machine,
tools/perf/util/tsc.c
108
return process(tool, &event, NULL, machine);
tools/perf/util/tsc.c
77
struct machine *machine)
tools/perf/util/unwind-libdw.c
202
size = dso__data_read_addr(dso, al.map, ui->machine, addr, (u8 *) data, sizeof(*data));
tools/perf/util/unwind-libdw.c
349
struct machine *machine = maps__machine(maps);
tools/perf/util/unwind-libdw.c
351
uint16_t e_machine = thread__e_machine(thread, machine, &e_flags);
tools/perf/util/unwind-libdw.c
368
.machine = machine,
tools/perf/util/unwind-libdw.h
17
struct machine *machine;
tools/perf/util/unwind-libdw.h
8
struct machine;
tools/perf/util/unwind-libunwind.c
144
static int unwind_spec_ehframe(struct dso *dso, struct machine *machine,
tools/perf/util/unwind-libunwind.c
176
r = dso__data_read_offset(dso, machine, offset, (u8 *) &hdr, sizeof(hdr));
tools/perf/util/unwind-libunwind.c
240
if (!dso__data_get_fd(dso, ui->machine, &fd))
tools/perf/util/unwind-libunwind.c
258
ret = unwind_spec_ehframe(dso, ui->machine, dso__data(dso)->eh_frame_hdr_offset,
tools/perf/util/unwind-libunwind.c
278
struct machine *machine, u64 *offset)
tools/perf/util/unwind-libunwind.c
290
if (dso__data_get_fd(dso, machine, &fd)) {
tools/perf/util/unwind-libunwind.c
314
machine->root_dir, debuglink, PATH_MAX);
tools/perf/util/unwind-libunwind.c
419
if (ret < 0 && !read_unwind_spec_debug_frame(dso, ui->machine, &segbase)) {
tools/perf/util/unwind-libunwind.c
426
if (dso__data_get_fd(dso, ui->machine, &fd)) {
tools/perf/util/unwind-libunwind.c
463
size = dso__data_read_addr(dso, map, ui->machine,
tools/perf/util/vdso.c
108
void machine__exit_vdso(struct machine *machine)
tools/perf/util/vdso.c
110
struct vdso_info *vdso_info = machine->vdso_info;
tools/perf/util/vdso.c
124
zfree(&machine->vdso_info);
tools/perf/util/vdso.c
127
static struct dso *__machine__addnew_vdso(struct machine *machine, const char *short_name,
tools/perf/util/vdso.c
134
__dsos__add(&machine->dsos, dso);
tools/perf/util/vdso.c
142
struct machine *machine;
tools/perf/util/vdso.c
154
args->dso_type = dso__type(dso, args->machine);
tools/perf/util/vdso.c
158
static enum dso_type machine__thread_dso_type(struct machine *machine,
tools/perf/util/vdso.c
162
.machine = machine,
tools/perf/util/vdso.c
247
static struct dso *__machine__findnew_compat(struct machine *machine,
tools/perf/util/vdso.c
253
dso = dsos__find(&machine->dsos, vdso_file->dso_name, true);
tools/perf/util/vdso.c
261
return __machine__addnew_vdso(machine, vdso_file->dso_name, file_name);
tools/perf/util/vdso.c
264
static int __machine__findnew_vdso_compat(struct machine *machine,
tools/perf/util/vdso.c
271
dso_type = machine__thread_dso_type(machine, thread);
tools/perf/util/vdso.c
284
*dso = __machine__findnew_compat(machine, &vdso_info->vdso32);
tools/perf/util/vdso.c
287
*dso = __machine__findnew_compat(machine, &vdso_info->vdsox32);
tools/perf/util/vdso.c
298
static struct dso *machine__find_vdso(struct machine *machine,
tools/perf/util/vdso.c
304
dso_type = machine__thread_dso_type(machine, thread);
tools/perf/util/vdso.c
307
dso = dsos__find(&machine->dsos, DSO__NAME_VDSO32, true);
tools/perf/util/vdso.c
309
dso = dsos__find(&machine->dsos, DSO__NAME_VDSO,
tools/perf/util/vdso.c
311
if (dso && dso_type != dso__type(dso, machine)) {
tools/perf/util/vdso.c
318
dso = dsos__find(&machine->dsos, DSO__NAME_VDSOX32, true);
tools/perf/util/vdso.c
323
dso = dsos__find(&machine->dsos, DSO__NAME_VDSO, true);
tools/perf/util/vdso.c
330
struct dso *machine__findnew_vdso(struct machine *machine,
tools/perf/util/vdso.c
337
if (!machine->vdso_info)
tools/perf/util/vdso.c
338
machine->vdso_info = vdso_info__new();
tools/perf/util/vdso.c
340
vdso_info = machine->vdso_info;
tools/perf/util/vdso.c
344
dso = machine__find_vdso(machine, thread);
tools/perf/util/vdso.c
349
if (__machine__findnew_vdso_compat(machine, thread, vdso_info, &dso))
tools/perf/util/vdso.c
353
dso = dsos__find(&machine->dsos, DSO__NAME_VDSO, true);
tools/perf/util/vdso.c
361
return __machine__addnew_vdso(machine, DSO__NAME_VDSO, file);
tools/perf/util/vdso.h
24
struct machine;
tools/perf/util/vdso.h
27
struct dso *machine__findnew_vdso(struct machine *machine, struct thread *thread);
tools/perf/util/vdso.h
28
void machine__exit_vdso(struct machine *machine);
tools/power/cpupower/utils/cpupower-info.c
43
if (!ret && (!strcmp(uts.machine, "ppc64le") ||
tools/power/cpupower/utils/cpupower-info.c
44
!strcmp(uts.machine, "ppc64"))) {
tools/power/cpupower/utils/cpupower-set.c
53
if (!ret && (!strcmp(uts.machine, "ppc64le") ||
tools/power/cpupower/utils/cpupower-set.c
54
!strcmp(uts.machine, "ppc64"))) {
tools/power/cpupower/utils/cpupower.c
219
if (!ret && !strcmp(uts.machine, "x86_64") &&
tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h
490
.machine push; \
tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h
491
.machine "power4"; \
tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h
493
.machine pop; \
tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h
511
.machine push; \
tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h
512
.machine power4; \
tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h
514
.machine pop;
tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h
519
.machine push; \
tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h
520
.machine power4; \
tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h
529
.machine pop;
tools/testing/selftests/powerpc/utils.c
490
return strcmp(uts.machine, "ppc64le") == 0;
tools/testing/selftests/seccomp/seccomp_bpf.c
3184
if ((strncmp(utsbuf.machine, "arm", 3) == 0) &&
tools/testing/selftests/seccomp/seccomp_bpf.c
3185
(strncmp(utsbuf.machine, "armv8l", 6) != 0) &&
tools/testing/selftests/seccomp/seccomp_bpf.c
3186
(strncmp(utsbuf.machine, "armv8b", 6) != 0)) {
tools/testing/selftests/wireguard/qemu/init.c
55
len = strlen(" WireGuard Test Suite on ") + strlen(utsname.sysname) + strlen(utsname.release) + strlen(utsname.machine);
tools/testing/selftests/wireguard/qemu/init.c
56
printf("\x1b[45m\x1b[33m\x1b[1m%*.s\x1b[0m\n\x1b[45m\x1b[33m\x1b[1m WireGuard Test Suite on %s %s %s \x1b[0m\n\x1b[45m\x1b[33m\x1b[1m%*.s\x1b[0m\n\n", len, "", utsname.sysname, utsname.release, utsname.machine, len, "");