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
794
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
399
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
71
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
138
#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
2608
init_utsname()->machine[1] =
drivers/base/soc.c
118
if (soc_dev_attr->machine)
drivers/base/soc.c
122
of_property_read_string(np, "model", &soc_dev_attr->machine);
drivers/base/soc.c
214
if (match->machine &&
drivers/base/soc.c
215
(!attr->machine || !glob_match(match->machine, attr->machine)))
drivers/base/soc.c
266
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
905
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
107
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/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
863
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
1894
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
189
const char *machine = NULL;
drivers/soc/fsl/guts.c
220
if (of_property_read_string(of_root, "model", &machine))
drivers/soc/fsl/guts.c
221
of_property_read_string_index(of_root, "compatible", 0, &machine);
drivers/soc/fsl/guts.c
222
if (machine) {
drivers/soc/fsl/guts.c
223
soc_dev_attr->machine = kstrdup(machine, GFP_KERNEL);
drivers/soc/fsl/guts.c
224
if (!soc_dev_attr->machine)
drivers/soc/fsl/guts.c
260
pr_info("Machine: %s\n", soc_dev_attr->machine);
drivers/soc/fsl/guts.c
270
kfree(soc_dev_attr->machine);
drivers/soc/imx/soc-imx.c
50
ret = of_property_read_string(root, "model", &soc_dev_attr->machine);
drivers/soc/imx/soc-imx8m.c
247
ret = of_property_read_string(of_root, "model", &soc_dev_attr->machine);
drivers/soc/imx/soc-imx9.c
33
err = of_property_read_string(of_root, "model", &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
878
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
183
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
3730
TARGET_CORE_VERSION, utsname()->sysname, utsname()->machine);
drivers/target/target_core_configfs.c
3786
" 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
2963
utsname()->machine);
drivers/xen/xen-scsiback.c
1710
VSCSI_VERSION, utsname()->sysname, utsname()->machine);
drivers/xen/xen-scsiback.c
1859
VSCSI_VERSION, utsname()->sysname, utsname()->machine);
fs/binfmt_elf.c
1439
u16 machine, u32 flags)
fs/binfmt_elf.c
1450
elf->e_machine = machine;
fs/binfmt_elf.c
1825
u16 machine;
fs/binfmt_elf.c
1854
machine = view->e_machine;
fs/binfmt_elf.c
1859
machine = ELF_ARCH;
fs/binfmt_elf.c
1872
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
3655
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
706
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
1391
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
250
struct acp_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp-da7219-max98357a.c
262
machine->play_i2s_instance = I2S_SP_INSTANCE;
sound/soc/amd/acp-da7219-max98357a.c
271
struct acp_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp-da7219-max98357a.c
283
machine->cap_i2s_instance = I2S_SP_INSTANCE;
sound/soc/amd/acp-da7219-max98357a.c
284
machine->capture_channel = CAP_CHANNEL1;
sound/soc/amd/acp-da7219-max98357a.c
293
struct acp_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp-da7219-max98357a.c
305
machine->play_i2s_instance = I2S_BT_INSTANCE;
sound/soc/amd/acp-da7219-max98357a.c
314
struct acp_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp-da7219-max98357a.c
326
machine->cap_i2s_instance = I2S_BT_INSTANCE;
sound/soc/amd/acp-da7219-max98357a.c
335
struct acp_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp-da7219-max98357a.c
347
machine->cap_i2s_instance = I2S_SP_INSTANCE;
sound/soc/amd/acp-da7219-max98357a.c
348
machine->capture_channel = CAP_CHANNEL0;
sound/soc/amd/acp-da7219-max98357a.c
362
struct acp_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp-da7219-max98357a.c
374
machine->play_i2s_instance = I2S_SP_INSTANCE;
sound/soc/amd/acp-da7219-max98357a.c
383
struct acp_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp-da7219-max98357a.c
395
machine->cap_i2s_instance = I2S_SP_INSTANCE;
sound/soc/amd/acp-da7219-max98357a.c
396
machine->capture_channel = CAP_CHANNEL1;
sound/soc/amd/acp-da7219-max98357a.c
405
struct acp_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp-da7219-max98357a.c
417
machine->play_i2s_instance = I2S_BT_INSTANCE;
sound/soc/amd/acp-da7219-max98357a.c
426
struct acp_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp-da7219-max98357a.c
438
machine->cap_i2s_instance = I2S_BT_INSTANCE;
sound/soc/amd/acp-da7219-max98357a.c
447
struct acp_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp-da7219-max98357a.c
459
machine->cap_i2s_instance = I2S_SP_INSTANCE;
sound/soc/amd/acp-da7219-max98357a.c
460
machine->capture_channel = CAP_CHANNEL0;
sound/soc/amd/acp-da7219-max98357a.c
752
struct acp_platform_info *machine;
sound/soc/amd/acp-da7219-max98357a.c
770
machine = devm_kzalloc(&pdev->dev, sizeof(struct acp_platform_info),
sound/soc/amd/acp-da7219-max98357a.c
772
if (!machine)
sound/soc/amd/acp-da7219-max98357a.c
776
snd_soc_card_set_drvdata(card, machine);
sound/soc/amd/acp-es8336.c
109
struct acp_platform_info *machine;
sound/soc/amd/acp-es8336.c
116
machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp-es8336.c
129
machine->play_i2s_instance = I2S_MICSP_INSTANCE;
sound/soc/amd/acp-es8336.c
130
machine->cap_i2s_instance = I2S_MICSP_INSTANCE;
sound/soc/amd/acp-es8336.c
131
machine->capture_channel = CAP_CHANNEL0;
sound/soc/amd/acp-es8336.c
272
struct acp_platform_info *machine;
sound/soc/amd/acp-es8336.c
274
machine = devm_kzalloc(&pdev->dev, sizeof(struct acp_platform_info), GFP_KERNEL);
sound/soc/amd/acp-es8336.c
275
if (!machine)
sound/soc/amd/acp-es8336.c
289
snd_soc_card_set_drvdata(card, machine);
sound/soc/amd/acp3x-rt5682-max9836.c
204
struct acp3x_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp3x-rt5682-max9836.c
206
machine->play_i2s_instance = I2S_SP_INSTANCE;
sound/soc/amd/acp3x-rt5682-max9836.c
207
machine->cap_i2s_instance = I2S_SP_INSTANCE;
sound/soc/amd/acp3x-rt5682-max9836.c
222
struct acp3x_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp3x-rt5682-max9836.c
224
machine->play_i2s_instance = I2S_BT_INSTANCE;
sound/soc/amd/acp3x-rt5682-max9836.c
239
struct acp3x_platform_info *machine = snd_soc_card_get_drvdata(card);
sound/soc/amd/acp3x-rt5682-max9836.c
241
machine->cap_i2s_instance = I2S_BT_INSTANCE;
sound/soc/amd/acp3x-rt5682-max9836.c
506
struct acp3x_platform_info *machine;
sound/soc/amd/acp3x-rt5682-max9836.c
513
machine = devm_kzalloc(&pdev->dev, sizeof(*machine), GFP_KERNEL);
sound/soc/amd/acp3x-rt5682-max9836.c
514
if (!machine)
sound/soc/amd/acp3x-rt5682-max9836.c
520
snd_soc_card_set_drvdata(card, machine);
sound/soc/amd/ps/ps-mach.c
48
struct acp63_pdm *machine = NULL;
sound/soc/amd/ps/ps-mach.c
56
snd_soc_card_set_drvdata(card, machine);
sound/soc/amd/renoir/acp3x-rn.c
47
struct acp_pdm *machine = NULL;
sound/soc/amd/renoir/acp3x-rn.c
54
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/amd/yc/acp6x-mach.c
754
struct acp6x_pdm *machine = NULL;
sound/soc/amd/yc/acp6x-mach.c
801
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
2511
sof_pdata->machine && sof_pdata->machine->get_function_tplg_files) {
sound/soc/sof/topology.c
2526
tplg_cnt = sof_pdata->machine->get_function_tplg_files(scomp->card,
sound/soc/sof/topology.c
2527
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
296
struct tegra_machine *machine = snd_soc_card_get_drvdata(card);
sound/soc/tegra/tegra_asoc_machine.c
298
unsigned int mclk = machine->asoc->mclk_rate(srate);
sound/soc/tegra/tegra_asoc_machine.c
299
unsigned int clk_id = machine->asoc->mclk_id;
sound/soc/tegra/tegra_asoc_machine.c
333
if (new_baseclock != machine->set_baseclock ||
sound/soc/tegra/tegra_asoc_machine.c
334
mclk != machine->set_mclk) {
sound/soc/tegra/tegra_asoc_machine.c
335
machine->set_baseclock = 0;
sound/soc/tegra/tegra_asoc_machine.c
336
machine->set_mclk = 0;
sound/soc/tegra/tegra_asoc_machine.c
338
clk_disable_unprepare(machine->clk_cdev1);
sound/soc/tegra/tegra_asoc_machine.c
340
err = clk_set_rate(machine->clk_pll_a, new_baseclock);
sound/soc/tegra/tegra_asoc_machine.c
346
err = clk_set_rate(machine->clk_pll_a_out0, mclk);
sound/soc/tegra/tegra_asoc_machine.c
354
err = clk_prepare_enable(machine->clk_cdev1);
sound/soc/tegra/tegra_asoc_machine.c
360
machine->set_baseclock = new_baseclock;
sound/soc/tegra/tegra_asoc_machine.c
361
machine->set_mclk = mclk;
sound/soc/tegra/tegra_asoc_machine.c
431
struct tegra_machine *machine;
sound/soc/tegra/tegra_asoc_machine.c
436
machine = devm_kzalloc(dev, sizeof(*machine), GFP_KERNEL);
sound/soc/tegra/tegra_asoc_machine.c
437
if (!machine)
sound/soc/tegra/tegra_asoc_machine.c
444
machine->asoc = asoc;
sound/soc/tegra/tegra_asoc_machine.c
445
machine->mic_jack = &tegra_machine_mic_jack;
sound/soc/tegra/tegra_asoc_machine.c
446
machine->hp_jack_gpio = &tegra_machine_hp_jack_gpio;
sound/soc/tegra/tegra_asoc_machine.c
447
snd_soc_card_set_drvdata(card, machine);
sound/soc/tegra/tegra_asoc_machine.c
450
machine->gpiod_hp_mute = gpiod;
sound/soc/tegra/tegra_asoc_machine.c
455
machine->gpiod_hp_det = gpiod;
sound/soc/tegra/tegra_asoc_machine.c
460
machine->gpiod_mic_det = gpiod;
sound/soc/tegra/tegra_asoc_machine.c
465
machine->gpiod_spkr_en = gpiod;
sound/soc/tegra/tegra_asoc_machine.c
470
machine->gpiod_int_mic_en = gpiod;
sound/soc/tegra/tegra_asoc_machine.c
475
machine->gpiod_ext_mic_en = gpiod;
sound/soc/tegra/tegra_asoc_machine.c
532
machine->clk_pll_a = devm_clk_get(dev, "pll_a");
sound/soc/tegra/tegra_asoc_machine.c
533
if (IS_ERR(machine->clk_pll_a)) {
sound/soc/tegra/tegra_asoc_machine.c
535
return PTR_ERR(machine->clk_pll_a);
sound/soc/tegra/tegra_asoc_machine.c
538
machine->clk_pll_a_out0 = devm_clk_get(dev, "pll_a_out0");
sound/soc/tegra/tegra_asoc_machine.c
539
if (IS_ERR(machine->clk_pll_a_out0)) {
sound/soc/tegra/tegra_asoc_machine.c
541
return PTR_ERR(machine->clk_pll_a_out0);
sound/soc/tegra/tegra_asoc_machine.c
544
machine->clk_cdev1 = devm_clk_get(dev, "mclk");
sound/soc/tegra/tegra_asoc_machine.c
545
if (IS_ERR(machine->clk_cdev1)) {
sound/soc/tegra/tegra_asoc_machine.c
547
return PTR_ERR(machine->clk_cdev1);
sound/soc/tegra/tegra_asoc_machine.c
55
struct tegra_machine *machine = (struct tegra_machine *)data;
sound/soc/tegra/tegra_asoc_machine.c
567
err = clk_set_parent(clk_extern1, machine->clk_pll_a_out0);
sound/soc/tegra/tegra_asoc_machine.c
58
if (gpiod_get_value_cansleep(machine->gpiod_hp_det) &&
sound/soc/tegra/tegra_asoc_machine.c
585
machine->clk_cdev1 = clk_out_1;
sound/soc/tegra/tegra_asoc_machine.c
59
gpiod_get_value_cansleep(machine->gpiod_mic_det))
sound/soc/tegra/tegra_asoc_machine.c
593
err = clk_set_rate(machine->clk_pll_a, 73728000);
sound/soc/tegra/tegra_asoc_machine.c
599
err = clk_set_rate(machine->clk_pll_a_out0, 24576000);
sound/soc/tegra/tegra_asoc_machine.c
605
machine->set_baseclock = 73728000;
sound/soc/tegra/tegra_asoc_machine.c
606
machine->set_mclk = 24576000;
sound/soc/tegra/tegra_asoc_machine.c
614
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,
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
199
struct machine *machine)
tools/perf/builtin-annotate.c
212
if (machine__resolve(machine, &a, sample) < 0) {
tools/perf/builtin-annotate.c
241
struct machine *machine)
tools/perf/builtin-annotate.c
273
return process_branch_callback(evsel, sample, al, ann, machine);
tools/perf/builtin-annotate.c
288
struct machine *machine)
tools/perf/builtin-annotate.c
295
if (machine__resolve(machine, &al, sample) < 0) {
tools/perf/builtin-annotate.c
306
evsel__add_sample(evsel, 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
318
struct machine *machine)
tools/perf/builtin-c2c.c
330
if (machine__resolve(machine, &al, sample) < 0) {
tools/perf/builtin-c2c.c
391
c2c_hists = he__get_c2c_hists(he, c2c.cl_sort, 2, machine->env);
tools/perf/builtin-diff.c
394
struct machine *machine)
tools/perf/builtin-diff.c
412
if (machine__resolve(machine, &al, sample) < 0) {
tools/perf/builtin-inject.c
1007
.machine = machine,
tools/perf/builtin-inject.c
1012
thread = machine__findnew_thread(machine, sample->pid, sample->tid);
tools/perf/builtin-inject.c
1020
mark_dso_hit(inject, tool, sample, machine, args.mmap_evsel, al.map,
tools/perf/builtin-inject.c
1029
perf_event__repipe(tool, event, sample, machine);
tools/perf/builtin-inject.c
1038
struct machine *machine __maybe_unused)
tools/perf/builtin-inject.c
1058
struct machine *machine)
tools/perf/builtin-inject.c
1063
perf_inject__sched_process_exit(tool, event, sample, evsel, machine);
tools/perf/builtin-inject.c
1083
struct machine *machine)
tools/perf/builtin-inject.c
1105
build_id__mark_dso_hit(tool, event_sw, &sample_sw, evsel, machine);
tools/perf/builtin-inject.c
1106
return perf_event__repipe(tool, event_sw, &sample_sw, machine);
tools/perf/builtin-inject.c
1127
struct machine *machine __maybe_unused)
tools/perf/builtin-inject.c
1292
struct machine *machine __maybe_unused)
tools/perf/builtin-inject.c
1374
struct machine *machine = &session->machines.host;
tools/perf/builtin-inject.c
1378
evlist, machine, from);
tools/perf/builtin-inject.c
1421
struct machine *machine __maybe_unused)
tools/perf/builtin-inject.c
1430
struct machine *machine = perf_session__findnew_machine(inject->session, machine_pid);
tools/perf/builtin-inject.c
1443
if (!machine)
tools/perf/builtin-inject.c
1448
return perf_event__synthesize_build_id(&inject->tool, &synth_sample, machine,
tools/perf/builtin-inject.c
148
struct machine *machine,
tools/perf/builtin-inject.c
1481
struct machine *machine __maybe_unused)
tools/perf/builtin-inject.c
155
struct machine *machine,
tools/perf/builtin-inject.c
1845
struct machine *machine)
tools/perf/builtin-inject.c
1854
return perf_event__repipe(tool, event, sample, machine);
tools/perf/builtin-inject.c
1937
struct machine *machine)
tools/perf/builtin-inject.c
1966
return host__repipe(tool, event, sample, machine);
tools/perf/builtin-inject.c
1992
struct machine *machine __maybe_unused)
tools/perf/builtin-inject.c
303
struct machine *machine __maybe_unused)
tools/perf/builtin-inject.c
311
struct machine *machine __maybe_unused)
tools/perf/builtin-inject.c
319
struct machine *machine __maybe_unused)
tools/perf/builtin-inject.c
361
struct machine *machine);
tools/perf/builtin-inject.c
367
struct machine *machine)
tools/perf/builtin-inject.c
374
return f(tool, event, sample, evsel, machine);
tools/perf/builtin-inject.c
377
build_id__mark_dso_hit(tool, event, sample, evsel, machine);
tools/perf/builtin-inject.c
392
struct machine *machine)
tools/perf/builtin-inject.c
417
thread = machine__find_thread(machine, sample->tid, sample->pid);
tools/perf/builtin-inject.c
442
if (machine__kernel_ip(machine, node->ip))
tools/perf/builtin-inject.c
473
const struct dso_id *id, struct machine *machine)
tools/perf/builtin-inject.c
481
thread = machine__findnew_thread(machine, pid, tid);
tools/perf/builtin-inject.c
501
dso = machine__findnew_vdso(machine, thread);
tools/perf/builtin-inject.c
503
dso = machine__findnew_dso_id(machine, filename, id);
tools/perf/builtin-inject.c
542
struct machine *machine,
tools/perf/builtin-inject.c
551
struct machine *machine))
tools/perf/builtin-inject.c
563
ret = jit_process(inject->session, &inject->output, machine,
tools/perf/builtin-inject.c
574
dso = findnew_dso(pid, tid, filename, dso_id, machine);
tools/perf/builtin-inject.c
583
dso = findnew_dso(pid, tid, filename, dso_id, machine);
tools/perf/builtin-inject.c
592
tool__inject_build_id(tool, sample, machine, evsel,
tools/perf/builtin-inject.c
610
err = perf_event_process(tool, event, sample, machine);
tools/perf/builtin-inject.c
622
dso = findnew_dso(pid, tid, filename, dso_id, machine);
tools/perf/builtin-inject.c
626
!tool__inject_mmap2_build_id(tool, sample, machine, evsel,
tools/perf/builtin-inject.c
641
return perf_event__repipe(tool, event, sample, machine);
tools/perf/builtin-inject.c
647
struct machine *machine)
tools/perf/builtin-inject.c
650
tool, event, sample, machine,
tools/perf/builtin-inject.c
661
struct machine *machine)
tools/perf/builtin-inject.c
677
tool, event, sample, machine,
tools/perf/builtin-inject.c
688
struct machine *machine)
tools/perf/builtin-inject.c
692
err = perf_event__process_fork(tool, event, sample, machine);
tools/perf/builtin-inject.c
693
perf_event__repipe(tool, event, sample, machine);
tools/perf/builtin-inject.c
701
struct machine *machine)
tools/perf/builtin-inject.c
705
err = perf_event__process_comm(tool, event, sample, machine);
tools/perf/builtin-inject.c
706
perf_event__repipe(tool, event, sample, machine);
tools/perf/builtin-inject.c
714
struct machine *machine)
tools/perf/builtin-inject.c
716
int err = perf_event__process_namespaces(tool, event, sample, machine);
tools/perf/builtin-inject.c
718
perf_event__repipe(tool, event, sample, machine);
tools/perf/builtin-inject.c
726
struct machine *machine)
tools/perf/builtin-inject.c
730
err = perf_event__process_exit(tool, event, sample, machine);
tools/perf/builtin-inject.c
731
perf_event__repipe(tool, event, sample, machine);
tools/perf/builtin-inject.c
839
struct machine *machine,
tools/perf/builtin-inject.c
862
err = perf_event__synthesize_build_id(tool, sample, machine,
tools/perf/builtin-inject.c
876
struct machine *machine,
tools/perf/builtin-inject.c
898
err = perf_event__synthesize_mmap2_build_id(tool, sample, machine,
tools/perf/builtin-inject.c
916
struct machine *machine,
tools/perf/builtin-inject.c
946
tool__inject_build_id(tool, sample, machine,
tools/perf/builtin-inject.c
957
perf_event__synthesize_mmap2_build_id(tool, sample, machine,
tools/perf/builtin-inject.c
978
struct machine *machine;
tools/perf/builtin-inject.c
987
return mark_dso_hit(args->inject, args->tool, args->sample, args->machine,
tools/perf/builtin-inject.c
994
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
1004
struct machine *machine = &session->machines.host;
tools/perf/builtin-kmem.c
1024
sym = machine__find_kernel_symbol(machine, addr, &map);
tools/perf/builtin-kmem.c
1065
struct machine *machine = &session->machines.host;
tools/perf/builtin-kmem.c
1088
sym = machine__find_kernel_symbol(machine, data->callsite, &map);
tools/perf/builtin-kmem.c
1114
struct machine *machine = &session->machines.host;
tools/perf/builtin-kmem.c
1130
sym = machine__find_kernel_symbol(machine, data->callsite, &map);
tools/perf/builtin-kmem.c
350
struct machine *machine = &kmem_session->machines.host;
tools/perf/builtin-kmem.c
363
kernel_map = machine__kernel_map(machine);
tools/perf/builtin-kmem.c
400
struct machine *machine = &kmem_session->machines.host;
tools/perf/builtin-kmem.c
411
al.thread = machine__findnew_thread(machine, sample->pid, sample->tid);
tools/perf/builtin-kmem.c
964
struct machine *machine)
tools/perf/builtin-kmem.c
967
struct thread *thread = machine__findnew_thread(machine, sample->pid,
tools/perf/builtin-kvm.c
1115
struct machine *machine __maybe_unused)
tools/perf/builtin-kvm.c
1137
struct machine *machine)
tools/perf/builtin-kvm.c
1147
if (machine__resolve(machine, &kvm->al, sample) < 0) {
tools/perf/builtin-kvm.c
1152
thread = machine__findnew_thread(machine, sample->pid, sample->tid);
tools/perf/builtin-kvm.c
926
struct machine *machine = maps__machine(thread__maps(thread));
tools/perf/builtin-kvm.c
927
uint16_t e_machine = thread__e_machine(thread, machine, /*e_flags=*/NULL);
tools/perf/builtin-kwork.c
1011
struct machine *machine __maybe_unused)
tools/perf/builtin-kwork.c
1044
struct machine *machine)
tools/perf/builtin-kwork.c
1050
evsel, sample, machine);
tools/perf/builtin-kwork.c
1058
struct machine *machine)
tools/perf/builtin-kwork.c
1064
evsel, sample, machine);
tools/perf/builtin-kwork.c
1072
struct machine *machine)
tools/perf/builtin-kwork.c
1078
evsel, sample, machine);
tools/perf/builtin-kwork.c
1139
struct machine *machine __maybe_unused)
tools/perf/builtin-kwork.c
1175
struct machine *machine)
tools/perf/builtin-kwork.c
1181
evsel, sample, machine);
tools/perf/builtin-kwork.c
1189
struct machine *machine)
tools/perf/builtin-kwork.c
1195
evsel, sample, machine);
tools/perf/builtin-kwork.c
1203
struct machine *machine)
tools/perf/builtin-kwork.c
1209
evsel, sample, machine);
tools/perf/builtin-kwork.c
1239
struct machine *machine)
tools/perf/builtin-kwork.c
1249
machine__resolve_kernel_addr(machine, &function_addr, &modp);
tools/perf/builtin-kwork.c
1274
struct machine *machine)
tools/perf/builtin-kwork.c
1280
evsel, sample, machine);
tools/perf/builtin-kwork.c
1307
struct machine *machine __maybe_unused)
tools/perf/builtin-kwork.c
1953
struct machine *machine);
tools/perf/builtin-kwork.c
1959
struct machine *machine)
tools/perf/builtin-kwork.c
1966
err = f(tool, evsel, sample, machine);
tools/perf/builtin-kwork.c
453
struct machine *machine,
tools/perf/builtin-kwork.c
461
class->work_init(kwork, class, &key, src_type, evsel, sample, machine);
tools/perf/builtin-kwork.c
512
struct machine *machine,
tools/perf/builtin-kwork.c
519
class->work_init(kwork, class, &key, src_type, evsel, sample, machine);
tools/perf/builtin-kwork.c
604
struct machine *machine)
tools/perf/builtin-kwork.c
608
machine, NULL, true);
tools/perf/builtin-kwork.c
615
struct machine *machine)
tools/perf/builtin-kwork.c
622
machine, &work);
tools/perf/builtin-kwork.c
659
struct machine *machine)
tools/perf/builtin-kwork.c
663
machine, NULL, true);
tools/perf/builtin-kwork.c
670
struct machine *machine)
tools/perf/builtin-kwork.c
677
machine, &work);
tools/perf/builtin-kwork.c
692
struct machine *machine)
tools/perf/builtin-kwork.c
703
thread = machine__findnew_thread(machine, sample->pid, sample->pid);
tools/perf/builtin-kwork.c
818
struct machine *machine)
tools/perf/builtin-kwork.c
822
machine, NULL, true);
tools/perf/builtin-kwork.c
829
struct machine *machine)
tools/perf/builtin-kwork.c
836
machine, &work, true);
tools/perf/builtin-kwork.c
841
timehist_save_callchain(kwork, sample, evsel, machine);
tools/perf/builtin-kwork.c
850
struct machine *machine)
tools/perf/builtin-kwork.c
858
if (machine__resolve(machine, &al, sample) < 0) {
tools/perf/builtin-kwork.c
866
machine, &work);
tools/perf/builtin-kwork.c
901
struct machine *machine)
tools/perf/builtin-kwork.c
905
machine, NULL, true);
tools/perf/builtin-kwork.c
912
struct machine *machine)
tools/perf/builtin-kwork.c
920
machine, &work);
tools/perf/builtin-kwork.c
942
struct machine *machine)
tools/perf/builtin-kwork.c
949
machine, &work);
tools/perf/builtin-kwork.c
958
return top_entry_event(kwork, class, evsel, sample, machine);
tools/perf/builtin-kwork.c
965
struct machine *machine)
tools/perf/builtin-kwork.c
971
evsel, sample, machine);
tools/perf/builtin-kwork.c
978
struct machine *machine)
tools/perf/builtin-kwork.c
984
evsel, sample, machine);
tools/perf/builtin-lock.c
1022
sym = machine__find_kernel_symbol(machine, key, &kmap);
tools/perf/builtin-lock.c
1075
if (!match_callstack_filter(machine, callstack, max_stack_depth)) {
tools/perf/builtin-lock.c
1434
struct machine *machine)
tools/perf/builtin-lock.c
1437
struct thread *thread = machine__findnew_thread(machine, sample->pid,
tools/perf/builtin-lock.c
1670
sym = machine__find_kernel_symbol(con->machine, ip, &kmap);
tools/perf/builtin-lock.c
1723
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
849
struct machine *machine = &session->machines.host;
tools/perf/builtin-lock.c
858
thread = machine__findnew_thread(machine, -1, sample->pid);
tools/perf/builtin-lock.c
887
if (sym && !machine__is_lock_function(machine, node->ip)) {
tools/perf/builtin-lock.c
902
struct machine *machine = &session->machines.host;
tools/perf/builtin-lock.c
908
thread = machine__findnew_thread(machine, -1, sample->pid);
tools/perf/builtin-lock.c
934
if (node->ms.sym && machine__is_lock_function(machine, node->ip))
tools/perf/builtin-lock.c
977
struct machine *machine = &session->machines.host;
tools/perf/builtin-lock.c
989
map__load(machine__kernel_map(machine));
tools/perf/builtin-lock.c
994
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
259
struct machine *machine)
tools/perf/builtin-mem.c
261
return dump_raw_samples(tool, event, sample, machine);
tools/perf/builtin-record.c
1493
struct machine *machine)
tools/perf/builtin-record.c
1503
return build_id__mark_dso_hit(tool, event, sample, evsel, machine);
tools/perf/builtin-record.c
1537
static void perf_event__synthesize_guest_os(struct machine *machine, void *data)
tools/perf/builtin-record.c
1550
machine);
tools/perf/builtin-record.c
1553
" relocation symbol.\n", machine->pid);
tools/perf/builtin-record.c
1560
machine);
tools/perf/builtin-record.c
1563
" relocation symbol.\n", machine->pid);
tools/perf/builtin-record.c
203
struct perf_sample *sample, struct machine *machine);
tools/perf/builtin-record.c
205
struct perf_sample *sample, struct machine *machine);
tools/perf/builtin-record.c
2086
struct machine *machine = &session->machines.host;
tools/perf/builtin-record.c
209
struct machine *machine);
tools/perf/builtin-record.c
2106
process_synthesized_event, machine);
tools/perf/builtin-record.c
2113
session->evlist, machine);
tools/perf/builtin-record.c
2126
machine);
tools/perf/builtin-record.c
2132
machine);
tools/perf/builtin-record.c
2166
machine, opts);
tools/perf/builtin-record.c
2174
machine);
tools/perf/builtin-record.c
2190
err = __machine__synthesize_threads(machine, tool, &opts->target,
tools/perf/builtin-record.c
2652
struct machine *machine = &session->machines.host;
tools/perf/builtin-record.c
2656
event = malloc(sizeof(event->comm) + machine->id_hdr_size);
tools/perf/builtin-record.c
2671
machine);
tools/perf/builtin-record.c
2679
machine->id_hdr_size);
tools/perf/builtin-record.c
2691
machine);
tools/perf/builtin-record.c
3376
struct perf_sample *sample, struct machine *machine)
tools/perf/builtin-record.c
3384
return perf_event__process_mmap(tool, event, sample, machine);
tools/perf/builtin-record.c
3388
struct perf_sample *sample, struct machine *machine)
tools/perf/builtin-record.c
3397
return perf_event__process_mmap2(tool, event, sample, machine);
tools/perf/builtin-record.c
3403
struct machine *machine __maybe_unused)
tools/perf/builtin-record.c
629
struct machine *machine __maybe_unused)
tools/perf/builtin-record.c
640
struct machine *machine __maybe_unused)
tools/perf/builtin-record.c
645
ret = process_synthesized_event(tool, event, sample, machine);
tools/perf/builtin-record.c
975
static bool record__kcore_readable(struct machine *machine)
tools/perf/builtin-record.c
980
scnprintf(kcore, sizeof(kcore), "%s/proc/kcore", machine->root_dir);
tools/perf/builtin-record.c
991
static int record__kcore_copy(struct machine *machine, struct perf_data *data)
tools/perf/builtin-record.c
997
snprintf(from_dir, sizeof(from_dir), "%s/proc", machine->root_dir);
tools/perf/builtin-report.c
1006
parent = machine__find_thread(machine, -1, thread__ppid(a));
tools/perf/builtin-report.c
1011
parent = machine__find_thread(machine, -1, thread__ppid(b));
tools/perf/builtin-report.c
1037
struct machine *machine = &rep->session->machines.host;
tools/perf/builtin-report.c
1041
ret = machine__thread_list(machine, &tasks);
tools/perf/builtin-report.c
1045
list_sort(machine, &tasks, task_list_cmp);
tools/perf/builtin-report.c
1050
task__print_level(machine, task->thread, fp);
tools/perf/builtin-report.c
273
struct machine *machine)
tools/perf/builtin-report.c
294
if (machine__resolve(machine, &al, sample) < 0) {
tools/perf/builtin-report.c
353
struct machine *machine __maybe_unused)
tools/perf/builtin-report.c
788
struct machine *machine __maybe_unused)
tools/perf/builtin-report.c
799
struct machine *machine __maybe_unused)
tools/perf/builtin-report.c
904
static int thread_level(struct machine *machine, const struct thread *thread)
tools/perf/builtin-report.c
915
parent_thread = machine__find_thread(machine, -1, thread__ppid(thread));
tools/perf/builtin-report.c
920
res = 1 + thread_level(machine, parent_thread);
tools/perf/builtin-report.c
925
static void task__print_level(struct machine *machine, struct thread *thread, FILE *fp)
tools/perf/builtin-report.c
927
int level = thread_level(machine, thread);
tools/perf/builtin-report.c
949
struct machine *machine = priv;
tools/perf/builtin-report.c
976
level_a = thread_level(machine, a);
tools/perf/builtin-report.c
977
level_b = thread_level(machine, b);
tools/perf/builtin-report.c
981
struct thread *parent = machine__find_thread(machine, -1, thread__ppid(a));
tools/perf/builtin-report.c
992
struct thread *parent = machine__find_thread(machine, -1, thread__ppid(b));
tools/perf/builtin-sched.c
1139
struct machine *machine)
tools/perf/builtin-sched.c
1164
sched_out = machine__findnew_thread(machine, -1, prev_pid);
tools/perf/builtin-sched.c
1165
sched_in = machine__findnew_thread(machine, -1, next_pid);
tools/perf/builtin-sched.c
1209
struct machine *machine)
tools/perf/builtin-sched.c
1213
struct thread *thread = machine__findnew_thread(machine, -1, pid);
tools/perf/builtin-sched.c
1244
struct machine *machine)
tools/perf/builtin-sched.c
1253
wakee = machine__findnew_thread(machine, -1, pid);
tools/perf/builtin-sched.c
1305
struct machine *machine)
tools/perf/builtin-sched.c
1320
migrant = machine__findnew_thread(machine, -1, pid);
tools/perf/builtin-sched.c
133
struct perf_sample *sample, struct machine *machine);
tools/perf/builtin-sched.c
136
struct perf_sample *sample, struct machine *machine);
tools/perf/builtin-sched.c
139
struct perf_sample *sample, struct machine *machine);
tools/perf/builtin-sched.c
143
struct machine *machine);
tools/perf/builtin-sched.c
148
struct machine *machine);
tools/perf/builtin-sched.c
1524
struct machine *machine)
tools/perf/builtin-sched.c
1529
return sched->tp_handler->wakeup_event(sched, evsel, sample, machine);
tools/perf/builtin-sched.c
1537
struct machine *machine __maybe_unused)
tools/perf/builtin-sched.c
1548
map__findnew_thread(struct perf_sched *sched, struct machine *machine, pid_t pid, pid_t tid)
tools/perf/builtin-sched.c
1550
struct thread *thread = machine__findnew_thread(machine, pid, tid);
tools/perf/builtin-sched.c
1630
struct perf_sample *sample, struct machine *machine)
tools/perf/builtin-sched.c
1676
sched_in = map__findnew_thread(sched, machine, -1, next_pid);
tools/perf/builtin-sched.c
1677
sched_out = map__findnew_thread(sched, machine, -1, prev_pid);
tools/perf/builtin-sched.c
1796
struct machine *machine)
tools/perf/builtin-sched.c
1813
err = sched->tp_handler->switch_event(sched, evsel, sample, machine);
tools/perf/builtin-sched.c
1822
struct machine *machine)
tools/perf/builtin-sched.c
1827
return sched->tp_handler->runtime_event(sched, evsel, sample, machine);
tools/perf/builtin-sched.c
1835
struct machine *machine)
tools/perf/builtin-sched.c
1840
perf_event__process_fork(tool, event, sample, machine);
tools/perf/builtin-sched.c
1844
return sched->tp_handler->fork_event(sched, event, machine);
tools/perf/builtin-sched.c
1852
struct machine *machine)
tools/perf/builtin-sched.c
1857
return sched->tp_handler->migrate_task_event(sched, evsel, sample, machine);
tools/perf/builtin-sched.c
1865
struct machine *machine);
tools/perf/builtin-sched.c
1871
struct machine *machine)
tools/perf/builtin-sched.c
1877
err = f(tool, evsel, sample, machine);
tools/perf/builtin-sched.c
1886
struct machine *machine)
tools/perf/builtin-sched.c
1892
err = perf_event__process_comm(tool, event, sample, machine);
tools/perf/builtin-sched.c
1896
thread = machine__find_thread(machine, sample->pid, sample->tid);
tools/perf/builtin-sched.c
2330
struct machine *machine)
tools/perf/builtin-sched.c
2336
thread = machine__findnew_thread(machine, sample->pid, sample->pid);
tools/perf/builtin-sched.c
2504
struct machine *machine,
tools/perf/builtin-sched.c
2516
thread = machine__findnew_thread(machine, sample->pid,
tools/perf/builtin-sched.c
2523
save_task_callchain(sched, sample, evsel, machine);
tools/perf/builtin-sched.c
2597
struct machine *machine,
tools/perf/builtin-sched.c
2603
thread = machine__findnew_thread(machine, sample->pid, sample->tid);
tools/perf/builtin-sched.c
2635
struct machine *machine __maybe_unused)
tools/perf/builtin-sched.c
2644
struct machine *machine)
tools/perf/builtin-sched.c
2652
thread = machine__findnew_thread(machine, 0, pid);
tools/perf/builtin-sched.c
2668
timehist_print_wakeup_event(sched, evsel, sample, machine, thread);
tools/perf/builtin-sched.c
2677
struct machine *machine,
tools/perf/builtin-sched.c
2692
thread = machine__findnew_thread(machine, sample->pid, sample->tid);
tools/perf/builtin-sched.c
2733
struct machine *machine)
tools/perf/builtin-sched.c
2741
thread = machine__findnew_thread(machine, 0, pid);
tools/perf/builtin-sched.c
2757
machine, thread);
tools/perf/builtin-sched.c
2766
struct machine *machine)
tools/perf/builtin-sched.c
2776
thread = machine__findnew_thread(machine, -1, next_pid);
tools/perf/builtin-sched.c
2792
struct machine *machine)
tools/perf/builtin-sched.c
2804
if (machine__resolve(machine, &al, sample) < 0) {
tools/perf/builtin-sched.c
2812
timehist_update_task_prio(evsel, sample, machine);
tools/perf/builtin-sched.c
2814
thread = timehist_get_thread(sched, sample, machine, evsel);
tools/perf/builtin-sched.c
2930
struct machine *machine __maybe_unused)
tools/perf/builtin-sched.c
2932
return timehist_sched_change_event(tool, event, evsel, sample, machine);
tools/perf/builtin-sched.c
2938
struct machine *machine __maybe_unused)
tools/perf/builtin-sched.c
3078
struct machine *m = &session->machines.host;
tools/perf/builtin-sched.c
3182
struct machine *machine);
tools/perf/builtin-sched.c
3188
struct machine *machine)
tools/perf/builtin-sched.c
3202
err = f(tool, event, evsel, sample, machine);
tools/perf/builtin-sched.c
3747
struct machine *machine __maybe_unused)
tools/perf/builtin-sched.c
4632
struct machine *machine __maybe_unused)
tools/perf/builtin-sched.c
830
struct machine *machine __maybe_unused)
tools/perf/builtin-sched.c
852
struct machine *machine __maybe_unused)
tools/perf/builtin-sched.c
896
struct machine *machine)
tools/perf/builtin-sched.c
900
child = machine__findnew_thread(machine, event->fork.pid,
tools/perf/builtin-sched.c
902
parent = machine__findnew_thread(machine, event->fork.ppid,
tools/perf/builtin-script.c
1098
struct machine *machine, struct thread *thread,
tools/perf/builtin-script.c
1110
kernel = machine__kernel_ip(machine, start);
tools/perf/builtin-script.c
1122
if (kernel != machine__kernel_ip(machine, end)) {
tools/perf/builtin-script.c
1149
len = dso__data_read_offset(dso, machine, offset, (u8 *)buffer,
tools/perf/builtin-script.c
1229
int printed = fprintf_insn_asm(x->machine, x->thread, x->cpumode, x->is64bit,
tools/perf/builtin-script.c
1354
struct machine *machine, FILE *fp)
tools/perf/builtin-script.c
1374
x.machine = machine;
tools/perf/builtin-script.c
1385
machine, thread, &x.is64bit, &x.cpumode, false);
tools/perf/builtin-script.c
1405
len = grab_bb(buffer, start, end, machine, thread, &x.is64bit, &x.cpumode, false);
tools/perf/builtin-script.c
1410
len = grab_bb(buffer, start, end, machine, thread, &x.is64bit, &x.cpumode, false);
tools/perf/builtin-script.c
1469
len = grab_bb(buffer, start, end, machine, thread, &x.is64bit, &x.cpumode, true);
tools/perf/builtin-script.c
1474
machine, thread, &x.is64bit, &x.cpumode, false);
tools/perf/builtin-script.c
1623
struct machine *machine, FILE *fp,
tools/perf/builtin-script.c
1628
perf_sample__fetch_insn(sample, thread, machine);
tools/perf/builtin-script.c
1638
printed += sample__fprintf_insn_asm(sample, thread, machine, fp, al);
tools/perf/builtin-script.c
1641
printed += perf_sample__fprintf_brstackinsn(sample, evsel, thread, attr, machine, fp);
tools/perf/builtin-script.c
1665
struct machine *machine, FILE *fp)
tools/perf/builtin-script.c
1713
printed += perf_sample__fprintf_insn(sample, evsel, attr, thread, machine, fp, al);
tools/perf/builtin-script.c
2420
struct machine *machine)
tools/perf/builtin-script.c
2454
perf_sample__fprintf_bts(sample, evsel, thread, al, addr_al, machine, fp);
tools/perf/builtin-script.c
2488
struct cgroup *cgrp = cgroup__find(machine->env,
tools/perf/builtin-script.c
2517
thread__e_machine(thread, machine, &e_flags),
tools/perf/builtin-script.c
2524
thread__e_machine(thread, machine, &e_flags),
tools/perf/builtin-script.c
2538
perf_sample__fprintf_insn(sample, evsel, attr, thread, machine, fp, al);
tools/perf/builtin-script.c
2644
struct machine *machine)
tools/perf/builtin-script.c
2655
ret = dlfilter__filter_event_early(dlfilter, event, sample, evsel, machine, &al, &addr_al);
tools/perf/builtin-script.c
2681
if (!al.thread && machine__resolve(machine, &al, sample) < 0) {
tools/perf/builtin-script.c
2697
ret = dlfilter__filter_event(dlfilter, event, sample, evsel, machine, &al, &addr_al);
tools/perf/builtin-script.c
2715
process_event(scr, sample, evsel, &al, &addr_al, machine);
tools/perf/builtin-script.c
2728
struct machine *machine)
tools/perf/builtin-script.c
2763
if (machine__resolve(machine, &al, sample) < 0) {
tools/perf/builtin-script.c
2886
struct machine *machine,
tools/perf/builtin-script.c
2905
thread = machine__findnew_thread(machine, pid, tid);
tools/perf/builtin-script.c
2912
perf_event__fprintf(event, machine, stdout);
tools/perf/builtin-script.c
2920
struct perf_sample *sample, struct machine *machine,
tools/perf/builtin-script.c
2923
return print_event_with_time(tool, event, sample, machine, pid, tid, 0);
tools/perf/builtin-script.c
2929
struct machine *machine)
tools/perf/builtin-script.c
2931
if (perf_event__process_comm(tool, event, sample, machine) < 0)
tools/perf/builtin-script.c
2934
return print_event(tool, event, sample, machine, event->comm.pid,
tools/perf/builtin-script.c
2941
struct machine *machine)
tools/perf/builtin-script.c
2943
if (perf_event__process_namespaces(tool, event, sample, machine) < 0)
tools/perf/builtin-script.c
2946
return print_event(tool, event, sample, machine, event->namespaces.pid,
tools/perf/builtin-script.c
2953
struct machine *machine)
tools/perf/builtin-script.c
2955
if (perf_event__process_cgroup(tool, event, sample, machine) < 0)
tools/perf/builtin-script.c
2958
return print_event(tool, event, sample, machine, sample->pid,
tools/perf/builtin-script.c
2965
struct machine *machine)
tools/perf/builtin-script.c
2967
if (perf_event__process_fork(tool, event, sample, machine) < 0)
tools/perf/builtin-script.c
2970
return print_event_with_time(tool, event, sample, machine,
tools/perf/builtin-script.c
2977
struct machine *machine)
tools/perf/builtin-script.c
2980
if (print_event_with_time(tool, event, sample, machine, event->fork.pid,
tools/perf/builtin-script.c
2984
return perf_event__process_exit(tool, event, sample, machine);
tools/perf/builtin-script.c
2990
struct machine *machine)
tools/perf/builtin-script.c
2992
if (perf_event__process_mmap(tool, event, sample, machine) < 0)
tools/perf/builtin-script.c
2995
return print_event(tool, event, sample, machine, event->mmap.pid,
tools/perf/builtin-script.c
3002
struct machine *machine)
tools/perf/builtin-script.c
3004
if (perf_event__process_mmap2(tool, event, sample, machine) < 0)
tools/perf/builtin-script.c
3007
return print_event(tool, event, sample, machine, event->mmap2.pid,
tools/perf/builtin-script.c
3014
struct machine *machine)
tools/perf/builtin-script.c
3018
if (perf_event__process_switch(tool, event, sample, machine) < 0)
tools/perf/builtin-script.c
3022
scripting_ops->process_switch(event, sample, machine);
tools/perf/builtin-script.c
3027
return print_event(tool, event, sample, machine, sample->pid,
tools/perf/builtin-script.c
3047
struct machine *machine)
tools/perf/builtin-script.c
3049
return print_event(tool, event, sample, machine, sample->pid,
tools/perf/builtin-script.c
3057
struct machine *machine)
tools/perf/builtin-script.c
3060
scripting_ops->process_throttle(event, sample, machine);
tools/perf/builtin-script.c
3078
struct machine *machine)
tools/perf/builtin-script.c
3080
if (machine__process_ksymbol(machine, event, sample) < 0)
tools/perf/builtin-script.c
3083
return print_event(tool, event, sample, machine, sample->pid,
tools/perf/builtin-script.c
3099
struct machine *machine)
tools/perf/builtin-script.c
3101
if (perf_event__process_text_poke(tool, event, sample, machine) < 0)
tools/perf/builtin-script.c
3104
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
494
struct machine *machine)
tools/perf/builtin-timechart.c
513
if (machine__resolve(machine, &al, sample) < 0) {
tools/perf/builtin-timechart.c
578
struct machine *machine)
tools/perf/builtin-timechart.c
592
cat_backtrace(event, sample, machine));
tools/perf/builtin-top.c
1153
struct machine *machine;
tools/perf/builtin-top.c
1185
machine = &session->machines.host;
tools/perf/builtin-top.c
1191
machine = &session->machines.host;
tools/perf/builtin-top.c
1195
machine = perf_session__find_machine(session,
tools/perf/builtin-top.c
1208
machine = &session->machines.host;
tools/perf/builtin-top.c
1214
&sample, machine);
tools/perf/builtin-top.c
1221
machine__process_event(machine, event, &sample);
tools/perf/builtin-top.c
190
err ? "[unknown]" : uts.machine,
tools/perf/builtin-top.c
749
struct machine *machine)
tools/perf/builtin-top.c
754
if (!machine && perf_guest) {
tools/perf/builtin-top.c
768
if (!machine) {
tools/perf/builtin-top.c
778
if (machine__resolve(machine, &al, sample) < 0)
tools/perf/builtin-top.c
784
if (!machine->kptr_restrict_warned &&
tools/perf/builtin-top.c
797
machine->kptr_restrict_warned = true;
tools/perf/builtin-top.c
813
if (!machine->kptr_restrict_warned && !top->vmlinux_warned &&
tools/perf/builtin-trace.c
161
struct machine *host;
tools/perf/builtin-trace.c
1936
static int trace__process_event(struct trace *trace, struct machine *machine,
tools/perf/builtin-trace.c
1945
ret = machine__process_lost_event(machine, event, sample);
tools/perf/builtin-trace.c
1948
ret = machine__process_event(machine, event, sample);
tools/perf/builtin-trace.c
1958
struct machine *machine)
tools/perf/builtin-trace.c
1961
return trace__process_event(trace, machine, event, sample);
tools/perf/builtin-trace.c
1966
struct machine *machine = vmachine;
tools/perf/builtin-trace.c
1968
if (machine->kptr_restrict_warned)
tools/perf/builtin-trace.c
1975
machine->kptr_restrict_warned = true;
tools/perf/builtin-trace.c
3465
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
316
if (!strncmp(uname_buf.machine, "riscv", 5)) {
tools/perf/tests/code-reading.c
529
static int process_sample_event(struct machine *machine, struct evlist *evlist,
tools/perf/tests/code-reading.c
545
thread = machine__findnew_thread(machine, sample.pid, sample.tid);
tools/perf/tests/code-reading.c
560
static int process_event(struct machine *machine, struct evlist *evlist,
tools/perf/tests/code-reading.c
564
return process_sample_event(machine, evlist, event,
tools/perf/tests/code-reading.c
574
ret = machine__process_event(machine, event, NULL);
tools/perf/tests/code-reading.c
584
static int process_events(struct machine *machine, struct evlist *evlist,
tools/perf/tests/code-reading.c
597
ret = process_event(machine, evlist, event, tested_sections);
tools/perf/tests/code-reading.c
686
struct machine *machine;
tools/perf/tests/code-reading.c
714
machine = machine__new_host(&host_env);
tools/perf/tests/code-reading.c
716
ret = machine__create_kernel_maps(machine);
tools/perf/tests/code-reading.c
727
map = machine__kernel_map(machine);
tools/perf/tests/code-reading.c
752
perf_event__process, machine,
tools/perf/tests/code-reading.c
759
thread = machine__findnew_thread(machine, pid, pid);
tools/perf/tests/code-reading.c
831
ret = process_events(machine, evlist, &tested_sections);
tools/perf/tests/code-reading.c
849
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
196
err = process(&td->tool, event, &sample, td->machine);
tools/perf/tests/dlfilter-test.c
356
td->machine = machine__new_host(&host_env);
tools/perf/tests/dlfilter-test.c
401
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
18
struct machine *machine __maybe_unused)
tools/perf/tests/event_update.c
31
struct machine *machine __maybe_unused)
tools/perf/tests/event_update.c
49
struct machine *machine __maybe_unused)
tools/perf/tests/event_update.c
63
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
106
if (machine__resolve(machine, &al, &sample) < 0)
tools/perf/tests/hists_cumulate.c
164
typedef int (*test_fn_t)(struct evsel *, struct machine *);
tools/perf/tests/hists_cumulate.c
263
static int test1(struct evsel *evsel, struct machine *machine)
tools/perf/tests/hists_cumulate.c
298
setup_sorting(/*evlist=*/NULL, machine->env);
tools/perf/tests/hists_cumulate.c
301
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_cumulate.c
314
static int test2(struct evsel *evsel, struct machine *machine)
tools/perf/tests/hists_cumulate.c
445
setup_sorting(/*evlist=*/NULL, machine->env);
tools/perf/tests/hists_cumulate.c
448
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_cumulate.c
462
static int test3(struct evsel *evsel, struct machine *machine)
tools/perf/tests/hists_cumulate.c
503
setup_sorting(/*evlist=*/NULL, machine->env);
tools/perf/tests/hists_cumulate.c
506
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_cumulate.c
519
static int test4(struct evsel *evsel, struct machine *machine)
tools/perf/tests/hists_cumulate.c
687
setup_sorting(/*evlist=*/NULL, machine->env);
tools/perf/tests/hists_cumulate.c
692
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_cumulate.c
709
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
137
machine = setup_fake_machine(&machines);
tools/perf/tests/hists_filter.c
138
if (!machine)
tools/perf/tests/hists_filter.c
142
machine__fprintf(machine, stderr);
tools/perf/tests/hists_filter.c
145
if (setup_sorting(evlist, machine->env) < 0)
tools/perf/tests/hists_filter.c
149
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
309
machine = setup_fake_machine(&machines);
tools/perf/tests/hists_link.c
310
if (!machine)
tools/perf/tests/hists_link.c
314
machine__fprintf(machine, stderr);
tools/perf/tests/hists_link.c
317
if (setup_sorting(evlist, machine->env) < 0)
tools/perf/tests/hists_link.c
321
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
129
typedef int (*test_fn_t)(struct evsel *, struct machine *);
tools/perf/tests/hists_output.c
138
static int test1(struct evsel *evsel, struct machine *machine)
tools/perf/tests/hists_output.c
149
setup_sorting(/*evlist=*/NULL, machine->env);
tools/perf/tests/hists_output.c
166
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_output.c
240
static int test2(struct evsel *evsel, struct machine *machine)
tools/perf/tests/hists_output.c
251
setup_sorting(/*evlist=*/NULL, machine->env);
tools/perf/tests/hists_output.c
266
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_output.c
296
static int test3(struct evsel *evsel, struct machine *machine)
tools/perf/tests/hists_output.c
307
setup_sorting(/*evlist=*/NULL, machine->env);
tools/perf/tests/hists_output.c
320
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_output.c
370
static int test4(struct evsel *evsel, struct machine *machine)
tools/perf/tests/hists_output.c
381
setup_sorting(/*evlist=*/NULL, machine->env);
tools/perf/tests/hists_output.c
398
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_output.c
472
static int test5(struct evsel *evsel, struct machine *machine)
tools/perf/tests/hists_output.c
483
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
501
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_output.c
595
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
72
if (machine__resolve(machine, &al, &sample) < 0)
tools/perf/tests/kallsyms-split.c
100
struct machine m;
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
18
struct machine;
tools/perf/tests/thread-map.c
66
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;
tools/perf/util/annotate.c
1000
arch = arch__find(e_machine, e_flags, machine->env ? machine->env->cpuid : NULL);
tools/perf/util/annotate.c
989
struct machine *machine;
tools/perf/util/annotate.c
998
machine = maps__machine(thread__maps(thread));
tools/perf/util/annotate.c
999
e_machine = thread__e_machine(thread, machine, &e_flags);
tools/perf/util/arm-spe.c
1131
spe->kernel_start = machine__kernel_start(spe->machine);
tools/perf/util/arm-spe.c
1383
return machine__set_current_tid(spe->machine, cpu, pid, tid);
tools/perf/util/arm-spe.c
1920
spe->machine = &session->machines.host; /* No kvm support */
tools/perf/util/arm-spe.c
291
tid = machine__get_current_tid(spe->machine, speq->cpu);
tools/perf/util/arm-spe.c
299
speq->thread = machine__find_thread(spe->machine, -1,
tools/perf/util/arm-spe.c
313
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/bpf-event.c
418
struct machine *machine)
tools/perf/util/bpf-event.c
424
event = zalloc(event_size + machine->id_hdr_size);
tools/perf/util/bpf-event.c
428
memset((void *)event + event->header.size, 0, machine->id_hdr_size);
tools/perf/util/bpf-event.c
429
event->header.size += machine->id_hdr_size;
tools/perf/util/bpf-event.c
43
static int machine__process_bpf_event_load(struct machine *machine,
tools/perf/util/bpf-event.c
433
err = perf_tool__process_synth_event(tool, event, machine,
tools/perf/util/bpf-event.c
464
struct machine *machine __maybe_unused)
tools/perf/util/bpf-event.c
478
struct machine *machine;
tools/perf/util/bpf-event.c
48
struct perf_env *env = machine->env;
tools/perf/util/bpf-event.c
491
ctx->process, ctx->machine);
tools/perf/util/bpf-event.c
511
.machine = &session->machines.host,
tools/perf/util/bpf-event.c
530
struct machine *machine,
tools/perf/util/bpf-event.c
629
memset((void *)event + event->header.size, 0, machine->id_hdr_size);
tools/perf/util/bpf-event.c
630
event->header.size += machine->id_hdr_size;
tools/perf/util/bpf-event.c
632
machine, process);
tools/perf/util/bpf-event.c
647
memset((void *)event + event->header.size, 0, machine->id_hdr_size);
tools/perf/util/bpf-event.c
648
event->header.size += machine->id_hdr_size;
tools/perf/util/bpf-event.c
65
struct map *map = maps__find(machine__kernel_maps(machine), addr);
tools/perf/util/bpf-event.c
676
machine, process);
tools/perf/util/bpf-event.c
683
machine);
tools/perf/util/bpf-event.c
697
struct machine *machine;
tools/perf/util/bpf-event.c
704
struct machine *machine = data->machine;
tools/perf/util/bpf-event.c
724
memset((void *) event + event->header.size, 0, machine->id_hdr_size);
tools/perf/util/bpf-event.c
725
event->header.size += machine->id_hdr_size;
tools/perf/util/bpf-event.c
727
return perf_tool__process_synth_event(data->tool, event, machine,
tools/perf/util/bpf-event.c
766
struct machine *machine,
tools/perf/util/bpf-event.c
779
event = malloc(sizeof(event->bpf) + KSYM_NAME_LEN + machine->id_hdr_size);
tools/perf/util/bpf-event.c
80
int machine__process_bpf(struct machine *machine, union perf_event *event,
tools/perf/util/bpf-event.c
805
machine, fd,
tools/perf/util/bpf-event.c
823
.machine = machine,
tools/perf/util/bpf-event.c
88
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
191
map__load(machine__kernel_map(con->machine));
tools/perf/util/bpf_lock_contention.c
247
sym = machine__find_kernel_symbol_by_name(con->machine,
tools/perf/util/bpf_lock_contention.c
276
sym = machine__find_kernel_symbol_by_name(con->machine,
tools/perf/util/bpf_lock_contention.c
570
struct machine *machine = con->machine;
tools/perf/util/bpf_lock_contention.c
579
struct thread *t = machine__findnew_thread(machine, /*pid=*/-1, pid);
tools/perf/util/bpf_lock_contention.c
602
sym = machine__find_kernel_symbol(machine, key->lock_addr_or_cgroup, &kmap);
tools/perf/util/bpf_lock_contention.c
638
while (machine__is_lock_function(machine, stack_trace[idx]) &&
tools/perf/util/bpf_lock_contention.c
643
sym = machine__find_kernel_symbol(machine, addr, &kmap);
tools/perf/util/bpf_lock_contention.c
724
struct machine *machine = con->machine;
tools/perf/util/bpf_lock_contention.c
743
struct thread *idle = machine__findnew_thread(machine,
tools/perf/util/bpf_lock_contention.c
770
if (!match_callstack_filter(machine, stack_trace, con->max_stack)) {
tools/perf/util/build-id.c
314
struct machine *machine;
tools/perf/util/build-id.c
336
name = args->machine->mmap_name;
tools/perf/util/build-id.c
344
return write_buildid(name, name_len, &dso__id(dso)->build_id, args->machine->pid,
tools/perf/util/build-id.c
348
static int machine__write_buildid_table(struct machine *machine, struct feat_fd *fd)
tools/perf/util/build-id.c
351
.machine = machine,
tools/perf/util/build-id.c
357
if (!machine__is_host(machine)) {
tools/perf/util/build-id.c
362
return dsos__for_each_dso(&machine->dsos, machine__write_buildid_table_cb, &args);
tools/perf/util/build-id.c
376
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
871
static int dso__cache_build_id(struct dso *dso, struct machine *machine,
tools/perf/util/build-id.c
887
name = machine->mmap_name;
tools/perf/util/build-id.c
890
if (!machine__is_host(machine)) {
tools/perf/util/build-id.c
891
if (*machine->root_dir) {
tools/perf/util/build-id.c
892
root_dir = machine->root_dir;
tools/perf/util/build-id.c
924
struct machine *pos = rb_entry(nd, struct machine, rb_node);
tools/perf/util/build-id.c
948
static bool machine__read_build_ids(struct machine *machine, bool with_hits)
tools/perf/util/build-id.c
950
return dsos__read_build_ids(&machine->dsos, with_hits);
tools/perf/util/build-id.c
960
struct machine *pos = rb_entry(nd, struct machine, rb_node);
tools/perf/util/build-id.h
38
struct machine *machine);
tools/perf/util/build-id.h
42
struct machine *machine);
tools/perf/util/callchain.c
1151
struct machine *machine = NULL;
tools/perf/util/callchain.c
1154
machine = maps__machine(thread__maps(node->ms.thread));
tools/perf/util/callchain.c
1168
if (maps__equal(thread__maps(al->thread), machine__kernel_maps(machine))) {
tools/perf/util/callchain.c
1169
if (machine__is_host(machine)) {
tools/perf/util/callchain.c
1177
if (machine__is_host(machine)) {
tools/perf/util/capstone.c
140
static int capstone_init(struct machine *machine, csh *cs_handle, bool is64,
tools/perf/util/capstone.c
146
if (machine__is(machine, "x86_64") && is64) {
tools/perf/util/capstone.c
149
} else if (machine__normalized_is(machine, "x86")) {
tools/perf/util/capstone.c
152
} else if (machine__normalized_is(machine, "arm64")) {
tools/perf/util/capstone.c
155
} else if (machine__normalized_is(machine, "arm")) {
tools/perf/util/capstone.c
158
} else if (machine__normalized_is(machine, "s390")) {
tools/perf/util/capstone.c
170
if (machine__normalized_is(machine, "x86")) {
tools/perf/util/capstone.c
215
ssize_t capstone__fprintf_insn_asm(struct machine *machine __maybe_unused,
tools/perf/util/capstone.c
230
ret = capstone_init(machine, &cs_handle, is64bit, true);
tools/perf/util/capstone.c
236
if (machine__normalized_is(machine, "x86"))
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
1029
static struct machine *cs_etm__get_machine(struct cs_etm_queue *etmq,
tools/perf/util/cs-etm.c
1065
struct machine *machine = cs_etm__get_machine(etmq, el);
tools/perf/util/cs-etm.c
1067
if (address >= machine__kernel_start(machine)) {
tools/perf/util/cs-etm.c
1068
if (machine__is_host(machine))
tools/perf/util/cs-etm.c
1073
if (machine__is_host(machine))
tools/perf/util/cs-etm.c
1479
struct machine *machine = cs_etm__get_machine(etmq, el);
tools/perf/util/cs-etm.c
1483
tidq->thread = machine__find_thread(machine, -1, tid);
tools/perf/util/cs-etm.c
1488
tidq->thread = machine__idle_thread(machine);
tools/perf/util/data-convert-bt.c
807
struct machine *machine __maybe_unused)
tools/perf/util/data-convert-bt.c
890
struct machine *machine) \
tools/perf/util/data-convert-bt.c
919
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
147
struct machine *machine)
tools/perf/util/db-export.c
155
return dbe->export_dso(dbe, dso, machine);
tools/perf/util/db-export.c
210
struct machine *machine,
tools/perf/util/db-export.c
215
u64 kernel_start = machine__kernel_start(machine);
tools/perf/util/db-export.c
296
struct machine *machine, struct comm **comm_ptr)
tools/perf/util/db-export.c
307
err = db_export__thread(dbe, main_thread, machine, main_thread);
tools/perf/util/db-export.c
314
comm = machine__thread_exec_comm(machine, main_thread);
tools/perf/util/db-export.c
330
err = db_export__thread(dbe, thread, machine, main_thread);
tools/perf/util/db-export.c
361
struct machine *machine = NULL;
tools/perf/util/db-export.c
365
machine = maps__machine(thread__maps(thread));
tools/perf/util/db-export.c
366
if (!machine)
tools/perf/util/db-export.c
373
err = db_export__machine(dbe, machine);
tools/perf/util/db-export.c
377
main_thread = thread__main_thread(machine, thread);
tools/perf/util/db-export.c
379
err = db_export__threads(dbe, thread, main_thread, machine, &comm);
tools/perf/util/db-export.c
393
struct call_path *cp = call_path_from_sample(dbe, machine,
tools/perf/util/db-export.c
49
int db_export__machine(struct db_export *dbe, struct machine *machine)
tools/perf/util/db-export.c
51
if (machine->db_id)
tools/perf/util/db-export.c
532
static int db_export__pid_tid(struct db_export *dbe, struct machine *machine,
tools/perf/util/db-export.c
536
struct thread *thread = machine__find_thread(machine, pid, tid);
tools/perf/util/db-export.c
54
machine->db_id = ++dbe->machine_last_db_id;
tools/perf/util/db-export.c
545
main_thread = thread__main_thread(machine, thread);
tools/perf/util/db-export.c
547
err = db_export__threads(dbe, thread, main_thread, machine, comm_ptr);
tools/perf/util/db-export.c
559
struct perf_sample *sample, struct machine *machine)
tools/perf/util/db-export.c
57
return dbe->export_machine(dbe, machine);
tools/perf/util/db-export.c
574
err = db_export__machine(dbe, machine);
tools/perf/util/db-export.c
578
err = db_export__pid_tid(dbe, machine, sample->pid, sample->tid,
tools/perf/util/db-export.c
587
err = db_export__pid_tid(dbe, machine, pid, tid, &th_b_id,
tools/perf/util/db-export.c
615
return dbe->export_context_switch(dbe, db_id, machine, sample,
tools/perf/util/db-export.c
63
struct machine *machine, struct thread *main_thread)
tools/perf/util/db-export.c
77
machine);
tools/perf/util/db-export.h
108
struct perf_sample *sample, struct machine *machine);
tools/perf/util/db-export.h
14
struct machine;
tools/perf/util/db-export.h
43
int (*export_machine)(struct db_export *dbe, struct machine *machine);
tools/perf/util/db-export.h
45
u64 main_thread_db_id, struct machine *machine);
tools/perf/util/db-export.h
51
struct machine *machine);
tools/perf/util/db-export.h
61
struct machine *machine,
tools/perf/util/db-export.h
83
int db_export__machine(struct db_export *dbe, struct machine *machine);
tools/perf/util/db-export.h
85
struct machine *machine, struct thread *main_thread);
tools/perf/util/db-export.h
93
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
1010
struct machine *machine,
tools/perf/util/dso.c
1030
*ret = file_read(dso, machine, cache_offset, cache->data);
tools/perf/util/dso.c
1051
struct machine *machine,
tools/perf/util/dso.c
1057
return cache ? cache : dso_cache__populate(dso, machine, offset, ret);
tools/perf/util/dso.c
1060
static ssize_t dso_cache_io(struct dso *dso, struct machine *machine,
tools/perf/util/dso.c
1066
cache = dso_cache__find(dso, machine, offset, &ret);
tools/perf/util/dso.c
1078
static ssize_t cached_io(struct dso *dso, struct machine *machine,
tools/perf/util/dso.c
1087
ret = dso_cache_io(dso, machine, offset, p, size, out);
tools/perf/util/dso.c
1107
static int file_size(struct dso *dso, struct machine *machine)
tools/perf/util/dso.c
1118
try_to_open_dso(dso, machine);
tools/perf/util/dso.c
1139
int dso__data_file_size(struct dso *dso, struct machine *machine)
tools/perf/util/dso.c
1150
return file_size(dso, machine);
tools/perf/util/dso.c
1160
off_t dso__data_size(struct dso *dso, struct machine *machine)
tools/perf/util/dso.c
1162
if (dso__data_file_size(dso, machine))
tools/perf/util/dso.c
1169
static ssize_t data_read_write_offset(struct dso *dso, struct machine *machine,
tools/perf/util/dso.c
1173
if (dso__data_file_size(dso, machine))
tools/perf/util/dso.c
1183
return cached_io(dso, machine, offset, data, size, out);
tools/perf/util/dso.c
1197
ssize_t dso__data_read_offset(struct dso *dso, struct machine *machine,
tools/perf/util/dso.c
1203
return data_read_write_offset(dso, machine, offset, data, size, true);
tools/perf/util/dso.c
1291
uint16_t dso__e_machine(struct dso *dso, struct machine *machine, uint32_t *e_flags)
tools/perf/util/dso.c
1338
try_to_open_dso(dso, machine);
tools/perf/util/dso.c
1360
struct machine *machine, u64 addr,
tools/perf/util/dso.c
1365
return dso__data_read_offset(dso, machine, offset, data, size);
tools/perf/util/dso.c
1378
ssize_t dso__data_write_cache_offs(struct dso *dso, struct machine *machine,
tools/perf/util/dso.c
1386
return data_read_write_offset(dso, machine, offset, data, size, false);
tools/perf/util/dso.c
1401
struct machine *machine, u64 addr,
tools/perf/util/dso.c
1406
return dso__data_write_cache_offs(dso, machine, offset, data, size);
tools/perf/util/dso.c
1422
struct dso *machine__findnew_kernel(struct machine *machine, const char *name,
tools/perf/util/dso.c
1428
struct dso *dso = machine__findnew_dso(machine, name);
tools/perf/util/dso.c
1762
void dso__read_running_kernel_build_id(struct dso *dso, struct machine *machine)
tools/perf/util/dso.c
1767
if (machine__is_default_guest(machine))
tools/perf/util/dso.c
1769
sprintf(path, "%s/sys/kernel/notes", machine->root_dir);
tools/perf/util/dso.c
1820
enum dso_type dso__type(struct dso *dso, struct machine *machine)
tools/perf/util/dso.c
1825
if (dso__data_get_fd(dso, machine, &fd)) {
tools/perf/util/dso.c
477
struct machine *machine)
tools/perf/util/dso.c
479
if (machine__is_host(machine))
tools/perf/util/dso.c
611
static int __open_dso(struct dso *dso, struct machine *machine)
tools/perf/util/dso.c
620
name = dso__get_filename(dso, machine ? machine->root_dir : "", &decomp);
tools/perf/util/dso.c
643
static int open_dso(struct dso *dso, struct machine *machine)
tools/perf/util/dso.c
654
fd = __open_dso(dso, machine);
tools/perf/util/dso.c
774
static void try_to_open_dso(struct dso *dso, struct machine *machine)
tools/perf/util/dso.c
789
dso_data->fd = open_dso(dso, machine);
tools/perf/util/dso.c
796
dso_data->fd = open_dso(dso, machine);
tools/perf/util/dso.c
817
bool dso__data_get_fd(struct dso *dso, struct machine *machine, int *fd)
tools/perf/util/dso.c
825
try_to_open_dso(dso, machine);
tools/perf/util/dso.c
984
static ssize_t file_read(struct dso *dso, struct machine *machine,
tools/perf/util/dso.c
995
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
870
uint16_t dso__e_machine(struct dso *dso, struct machine *machine, uint32_t *e_flags);
tools/perf/util/dso.h
872
struct machine *machine, u64 addr,
tools/perf/util/dso.h
875
ssize_t dso__data_write_cache_offs(struct dso *dso, struct machine *machine,
tools/perf/util/dso.h
878
struct machine *machine, u64 addr,
tools/perf/util/dso.h
882
struct dso *machine__findnew_kernel(struct machine *machine, const char *name,
tools/perf/util/dso.h
925
enum dso_type dso__type(struct dso *dso, struct machine *machine);
tools/perf/util/dsos.c
432
struct machine *machine,
tools/perf/util/dsos.c
457
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
451
env->arch = strdup(uts.machine);
tools/perf/util/env.c
628
static struct utsname uts = { .machine[0] = '\0', };
tools/perf/util/env.c
629
if (uts.machine[0] == '\0' && uname(&uts) < 0)
tools/perf/util/env.c
631
arch_name = uts.machine;
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
845
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
2465
struct machine *machine;
tools/perf/util/header.c
2470
machine = perf_session__findnew_machine(session, bev->pid);
tools/perf/util/header.c
2471
if (!machine)
tools/perf/util/header.c
2491
dso = machine__findnew_dso(machine, filename);
tools/perf/util/header.c
2508
dso__set_module_info(dso, &m, machine);
tools/perf/util/header.c
379
return do_write_string(ff, 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
322
struct machine *machine = btsq->bts->machine;
tools/perf/util/intel-bts.c
329
thread = machine__find_thread(machine, -1, btsq->tid);
tools/perf/util/intel-bts.c
333
len = thread__memcpy(thread, machine, buf, ip, INTEL_PT_INSN_BUF_SZ, &x86_64);
tools/perf/util/intel-bts.c
394
if (!machine__kernel_ip(btsq->bts->machine, branch->from) &&
tools/perf/util/intel-bts.c
395
machine__kernel_ip(btsq->bts->machine, branch->to) &&
tools/perf/util/intel-bts.c
458
thread = machine__find_thread(btsq->bts->machine, -1,
tools/perf/util/intel-bts.c
463
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
849
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
1434
struct machine *machine;
tools/perf/util/intel-pt.c
1442
machine = machines__find(machines, machine_pid);
tools/perf/util/intel-pt.c
1443
if (!machine)
tools/perf/util/intel-pt.c
1446
if (ptq->guest_machine != machine) {
tools/perf/util/intel-pt.c
1451
ptq->unknown_guest_thread = machine__find_thread(machine, 0, 0);
tools/perf/util/intel-pt.c
1454
ptq->guest_machine = machine;
tools/perf/util/intel-pt.c
1461
tid = machine__get_current_tid(machine, vcpu);
tools/perf/util/intel-pt.c
1467
ptq->guest_thread = machine__find_thread(machine, -1, tid);
tools/perf/util/intel-pt.c
1486
ptq->tid = machine__get_current_tid(pt->machine, ptq->cpu);
tools/perf/util/intel-pt.c
1493
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
2761
err = machine__set_current_tid(pt->machine, ptq->cpu, -1, tid);
tools/perf/util/intel-pt.c
2963
struct machine *machine = pt->machine;
tools/perf/util/intel-pt.c
2972
map = machine__kernel_map(machine);
tools/perf/util/intel-pt.c
3128
pt->kernel_start = machine__kernel_start(pt->machine);
tools/perf/util/intel-pt.c
3292
struct machine *m = ptq->pt->machine;
tools/perf/util/intel-pt.c
3440
return machine__set_current_tid(pt->machine, cpu, -1, tid);
tools/perf/util/intel-pt.c
3476
if (machine__get_current_tid(pt->machine, cpu) == tid)
tools/perf/util/intel-pt.c
3479
return machine__set_current_tid(pt->machine, cpu, pid, tid);
tools/perf/util/intel-pt.c
3488
struct machine *machine = machines__find(machines, sample->machine_pid);
tools/perf/util/intel-pt.c
3503
if (!machine)
tools/perf/util/intel-pt.c
3506
return machine__set_current_tid(machine, sample->vcpu, sample->pid, sample->tid);
tools/perf/util/intel-pt.c
3544
return machine__set_current_tid(pt->machine, cpu, pid, tid);
tools/perf/util/intel-pt.c
3559
return machine__set_current_tid(pt->machine, sample->cpu,
tools/perf/util/intel-pt.c
3570
struct perf_env *env = pt->machine->env;
tools/perf/util/intel-pt.c
3652
struct machine *machine = pt->machine;
tools/perf/util/intel-pt.c
3676
e = intel_pt_cache_lookup(dso, machine, offset);
tools/perf/util/intel-pt.c
3689
intel_pt_cache_invalidate(dso, machine, offset);
tools/perf/util/intel-pt.c
4456
pt->machine = &session->machines.host; /* No kvm support */
tools/perf/util/intel-pt.c
4574
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
190
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, NULL, 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
171
struct perf_sample *sample, struct machine *machine);
tools/perf/util/kwork.h
175
struct perf_sample *sample, 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/lock-contention.c
102
bool match_callstack_filter(struct machine *machine, u64 *callstack, int max_stack_depth)
tools/perf/util/lock-contention.c
107
const char *arch = perf_env__arch(machine->env);
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
100
machine->parallelism = 1;
tools/perf/util/machine.c
1001
static int machine__get_running_kernel_start(struct machine *machine,
tools/perf/util/machine.c
1010
machine__get_kallsyms_filename(machine, filename, PATH_MAX);
tools/perf/util/machine.c
102
machine->root_dir = strdup(root_dir);
tools/perf/util/machine.c
103
if (machine->root_dir == NULL)
tools/perf/util/machine.c
1038
int machine__create_extra_kernel_map(struct machine *machine,
tools/perf/util/machine.c
1057
err = maps__insert(machine__kernel_maps(machine), map);
tools/perf/util/machine.c
106
if (machine__set_mmap_name(machine))
tools/perf/util/machine.c
110
struct thread *thread = machine__findnew_thread(machine, -1,
tools/perf/util/machine.c
1124
int machine__map_x86_64_entry_trampolines(struct machine *machine,
tools/perf/util/machine.c
1128
.kmaps = machine__kernel_maps(machine),
tools/perf/util/machine.c
1140
if (args.found || machine->trampolines_mapped)
tools/perf/util/machine.c
1147
nr_cpus_avail = machine__nr_cpus_avail(machine);
tools/perf/util/machine.c
1162
if (machine__create_extra_kernel_map(machine, kernel, &xm) < 0)
tools/perf/util/machine.c
1166
machine->trampolines_mapped = nr_cpus_avail;
tools/perf/util/machine.c
1171
int __weak machine__create_extra_kernel_maps(struct machine *machine __maybe_unused,
tools/perf/util/machine.c
1178
__machine__create_kernel_maps(struct machine *machine, struct dso *kernel)
tools/perf/util/machine.c
1181
machine__destroy_kernel_maps(machine);
tools/perf/util/machine.c
1183
map__put(machine->vmlinux_map);
tools/perf/util/machine.c
1184
machine->vmlinux_map = map__new2(0, kernel);
tools/perf/util/machine.c
1185
if (machine->vmlinux_map == NULL)
tools/perf/util/machine.c
1188
map__set_mapping_type(machine->vmlinux_map, MAPPING_TYPE__IDENTITY);
tools/perf/util/machine.c
1189
return maps__insert(machine__kernel_maps(machine), machine->vmlinux_map);
tools/perf/util/machine.c
1192
void machine__destroy_kernel_maps(struct machine *machine)
tools/perf/util/machine.c
1195
struct map *map = machine__kernel_map(machine);
tools/perf/util/machine.c
120
machine->current_tid = NULL;
tools/perf/util/machine.c
1201
maps__remove(machine__kernel_maps(machine), map);
tools/perf/util/machine.c
1207
map__zput(machine->vmlinux_map);
tools/perf/util/machine.c
125
zfree(&machine->kmaps);
tools/perf/util/machine.c
126
zfree(&machine->root_dir);
tools/perf/util/machine.c
1266
struct machine *pos = rb_entry(next, struct machine, rb_node);
tools/perf/util/machine.c
127
zfree(&machine->mmap_name);
tools/perf/util/machine.c
1276
struct machine *machine = machines__findnew(machines, pid);
tools/perf/util/machine.c
1278
if (machine == NULL)
tools/perf/util/machine.c
1281
return machine__create_kernel_maps(machine);
tools/perf/util/machine.c
1284
int machine__load_kallsyms(struct machine *machine, const char *filename)
tools/perf/util/machine.c
1286
struct map *map = machine__kernel_map(machine);
tools/perf/util/machine.c
1297
maps__fixup_end(machine__kernel_maps(machine));
tools/perf/util/machine.c
1303
int machine__load_vmlinux_path(struct machine *machine)
tools/perf/util/machine.c
1305
struct map *map = machine__kernel_map(machine);
tools/perf/util/machine.c
132
static struct machine *__machine__new_host(struct perf_env *host_env, bool kernel_maps)
tools/perf/util/machine.c
134
struct machine *machine = malloc(sizeof(*machine));
tools/perf/util/machine.c
136
if (!machine)
tools/perf/util/machine.c
139
machine__init(machine, "", HOST_KERNEL_ID);
tools/perf/util/machine.c
141
if (kernel_maps && machine__create_kernel_maps(machine) < 0) {
tools/perf/util/machine.c
142
free(machine);
tools/perf/util/machine.c
1444
static int machine__set_modules_path(struct machine *machine)
tools/perf/util/machine.c
1449
version = get_kernel_version(machine->root_dir);
tools/perf/util/machine.c
145
machine->env = host_env;
tools/perf/util/machine.c
1454
machine->root_dir, version);
tools/perf/util/machine.c
1457
return maps__set_modules_path_dir(machine__kernel_maps(machine),
tools/perf/util/machine.c
146
return machine;
tools/perf/util/machine.c
1470
struct machine *machine = arg;
tools/perf/util/machine.c
1476
map = machine__addnew_module_map(machine, start, name);
tools/perf/util/machine.c
1481
dso__kernel_module_get_build_id(map__dso(map), machine->root_dir);
tools/perf/util/machine.c
1486
static int machine__create_modules(struct machine *machine)
tools/perf/util/machine.c
149
struct machine *machine__new_host(struct perf_env *host_env)
tools/perf/util/machine.c
1491
if (machine__is_default_guest(machine)) {
tools/perf/util/machine.c
1494
snprintf(path, PATH_MAX, "%s/proc/modules", machine->root_dir);
tools/perf/util/machine.c
1501
if (modules__parse(modules, machine, machine__create_module))
tools/perf/util/machine.c
1504
if (!machine__set_modules_path(machine))
tools/perf/util/machine.c
1512
static void machine__set_kernel_mmap(struct machine *machine,
tools/perf/util/machine.c
1515
map__set_start(machine->vmlinux_map, start);
tools/perf/util/machine.c
1516
map__set_end(machine->vmlinux_map, end);
tools/perf/util/machine.c
1522
map__set_end(machine->vmlinux_map, ~0ULL);
tools/perf/util/machine.c
1525
static int machine__update_kernel_mmap(struct machine *machine,
tools/perf/util/machine.c
1531
orig = machine->vmlinux_map;
tools/perf/util/machine.c
1534
machine->vmlinux_map = updated;
tools/perf/util/machine.c
1535
maps__remove(machine__kernel_maps(machine), orig);
tools/perf/util/machine.c
1536
machine__set_kernel_mmap(machine, start, end);
tools/perf/util/machine.c
1537
err = maps__insert(machine__kernel_maps(machine), updated);
tools/perf/util/machine.c
1543
int machine__create_kernel_maps(struct machine *machine)
tools/perf/util/machine.c
1545
struct dso *kernel = machine__get_kernel(machine);
tools/perf/util/machine.c
1553
ret = __machine__create_kernel_maps(machine, kernel);
tools/perf/util/machine.c
1557
if (symbol_conf.use_modules && machine__create_modules(machine) < 0) {
tools/perf/util/machine.c
1558
if (machine__is_host(machine))
tools/perf/util/machine.c
1563
"continuing anyway...\n", machine->pid);
tools/perf/util/machine.c
1566
if (!machine__get_running_kernel_start(machine, &name, &start, &end)) {
tools/perf/util/machine.c
1568
map__set_kallsyms_ref_reloc_sym(machine->vmlinux_map, name, start)) {
tools/perf/util/machine.c
1569
machine__destroy_kernel_maps(machine);
tools/perf/util/machine.c
157
struct machine *machine)
tools/perf/util/machine.c
1578
ret = machine__update_kernel_mmap(machine, start, end);
tools/perf/util/machine.c
1583
if (machine__create_extra_kernel_maps(machine, kernel))
tools/perf/util/machine.c
1588
struct map *next = maps__find_next_entry(machine__kernel_maps(machine),
tools/perf/util/machine.c
1589
machine__kernel_map(machine));
tools/perf/util/machine.c
159
return machine__process_mmap2_event(machine, event, sample);
tools/perf/util/machine.c
1592
machine__set_kernel_mmap(machine, start, map__start(next));
tools/perf/util/machine.c
1597
maps__fixup_end(machine__kernel_maps(machine));
tools/perf/util/machine.c
1609
static bool machine__uses_kcore(struct machine *machine)
tools/perf/util/machine.c
1611
return dsos__for_each_dso(&machine->dsos, machine__uses_kcore_cb, NULL) != 0 ? true : false;
tools/perf/util/machine.c
1614
static bool perf_event__is_extra_kernel_mmap(struct machine *machine,
tools/perf/util/machine.c
1617
return machine__is(machine, "x86_64") &&
tools/perf/util/machine.c
162
static int machine__init_live(struct machine *machine, pid_t pid)
tools/perf/util/machine.c
1621
static int machine__process_extra_kernel_map(struct machine *machine,
tools/perf/util/machine.c
1624
struct dso *kernel = machine__kernel_dso(machine);
tools/perf/util/machine.c
1629
return machine__create_extra_kernel_map(machine, kernel, xm);
tools/perf/util/machine.c
1632
static int machine__process_kernel_mmap_event(struct machine *machine,
tools/perf/util/machine.c
1638
const char *mmap_name = machine->mmap_name;
tools/perf/util/machine.c
1641
if (machine__uses_kcore(machine))
tools/perf/util/machine.c
1644
if (machine__is_host(machine))
tools/perf/util/machine.c
1650
if (!is_kernel_mmap && !machine__is_host(machine)) {
tools/perf/util/machine.c
1661
struct map *map = machine__addnew_module_map(machine, xm->start, xm->name);
tools/perf/util/machine.c
1678
struct dso *kernel = dsos__find_kernel_dso(&machine->dsos);
tools/perf/util/machine.c
168
mmap_handler, machine, true);
tools/perf/util/machine.c
1681
kernel = machine__findnew_dso(machine, machine->mmap_name);
tools/perf/util/machine.c
1686
if (__machine__create_kernel_maps(machine, kernel) < 0) {
tools/perf/util/machine.c
1694
if (machine__update_kernel_mmap(machine, xm->start, xm->end) < 0) {
tools/perf/util/machine.c
1708
map__set_kallsyms_ref_reloc_sym(machine->vmlinux_map,
tools/perf/util/machine.c
171
struct machine *machine__new_live(struct perf_env *host_env, bool kernel_maps, pid_t pid)
tools/perf/util/machine.c
1713
if (machine__is_default_guest(machine)) {
tools/perf/util/machine.c
1717
dso__load(kernel, machine__kernel_map(machine));
tools/perf/util/machine.c
1720
} else if (perf_event__is_extra_kernel_mmap(machine, xm)) {
tools/perf/util/machine.c
1721
return machine__process_extra_kernel_map(machine, xm);
tools/perf/util/machine.c
1728
int machine__process_mmap2_event(struct machine *machine,
tools/perf/util/machine.c
173
struct machine *machine = __machine__new_host(host_env, kernel_maps);
tools/perf/util/machine.c
175
if (!machine)
tools/perf/util/machine.c
1760
ret = machine__process_kernel_mmap_event(machine, &xm, &dso_id.build_id);
tools/perf/util/machine.c
1766
thread = machine__findnew_thread(machine, event->mmap2.pid,
tools/perf/util/machine.c
1771
map = map__new(machine, event->mmap2.start,
tools/perf/util/machine.c
178
if (machine__init_live(machine, pid)) {
tools/perf/util/machine.c
179
machine__delete(machine);
tools/perf/util/machine.c
1797
int machine__process_mmap_event(struct machine *machine, union perf_event *event,
tools/perf/util/machine.c
1817
ret = machine__process_kernel_mmap_event(machine, &xm, NULL);
tools/perf/util/machine.c
182
return machine;
tools/perf/util/machine.c
1823
thread = machine__findnew_thread(machine, event->mmap.pid,
tools/perf/util/machine.c
1831
map = map__new(machine, event->mmap.start,
tools/perf/util/machine.c
185
struct machine *machine__new_kallsyms(struct perf_env *host_env)
tools/perf/util/machine.c
1855
void machine__remove_thread(struct machine *machine, struct thread *th)
tools/perf/util/machine.c
1857
return threads__remove(&machine->threads, th);
tools/perf/util/machine.c
1860
int machine__process_fork_event(struct machine *machine, union perf_event *event,
tools/perf/util/machine.c
1863
struct thread *thread = machine__find_thread(machine,
tools/perf/util/machine.c
1866
struct thread *parent = machine__findnew_thread(machine,
tools/perf/util/machine.c
187
struct machine *machine = machine__new_host(host_env);
tools/perf/util/machine.c
1884
machine__remove_thread(machine, parent);
tools/perf/util/machine.c
1886
parent = machine__findnew_thread(machine, event->fork.ppid,
tools/perf/util/machine.c
1892
machine__remove_thread(machine, thread);
tools/perf/util/machine.c
1896
thread = machine__findnew_thread(machine, event->fork.pid,
tools/perf/util/machine.c
1926
int machine__process_exit_event(struct machine *machine, union perf_event *event,
tools/perf/util/machine.c
1929
struct thread *thread = machine__find_thread(machine,
tools/perf/util/machine.c
1937
machine->parallelism--;
tools/perf/util/machine.c
194
if (machine && machine__load_kallsyms(machine, "/proc/kallsyms") <= 0) {
tools/perf/util/machine.c
1942
machine__remove_thread(machine, thread);
tools/perf/util/machine.c
1948
int machine__process_event(struct machine *machine, union perf_event *event,
tools/perf/util/machine.c
195
machine__delete(machine);
tools/perf/util/machine.c
1955
ret = machine__process_comm_event(machine, event, sample); break;
tools/perf/util/machine.c
1957
ret = machine__process_mmap_event(machine, event, sample); break;
tools/perf/util/machine.c
1959
ret = machine__process_namespaces_event(machine, event, sample); break;
tools/perf/util/machine.c
196
machine = NULL;
tools/perf/util/machine.c
1961
ret = machine__process_cgroup_event(machine, event, sample); break;
tools/perf/util/machine.c
1963
ret = machine__process_mmap2_event(machine, event, sample); break;
tools/perf/util/machine.c
1965
ret = machine__process_fork_event(machine, event, sample); break;
tools/perf/util/machine.c
1967
ret = machine__process_exit_event(machine, event, sample); break;
tools/perf/util/machine.c
1969
ret = machine__process_lost_event(machine, event, sample); break;
tools/perf/util/machine.c
1971
ret = machine__process_aux_event(machine, event); break;
tools/perf/util/machine.c
1973
ret = machine__process_itrace_start_event(machine, event); break;
tools/perf/util/machine.c
1975
ret = machine__process_lost_samples_event(machine, event, sample); break;
tools/perf/util/machine.c
1978
ret = machine__process_switch_event(machine, event); break;
tools/perf/util/machine.c
1980
ret = machine__process_ksymbol(machine, event, sample); break;
tools/perf/util/machine.c
1982
ret = machine__process_bpf(machine, event, sample); break;
tools/perf/util/machine.c
1984
ret = machine__process_text_poke(machine, event, sample); break;
tools/perf/util/machine.c
1986
ret = machine__process_aux_output_hw_id_event(machine, event); break;
tools/perf/util/machine.c
199
return machine;
tools/perf/util/machine.c
202
void machine__delete_threads(struct machine *machine)
tools/perf/util/machine.c
204
threads__remove_all_threads(&machine->threads);
tools/perf/util/machine.c
207
void machine__exit(struct machine *machine)
tools/perf/util/machine.c
209
if (machine == NULL)
tools/perf/util/machine.c
212
machine__destroy_kernel_maps(machine);
tools/perf/util/machine.c
213
maps__zput(machine->kmaps);
tools/perf/util/machine.c
214
dsos__exit(&machine->dsos);
tools/perf/util/machine.c
215
machine__exit_vdso(machine);
tools/perf/util/machine.c
216
zfree(&machine->root_dir);
tools/perf/util/machine.c
217
zfree(&machine->mmap_name);
tools/perf/util/machine.c
218
zfree(&machine->current_tid);
tools/perf/util/machine.c
219
zfree(&machine->kallsyms_filename);
tools/perf/util/machine.c
221
threads__exit(&machine->threads);
tools/perf/util/machine.c
224
void machine__delete(struct machine *machine)
tools/perf/util/machine.c
226
if (machine) {
tools/perf/util/machine.c
227
machine__exit(machine);
tools/perf/util/machine.c
228
free(machine);
tools/perf/util/machine.c
244
struct machine *machines__add(struct machines *machines, pid_t pid,
tools/perf/util/machine.c
249
struct machine *pos, *machine = malloc(sizeof(*machine));
tools/perf/util/machine.c
252
if (machine == NULL)
tools/perf/util/machine.c
255
if (machine__init(machine, root_dir, pid) != 0) {
tools/perf/util/machine.c
256
free(machine);
tools/perf/util/machine.c
262
pos = rb_entry(parent, struct machine, rb_node);
tools/perf/util/machine.c
271
rb_link_node(&machine->rb_node, parent, p);
tools/perf/util/machine.c
272
rb_insert_color_cached(&machine->rb_node, &machines->guests, leftmost);
tools/perf/util/machine.c
274
machine->machines = machines;
tools/perf/util/machine.c
276
return machine;
tools/perf/util/machine.c
286
struct machine *machine = rb_entry(nd, struct machine, rb_node);
tools/perf/util/machine.c
288
machine->comm_exec = comm_exec;
tools/perf/util/machine.c
292
struct machine *machines__find(struct machines *machines, pid_t pid)
tools/perf/util/machine.c
296
struct machine *machine;
tools/perf/util/machine.c
297
struct machine *default_machine = NULL;
tools/perf/util/machine.c
304
machine = rb_entry(parent, struct machine, rb_node);
tools/perf/util/machine.c
305
if (pid < machine->pid)
tools/perf/util/machine.c
3051
int machine__for_each_thread(struct machine *machine,
tools/perf/util/machine.c
3055
return threads__for_each_thread(&machine->threads, fn, priv);
tools/perf/util/machine.c
307
else if (pid > machine->pid)
tools/perf/util/machine.c
3070
struct machine *machine = rb_entry(nd, struct machine, rb_node);
tools/perf/util/machine.c
3072
rc = machine__for_each_thread(machine, fn, priv);
tools/perf/util/machine.c
3093
int machine__thread_list(struct machine *machine, struct list_head *list)
tools/perf/util/machine.c
3095
return machine__for_each_thread(machine, thread_list_cb, list);
tools/perf/util/machine.c
310
return machine;
tools/perf/util/machine.c
3109
pid_t machine__get_current_tid(struct machine *machine, int cpu)
tools/perf/util/machine.c
311
if (!machine->pid)
tools/perf/util/machine.c
3111
if (cpu < 0 || (size_t)cpu >= machine->current_tid_sz)
tools/perf/util/machine.c
3114
return machine->current_tid[cpu];
tools/perf/util/machine.c
3117
int machine__set_current_tid(struct machine *machine, int cpu, pid_t pid,
tools/perf/util/machine.c
312
default_machine = machine;
tools/perf/util/machine.c
3126
if (realloc_array_as_needed(machine->current_tid,
tools/perf/util/machine.c
3127
machine->current_tid_sz,
tools/perf/util/machine.c
3132
machine->current_tid[cpu] = tid;
tools/perf/util/machine.c
3134
thread = machine__findnew_thread(machine, pid, tid);
tools/perf/util/machine.c
3148
bool machine__is(struct machine *machine, const char *arch)
tools/perf/util/machine.c
3150
return machine && !strcmp(perf_env__raw_arch(machine->env), arch);
tools/perf/util/machine.c
3153
bool machine__normalized_is(struct machine *machine, const char *arch)
tools/perf/util/machine.c
3155
return machine && !strcmp(perf_env__arch(machine->env), arch);
tools/perf/util/machine.c
3158
int machine__nr_cpus_avail(struct machine *machine)
tools/perf/util/machine.c
3160
return machine ? perf_env__nr_cpus_avail(machine->env) : 0;
tools/perf/util/machine.c
3163
int machine__get_kernel_start(struct machine *machine)
tools/perf/util/machine.c
3165
struct map *map = machine__kernel_map(machine);
tools/perf/util/machine.c
3176
machine->kernel_start = 1ULL << 63;
tools/perf/util/machine.c
318
struct machine *machines__findnew(struct machines *machines, pid_t pid)
tools/perf/util/machine.c
3184
if (!err && !machine__is(machine, "x86_64"))
tools/perf/util/machine.c
3185
machine->kernel_start = map__start(map);
tools/perf/util/machine.c
3190
u8 machine__addr_cpumode(struct machine *machine, u8 cpumode, u64 addr)
tools/perf/util/machine.c
3195
if (!machine->single_address_space)
tools/perf/util/machine.c
3198
kernel_ip = machine__kernel_ip(machine, addr);
tools/perf/util/machine.c
3217
struct dso *machine__findnew_dso_id(struct machine *machine, const char *filename,
tools/perf/util/machine.c
322
struct machine *machine = machines__find(machines, pid);
tools/perf/util/machine.c
3220
return dsos__findnew_id(&machine->dsos, filename, id);
tools/perf/util/machine.c
3223
struct dso *machine__findnew_dso(struct machine *machine, const char *filename)
tools/perf/util/machine.c
3225
return machine__findnew_dso_id(machine, filename, &dso_id_empty);
tools/perf/util/machine.c
3230
struct machine *machine = vmachine;
tools/perf/util/machine.c
3232
struct symbol *sym = machine__find_kernel_symbol(machine, *addrp, &map);
tools/perf/util/machine.c
324
if (machine && (machine->pid == pid))
tools/perf/util/machine.c
3243
struct machine *machine;
tools/perf/util/machine.c
3252
return args->fn(dso, args->machine, args->priv);
tools/perf/util/machine.c
3255
int machine__for_each_dso(struct machine *machine, machine__dso_t fn, void *priv)
tools/perf/util/machine.c
3258
.machine = machine,
tools/perf/util/machine.c
3263
return dsos__for_each_dso(&machine->dsos, machine__for_each_dso_cb, &args);
tools/perf/util/machine.c
3266
int machine__for_each_kernel_map(struct machine *machine, machine__map_t fn, void *priv)
tools/perf/util/machine.c
3268
struct maps *maps = machine__kernel_maps(machine);
tools/perf/util/machine.c
3273
bool machine__is_lock_function(struct machine *machine, u64 addr)
tools/perf/util/machine.c
3275
if (!machine->sched.text_start) {
tools/perf/util/machine.c
3277
struct symbol *sym = machine__find_kernel_symbol_by_name(machine, "__sched_text_start", &kmap);
tools/perf/util/machine.c
3281
machine->sched.text_start = 1;
tools/perf/util/machine.c
3285
machine->sched.text_start = map__unmap_ip(kmap, sym->start);
tools/perf/util/machine.c
3288
sym = machine__find_kernel_symbol_by_name(machine, "__sched_text_end", &kmap);
tools/perf/util/machine.c
3289
machine->sched.text_end = map__unmap_ip(kmap, sym->start);
tools/perf/util/machine.c
3291
sym = machine__find_kernel_symbol_by_name(machine, "__lock_text_start", &kmap);
tools/perf/util/machine.c
3292
machine->lock.text_start = map__unmap_ip(kmap, sym->start);
tools/perf/util/machine.c
3294
sym = machine__find_kernel_symbol_by_name(machine, "__lock_text_end", &kmap);
tools/perf/util/machine.c
3295
machine->lock.text_end = map__unmap_ip(kmap, sym->start);
tools/perf/util/machine.c
3297
sym = machine__find_kernel_symbol_by_name(machine, "__traceiter_contention_begin", &kmap);
tools/perf/util/machine.c
3299
machine->traceiter.text_start = map__unmap_ip(kmap, sym->start);
tools/perf/util/machine.c
3300
machine->traceiter.text_end = map__unmap_ip(kmap, sym->end);
tools/perf/util/machine.c
3302
sym = machine__find_kernel_symbol_by_name(machine, "trace_contention_begin", &kmap);
tools/perf/util/machine.c
3304
machine->trace.text_start = map__unmap_ip(kmap, sym->start);
tools/perf/util/machine.c
3305
machine->trace.text_end = map__unmap_ip(kmap, sym->end);
tools/perf/util/machine.c
3310
if (machine->sched.text_start == 1)
tools/perf/util/machine.c
3314
if (machine->sched.text_start <= addr && addr < machine->sched.text_end)
tools/perf/util/machine.c
3318
if (machine->lock.text_start <= addr && addr < machine->lock.text_end)
tools/perf/util/machine.c
3324
if (machine->traceiter.text_start != 0) {
tools/perf/util/machine.c
3325
if (machine->traceiter.text_start <= addr && addr < machine->traceiter.text_end)
tools/perf/util/machine.c
3329
if (machine->trace.text_start != 0) {
tools/perf/util/machine.c
3330
if (machine->trace.text_start <= addr && addr < machine->trace.text_end)
tools/perf/util/machine.c
3337
int machine__hit_all_dsos(struct machine *machine)
tools/perf/util/machine.c
3339
return dsos__hit_all(&machine->dsos);
tools/perf/util/machine.c
341
machine = NULL;
tools/perf/util/machine.c
347
machine = machines__add(machines, pid, root_dir);
tools/perf/util/machine.c
349
return machine;
tools/perf/util/machine.c
352
struct machine *machines__find_guest(struct machines *machines, pid_t pid)
tools/perf/util/machine.c
354
struct machine *machine = machines__find(machines, pid);
tools/perf/util/machine.c
356
if (!machine)
tools/perf/util/machine.c
357
machine = machines__findnew(machines, DEFAULT_GUEST_KERNEL_ID);
tools/perf/util/machine.c
358
return machine;
tools/perf/util/machine.c
386
static struct thread *findnew_guest_code(struct machine *machine,
tools/perf/util/machine.c
387
struct machine *host_machine,
tools/perf/util/machine.c
394
if (!machine)
tools/perf/util/machine.c
397
thread = machine__findnew_thread(machine, -1, pid);
tools/perf/util/machine.c
429
struct machine *host_machine = machines__find(machines, HOST_KERNEL_ID);
tools/perf/util/machine.c
430
struct machine *machine = machines__findnew(machines, pid);
tools/perf/util/machine.c
432
return findnew_guest_code(machine, host_machine, pid);
tools/perf/util/machine.c
435
struct thread *machine__findnew_guest_code(struct machine *machine, pid_t pid)
tools/perf/util/machine.c
437
struct machines *machines = machine->machines;
tools/perf/util/machine.c
438
struct machine *host_machine;
tools/perf/util/machine.c
445
return findnew_guest_code(machine, host_machine, pid);
tools/perf/util/machine.c
454
struct machine *pos = rb_entry(nd, struct machine, rb_node);
tools/perf/util/machine.c
462
struct machine *machine;
tools/perf/util/machine.c
468
machine = rb_entry(node, struct machine, rb_node);
tools/perf/util/machine.c
469
machine->id_hdr_size = id_hdr_size;
tools/perf/util/machine.c
475
static void machine__update_thread_pid(struct machine *machine,
tools/perf/util/machine.c
488
leader = machine__findnew_thread(machine, thread__pid(th), thread__pid(th));
tools/perf/util/machine.c
49
static struct dso *machine__kernel_dso(struct machine *machine)
tools/perf/util/machine.c
493
thread__set_maps(leader, maps__new(machine));
tools/perf/util/machine.c
51
return map__dso(machine->vmlinux_map);
tools/perf/util/machine.c
526
static struct thread *__machine__findnew_thread(struct machine *machine,
tools/perf/util/machine.c
531
struct thread *th = threads__find(&machine->threads, tid);
tools/perf/util/machine.c
535
machine__update_thread_pid(machine, th, pid);
tools/perf/util/machine.c
54
static int machine__set_mmap_name(struct machine *machine)
tools/perf/util/machine.c
541
th = threads__findnew(&machine->threads, pid, tid, &created);
tools/perf/util/machine.c
551
if (thread__init_maps(th, machine)) {
tools/perf/util/machine.c
553
threads__remove(&machine->threads, th);
tools/perf/util/machine.c
558
machine__update_thread_pid(machine, th, pid);
tools/perf/util/machine.c
56
if (machine__is_host(machine))
tools/perf/util/machine.c
563
struct thread *machine__findnew_thread(struct machine *machine, pid_t pid, pid_t tid)
tools/perf/util/machine.c
565
return __machine__findnew_thread(machine, pid, tid, /*create=*/true);
tools/perf/util/machine.c
568
struct thread *machine__find_thread(struct machine *machine, pid_t pid,
tools/perf/util/machine.c
57
machine->mmap_name = strdup("[kernel.kallsyms]");
tools/perf/util/machine.c
571
return __machine__findnew_thread(machine, pid, tid, /*create=*/false);
tools/perf/util/machine.c
58
else if (machine__is_default_guest(machine))
tools/perf/util/machine.c
581
struct thread *machine__idle_thread(struct machine *machine)
tools/perf/util/machine.c
583
struct thread *thread = machine__findnew_thread(machine, 0, 0);
tools/perf/util/machine.c
587
pr_err("problem inserting idle task for machine pid %d\n", machine->pid);
tools/perf/util/machine.c
59
machine->mmap_name = strdup("[guest.kernel.kallsyms]");
tools/perf/util/machine.c
592
struct comm *machine__thread_exec_comm(struct machine *machine,
tools/perf/util/machine.c
595
if (machine->comm_exec)
tools/perf/util/machine.c
60
else if (asprintf(&machine->mmap_name, "[guest.kernel.kallsyms.%d]",
tools/perf/util/machine.c
601
int machine__process_comm_event(struct machine *machine, union perf_event *event,
tools/perf/util/machine.c
604
struct thread *thread = machine__findnew_thread(machine,
tools/perf/util/machine.c
61
machine->pid) < 0)
tools/perf/util/machine.c
611
machine->comm_exec = true;
tools/perf/util/machine.c
62
machine->mmap_name = NULL;
tools/perf/util/machine.c
627
int machine__process_namespaces_event(struct machine *machine __maybe_unused,
tools/perf/util/machine.c
631
struct thread *thread = machine__findnew_thread(machine,
tools/perf/util/machine.c
64
return machine->mmap_name ? 0 : -ENOMEM;
tools/perf/util/machine.c
658
int machine__process_cgroup_event(struct machine *machine,
tools/perf/util/machine.c
667
cgrp = cgroup__findnew(machine->env, event->cgroup.id, event->cgroup.path);
tools/perf/util/machine.c
674
int machine__process_lost_event(struct machine *machine __maybe_unused,
tools/perf/util/machine.c
682
int machine__process_lost_samples_event(struct machine *machine __maybe_unused,
tools/perf/util/machine.c
691
int machine__process_aux_event(struct machine *machine __maybe_unused,
tools/perf/util/machine.c
699
int machine__process_itrace_start_event(struct machine *machine __maybe_unused,
tools/perf/util/machine.c
707
int machine__process_aux_output_hw_id_event(struct machine *machine __maybe_unused,
tools/perf/util/machine.c
715
int machine__process_switch_event(struct machine *machine __maybe_unused,
tools/perf/util/machine.c
722
machine->parallelism += out ? -1 : 1;
tools/perf/util/machine.c
726
static int machine__process_ksymbol_register(struct machine *machine,
tools/perf/util/machine.c
732
struct map *map = maps__find(machine__kernel_maps(machine), event->ksymbol.addr);
tools/perf/util/machine.c
75
int machine__init(struct machine *machine, const char *root_dir, pid_t pid)
tools/perf/util/machine.c
756
err = maps__fixup_overlap_and_insert(machine__kernel_maps(machine), map);
tools/perf/util/machine.c
786
static int machine__process_ksymbol_unregister(struct machine *machine,
tools/perf/util/machine.c
79
memset(machine, 0, sizeof(*machine));
tools/perf/util/machine.c
793
map = maps__find(machine__kernel_maps(machine), event->ksymbol.addr);
tools/perf/util/machine.c
797
if (!RC_CHK_EQUAL(map, machine->vmlinux_map))
tools/perf/util/machine.c
798
maps__remove(machine__kernel_maps(machine), map);
tools/perf/util/machine.c
80
machine->kmaps = maps__new(machine);
tools/perf/util/machine.c
81
if (machine->kmaps == NULL)
tools/perf/util/machine.c
810
int machine__process_ksymbol(struct machine *machine __maybe_unused,
tools/perf/util/machine.c
822
return machine__process_ksymbol_unregister(machine, event,
tools/perf/util/machine.c
824
return machine__process_ksymbol_register(machine, event, sample);
tools/perf/util/machine.c
827
int machine__process_text_poke(struct machine *machine, union perf_event *event,
tools/perf/util/machine.c
830
struct map *map = maps__find(machine__kernel_maps(machine), event->text_poke.addr);
tools/perf/util/machine.c
835
perf_event__fprintf_text_poke(event, machine, stdout);
tools/perf/util/machine.c
84
RB_CLEAR_NODE(&machine->rb_node);
tools/perf/util/machine.c
85
dsos__init(&machine->dsos);
tools/perf/util/machine.c
854
ret = dso__data_write_cache_addr(dso, map, machine,
tools/perf/util/machine.c
87
threads__init(&machine->threads);
tools/perf/util/machine.c
870
static struct map *machine__addnew_module_map(struct machine *machine, u64 start,
tools/perf/util/machine.c
881
dso = dsos__findnew_module_dso(&machine->dsos, machine, &m, filename);
tools/perf/util/machine.c
889
err = maps__insert(machine__kernel_maps(machine), map);
tools/perf/util/machine.c
89
machine->vdso_info = NULL;
tools/perf/util/machine.c
90
machine->env = NULL;
tools/perf/util/machine.c
908
struct machine *pos = rb_entry(nd, struct machine, rb_node);
tools/perf/util/machine.c
915
size_t machine__fprintf_dsos_buildid(struct machine *m, FILE *fp,
tools/perf/util/machine.c
92
machine->pid = pid;
tools/perf/util/machine.c
928
struct machine *pos = rb_entry(nd, struct machine, rb_node);
tools/perf/util/machine.c
94
machine->id_hdr_size = 0;
tools/perf/util/machine.c
948
size_t machine__fprintf(struct machine *machine, FILE *fp)
tools/perf/util/machine.c
95
machine->kptr_restrict_warned = false;
tools/perf/util/machine.c
954
size_t ret = fprintf(fp, "Threads: %zu\n", threads__nr(&machine->threads));
tools/perf/util/machine.c
956
machine__for_each_thread(machine, machine_fprintf_cb, &args);
tools/perf/util/machine.c
96
machine->comm_exec = false;
tools/perf/util/machine.c
960
static struct dso *machine__get_kernel(struct machine *machine)
tools/perf/util/machine.c
962
const char *vmlinux_name = machine->mmap_name;
tools/perf/util/machine.c
965
if (machine__is_host(machine)) {
tools/perf/util/machine.c
969
kernel = machine__findnew_kernel(machine, vmlinux_name,
tools/perf/util/machine.c
97
machine->kernel_start = 0;
tools/perf/util/machine.c
975
kernel = machine__findnew_kernel(machine, vmlinux_name,
tools/perf/util/machine.c
98
machine->vmlinux_map = NULL;
tools/perf/util/machine.c
981
dso__read_running_kernel_build_id(kernel, machine);
tools/perf/util/machine.c
986
void machine__get_kallsyms_filename(struct machine *machine, char *buf,
tools/perf/util/machine.c
989
if (machine__is_default_guest(machine))
tools/perf/util/machine.c
992
scnprintf(buf, bufsz, "%s/proc/kallsyms", machine->root_dir);
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
219
static inline bool machine__is_default_guest(struct machine *machine)
tools/perf/util/machine.h
221
return machine ? machine->pid == DEFAULT_GUEST_KERNEL_ID : false;
tools/perf/util/machine.h
224
static inline bool machine__is_host(struct machine *machine)
tools/perf/util/machine.h
226
return machine ? machine->pid == HOST_KERNEL_ID : false;
tools/perf/util/machine.h
229
bool machine__is_lock_function(struct machine *machine, u64 addr);
tools/perf/util/machine.h
230
bool machine__is(struct machine *machine, const char *arch);
tools/perf/util/machine.h
231
bool machine__normalized_is(struct machine *machine, const char *arch);
tools/perf/util/machine.h
232
int machine__nr_cpus_avail(struct machine *machine);
tools/perf/util/machine.h
234
struct thread *machine__findnew_thread(struct machine *machine, pid_t pid, pid_t tid);
tools/perf/util/machine.h
236
struct dso *machine__findnew_dso_id(struct machine *machine, const char *filename,
tools/perf/util/machine.h
238
struct dso *machine__findnew_dso(struct machine *machine, const char *filename);
tools/perf/util/machine.h
240
size_t machine__fprintf(struct machine *machine, FILE *fp);
tools/perf/util/machine.h
243
struct symbol *machine__find_kernel_symbol(struct machine *machine, u64 addr,
tools/perf/util/machine.h
246
return maps__find_symbol(machine->kmaps, addr, mapp);
tools/perf/util/machine.h
250
struct symbol *machine__find_kernel_symbol_by_name(struct machine *machine,
tools/perf/util/machine.h
254
return maps__find_symbol_by_name(machine->kmaps, name, mapp);
tools/perf/util/machine.h
259
int machine__load_kallsyms(struct machine *machine, const char *filename);
tools/perf/util/machine.h
261
int machine__load_vmlinux_path(struct machine *machine);
tools/perf/util/machine.h
263
size_t machine__fprintf_dsos_buildid(struct machine *machine, FILE *fp,
tools/perf/util/machine.h
269
void machine__destroy_kernel_maps(struct machine *machine);
tools/perf/util/machine.h
270
int machine__create_kernel_maps(struct machine *machine);
tools/perf/util/machine.h
276
typedef int (*machine__dso_t)(struct dso *dso, struct machine *machine, void *priv);
tools/perf/util/machine.h
278
int machine__for_each_dso(struct machine *machine, machine__dso_t fn,
tools/perf/util/machine.h
282
int machine__for_each_kernel_map(struct machine *machine, machine__map_t fn,
tools/perf/util/machine.h
285
int machine__for_each_thread(struct machine *machine,
tools/perf/util/machine.h
298
int machine__thread_list(struct machine *machine, struct list_head *list);
tools/perf/util/machine.h
302
pid_t machine__get_current_tid(struct machine *machine, int cpu);
tools/perf/util/machine.h
303
int machine__set_current_tid(struct machine *machine, int cpu, pid_t pid,
tools/perf/util/machine.h
310
void machine__get_kallsyms_filename(struct machine *machine, char *buf,
tools/perf/util/machine.h
313
int machine__create_extra_kernel_maps(struct machine *machine,
tools/perf/util/machine.h
324
int machine__create_extra_kernel_map(struct machine *machine,
tools/perf/util/machine.h
328
int machine__map_x86_64_entry_trampolines(struct machine *machine,
tools/perf/util/machine.h
331
int machine__resolve(struct machine *machine, struct addr_location *al,
tools/perf/util/machine.h
334
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
174
struct machine *maps__machine(const struct maps *maps)
tools/perf/util/maps.c
176
return RC_CHK_ACCESS(maps)->machine;
tools/perf/util/maps.c
227
static void maps__init(struct maps *maps, struct machine *machine)
tools/perf/util/maps.c
232
RC_CHK_ACCESS(maps)->machine = machine;
tools/perf/util/maps.c
266
struct maps *maps__new(struct machine *machine)
tools/perf/util/maps.c
272
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
29
struct machine *machine;
tools/perf/util/powerpc-vpadtl.c
700
vpa->machine = &session->machines.host; /* No kvm support */
tools/perf/util/print_insn.c
33
static bool is64bitip(struct machine *machine, struct addr_location *al)
tools/perf/util/print_insn.c
40
return machine__is(machine, "x86_64") ||
tools/perf/util/print_insn.c
41
machine__normalized_is(machine, "arm64") ||
tools/perf/util/print_insn.c
42
machine__normalized_is(machine, "s390");
tools/perf/util/print_insn.c
45
ssize_t fprintf_insn_asm(struct machine *machine, struct thread *thread, u8 cpumode,
tools/perf/util/print_insn.c
49
return capstone__fprintf_insn_asm(machine, thread, cpumode, is64bit, code, code_size,
tools/perf/util/print_insn.c
54
struct machine *machine, FILE *fp,
tools/perf/util/print_insn.c
57
bool is64bit = is64bitip(machine, al);
tools/perf/util/print_insn.c
60
printed = fprintf_insn_asm(machine, thread, sample->cpumode, is64bit,
tools/perf/util/print_insn.h
10
struct machine;
tools/perf/util/print_insn.h
16
struct machine *machine, FILE *fp, struct addr_location *al);
tools/perf/util/print_insn.h
18
ssize_t fprintf_insn_asm(struct machine *machine, struct thread *thread, u8 cpumode,
tools/perf/util/probe-event.c
77
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
101
e_machine = thread__e_machine(thread, machine, /*e_flags=*/NULL);
tools/perf/util/sample.c
103
len = thread__memcpy(thread, machine, sample->insn,
tools/perf/util/sample.c
92
struct machine *machine)
tools/perf/util/sample.h
135
struct machine *machine);
tools/perf/util/sample.h
8
struct machine;
tools/perf/util/scripting-engines/trace-event-python.c
1162
struct machine *machine)
tools/perf/util/scripting-engines/trace-event-python.c
1169
tuple_set_d64(t, 0, machine->db_id);
tools/perf/util/scripting-engines/trace-event-python.c
1170
tuple_set_s32(t, 1, machine->pid);
tools/perf/util/scripting-engines/trace-event-python.c
1171
tuple_set_string(t, 2, machine->root_dir ? machine->root_dir : "");
tools/perf/util/scripting-engines/trace-event-python.c
1181
u64 main_thread_db_id, struct machine *machine)
tools/perf/util/scripting-engines/trace-event-python.c
1189
tuple_set_d64(t, 1, machine->db_id);
tools/perf/util/scripting-engines/trace-event-python.c
1242
struct machine *machine)
tools/perf/util/scripting-engines/trace-event-python.c
1253
tuple_set_d64(t, 1, machine->db_id);
tools/perf/util/scripting-engines/trace-event-python.c
1432
struct machine *machine,
tools/perf/util/scripting-engines/trace-event-python.c
1443
tuple_set_d64(t, 1, machine->db_id);
tools/perf/util/scripting-engines/trace-event-python.c
1528
struct machine *machine)
tools/perf/util/scripting-engines/trace-event-python.c
1559
struct machine *machine)
tools/perf/util/scripting-engines/trace-event-python.c
1586
tuple_set_s32(t, 6, machine->pid);
tools/perf/util/scripting-engines/trace-event-python.c
1599
struct machine *machine)
tools/perf/util/scripting-engines/trace-event-python.c
1604
db_export__switch(&tables->dbe, event, sample, machine);
tools/perf/util/scripting-engines/trace-event-python.c
1606
python_do_process_switch(event, sample, machine);
tools/perf/util/scripting-engines/trace-event-python.c
1876
SET_TABLE_HANDLER(machine);
tools/perf/util/session.c
1113
static void dump_sample(struct machine *machine, struct evsel *evsel, union perf_event *event,
tools/perf/util/session.c
1127
struct thread *thread = machine__find_thread(machine, sample->pid, sample->pid);
tools/perf/util/session.c
1129
e_machine = thread__e_machine(thread, machine, &e_flags);
tools/perf/util/session.c
1221
static struct machine *machines__find_for_cpumode(struct machines *machines,
tools/perf/util/session.c
1256
struct machine *machine,
tools/perf/util/session.c
1286
return tool->sample(tool, event, sample, evsel, machine);
tools/perf/util/session.c
1293
struct machine *machine,
tools/perf/util/session.c
1301
return deliver_sample_value(evlist, tool, event, sample, v, machine,
tools/perf/util/session.c
1306
machine, per_thread);
tools/perf/util/session.c
1316
struct evsel *evsel, struct machine *machine)
tools/perf/util/session.c
1325
return tool->sample(tool, event, sample, evsel, machine);
tools/perf/util/session.c
1330
machine, read_format, per_thread);
tools/perf/util/session.c
1333
&sample->read.one, machine,
tools/perf/util/session.c
1355
struct machine *machine)
tools/perf/util/session.c
1364
evsel, machine);
tools/perf/util/session.c
1386
&orig_sample, evsel, machine);
tools/perf/util/session.c
1409
struct machine *machine = &session->machines.host;
tools/perf/util/session.c
1425
&sample, evsel, machine);
tools/perf/util/session.c
1445
struct machine *machine;
tools/perf/util/session.c
1451
machine = machines__find_for_cpumode(machines, event, sample);
tools/perf/util/session.c
1459
if (machine == NULL) {
tools/perf/util/session.c
1461
dump_sample(machine, evsel, event, sample);
tools/perf/util/session.c
1464
dump_sample(machine, evsel, event, sample);
tools/perf/util/session.c
1481
return evlist__deliver_sample(evlist, tool, event, sample, evsel, machine);
tools/perf/util/session.c
1483
return tool->mmap(tool, event, sample, machine);
tools/perf/util/session.c
1487
return tool->mmap2(tool, event, sample, machine);
tools/perf/util/session.c
1489
return tool->comm(tool, event, sample, machine);
tools/perf/util/session.c
1491
return tool->namespaces(tool, event, sample, machine);
tools/perf/util/session.c
1493
return tool->cgroup(tool, event, sample, machine);
tools/perf/util/session.c
1495
return tool->fork(tool, event, sample, machine);
tools/perf/util/session.c
1497
return tool->exit(tool, event, sample, machine);
tools/perf/util/session.c
1501
return tool->lost(tool, event, sample, machine);
tools/perf/util/session.c
1507
return tool->lost_samples(tool, event, sample, machine);
tools/perf/util/session.c
1510
return tool->read(tool, event, sample, evsel, machine);
tools/perf/util/session.c
1512
return tool->throttle(tool, event, sample, machine);
tools/perf/util/session.c
1514
return tool->unthrottle(tool, event, sample, machine);
tools/perf/util/session.c
1524
return tool->aux(tool, event, sample, machine);
tools/perf/util/session.c
1526
return tool->itrace_start(tool, event, sample, machine);
tools/perf/util/session.c
1529
return tool->context_switch(tool, event, sample, machine);
tools/perf/util/session.c
1531
return tool->ksymbol(tool, event, sample, machine);
tools/perf/util/session.c
1533
return tool->bpf(tool, event, sample, machine);
tools/perf/util/session.c
1535
return tool->text_poke(tool, event, sample, machine);
tools/perf/util/session.c
1537
return tool->aux_output_hw_id(tool, event, sample, machine);
tools/perf/util/session.c
1541
sample, machine);
tools/perf/util/session.c
2736
struct machine *pos = rb_entry(nd, struct machine, rb_node);
tools/perf/util/session.c
2824
struct machine *machine = machines__findnew(&session->machines, machine_pid);
tools/perf/util/session.c
2827
if (!machine)
tools/perf/util/session.c
2830
machine->single_address_space = session->machines.host.single_address_space;
tools/perf/util/session.c
2832
thread = machine__idle_thread(machine);
tools/perf/util/session.c
2837
machine->kallsyms_filename = perf_data__guest_kallsyms_name(session->data, machine_pid);
tools/perf/util/session.c
2845
struct machine *machine = &session->machines.host;
tools/perf/util/session.c
2846
struct thread *thread = machine__findnew_thread(machine, pid, tid);
tools/perf/util/session.c
2952
struct machine *pos = rb_entry(nd, struct machine, rb_node);
tools/perf/util/session.h
154
struct machine *perf_session__find_machine(struct perf_session *session, pid_t pid)
tools/perf/util/session.h
160
struct machine *perf_session__findnew_machine(struct perf_session *session, pid_t pid)
tools/perf/util/symbol.c
1312
struct machine *machine;
tools/perf/util/symbol.c
1321
machine = maps__machine(kmaps);
tools/perf/util/symbol.c
1359
machine->trampolines_mapped = false;
tools/perf/util/symbol.c
1430
if (machine__is(machine, "x86_64")) {
tools/perf/util/symbol.c
1440
machine->trampolines_mapped = true;
tools/perf/util/symbol.c
1679
struct machine *machine = NULL;
tools/perf/util/symbol.c
1717
machine = maps__machine(map__kmaps(map));
tools/perf/util/symbol.c
1718
if (machine__is(machine, "x86_64"))
tools/perf/util/symbol.c
1719
machine__map_x86_64_entry_trampolines(machine, dso);
tools/perf/util/symbol.c
1733
if (machine)
tools/perf/util/symbol.c
1734
root_dir = machine->root_dir;
tools/perf/util/symbol.c
2038
struct machine *machine = maps__machine(kmaps);
tools/perf/util/symbol.c
2040
scnprintf(path, sizeof(path), "%s/proc/kallsyms", machine->root_dir);
tools/perf/util/symbol.c
2136
struct machine *machine = maps__machine(map__kmaps(map));
tools/perf/util/symbol.c
2139
if (machine->kallsyms_filename) {
tools/perf/util/symbol.c
2140
kallsyms_filename = machine->kallsyms_filename;
tools/perf/util/symbol.c
2141
} else if (machine__is_default_guest(machine)) {
tools/perf/util/symbol.c
2158
sprintf(path, "%s/proc/kallsyms", machine->root_dir);
tools/perf/util/symbol.c
2167
dso__set_long_name(dso, machine->mmap_name, false);
tools/perf/util/symbol.c
861
struct machine *machine;
tools/perf/util/symbol.c
873
machine = maps__machine(kmaps);
tools/perf/util/symbol.c
875
x86_64 = machine__is(machine, "x86_64");
tools/perf/util/symbol.c
895
machine__is_default_guest(machine)) {
tools/perf/util/symbol.c
912
machine->root_dir, module);
tools/perf/util/symbol.c
918
!machine__is_default_guest(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
1853
struct evlist *evlist, struct machine *machine, size_t from)
tools/perf/util/synthetic-events.c
1902
err = process(tool, ev, NULL, machine);
tools/perf/util/synthetic-events.c
1937
err = process(tool, ev, NULL, machine);
tools/perf/util/synthetic-events.c
194
struct machine *machine)
tools/perf/util/synthetic-events.c
1945
struct evlist *evlist, struct machine *machine)
tools/perf/util/synthetic-events.c
1947
return __perf_event__synthesize_id_index(tool, process, evlist, machine, 0);
tools/perf/util/synthetic-events.c
1950
int __machine__synthesize_threads(struct machine *machine, const struct perf_tool *tool,
tools/perf/util/synthetic-events.c
1975
return perf_event__synthesize_thread_map(tool, threads, process, machine,
tools/perf/util/synthetic-events.c
1978
return perf_event__synthesize_threads(tool, process, machine,
tools/perf/util/synthetic-events.c
1985
int machine__synthesize_threads(struct machine *machine, struct target *target,
tools/perf/util/synthetic-events.c
1989
return __machine__synthesize_threads(machine, NULL, target, threads,
tools/perf/util/synthetic-events.c
199
if (perf_event__prepare_comm(event, 0, pid, machine, &tgid, &ppid,
tools/perf/util/synthetic-events.c
203
if (perf_tool__process_synth_event(tool, event, machine, process) != 0)
tools/perf/util/synthetic-events.c
2253
struct machine *machine,
tools/perf/util/synthetic-events.c
226
struct machine *machine)
tools/perf/util/synthetic-events.c
2274
ev.build_id.pid = machine->pid;
tools/perf/util/synthetic-events.c
2295
return process(tool, &ev, sample, machine);
tools/perf/util/synthetic-events.c
2300
struct machine *machine,
tools/perf/util/synthetic-events.c
2353
return process(tool, &ev, sample, machine);
tools/perf/util/synthetic-events.c
236
machine->id_hdr_size));
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
59
struct machine *machine,
tools/perf/util/synthetic-events.h
68
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
74
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
76
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
77
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
79
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
80
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
81
int perf_event__synthesize_modules(const struct perf_tool *tool, perf_event__handler_t process, struct machine *machine);
tools/perf/util/synthetic-events.h
82
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
83
int perf_event__synthesize_cgroups(const struct perf_tool *tool, perf_event__handler_t process, struct machine *machine);
tools/perf/util/synthetic-events.h
85
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
87
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
88
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
89
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
90
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
91
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
93
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
94
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
98
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
468
struct machine *machine;
tools/perf/util/thread.c
481
args->e_machine = dso__e_machine(dso, args->machine, &args->e_flags);
tools/perf/util/thread.c
485
uint16_t thread__e_machine(struct thread *thread, struct machine *machine, uint32_t *e_flags)
tools/perf/util/thread.c
491
.machine = machine,
tools/perf/util/thread.c
502
if (machine == NULL) {
tools/perf/util/thread.c
505
machine = maps__machine(maps);
tools/perf/util/thread.c
510
struct thread *parent = machine__findnew_thread(machine, pid, pid);
tools/perf/util/thread.c
513
e_machine = thread__e_machine(parent, machine, &local_e_flags);
tools/perf/util/thread.c
527
bool is_live = machine->machines == NULL;
tools/perf/util/thread.c
531
struct perf_session *session = container_of(machine->machines,
tools/perf/util/thread.c
554
struct thread *thread__main_thread(struct machine *machine, struct thread *thread)
tools/perf/util/thread.c
562
return machine__find_thread(machine, thread__pid(thread), thread__pid(thread));
tools/perf/util/thread.c
565
int thread__memcpy(struct thread *thread, struct machine *machine,
tools/perf/util/thread.c
573
if (machine__kernel_ip(machine, ip))
tools/perf/util/thread.c
595
return dso__data_read_offset(dso, machine, offset, buf, len);
tools/perf/util/thread.h
120
struct thread *thread__main_thread(struct machine *machine, struct thread *thread);
tools/perf/util/thread.h
135
int thread__memcpy(struct thread *thread, struct machine *machine,
tools/perf/util/thread.h
314
uint16_t thread__e_machine(struct thread *thread, struct machine *machine, uint32_t *e_flags);
tools/perf/util/thread.h
77
struct machine;
tools/perf/util/thread.h
82
int thread__init_maps(struct thread *thread, struct machine *machine);
tools/perf/util/tool.c
114
struct machine *machine __maybe_unused)
tools/perf/util/tool.c
123
struct machine *machine __maybe_unused)
tools/perf/util/tool.c
352
struct machine *machine) \
tools/perf/util/tool.c
356
return delegate->name(delegate, event, sample, evsel, machine); \
tools/perf/util/tool.c
389
struct machine *machine) \
tools/perf/util/tool.c
393
return delegate->name(delegate, event, sample, machine); \
tools/perf/util/tool.h
107
struct machine *machine);
tools/perf/util/tool.h
15
struct machine;
tools/perf/util/tool.h
20
struct evsel *evsel, struct machine *machine);
tools/perf/util/tool.h
23
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
102
struct machine *machine);
tools/perf/util/trace-event.h
11
struct machine;
tools/perf/util/trace-event.h
110
struct machine *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-local.c
284
static int unwind_spec_ehframe(struct dso *dso, struct machine *machine,
tools/perf/util/unwind-libunwind-local.c
292
r = dso__data_read_offset(dso, machine, offset,
tools/perf/util/unwind-libunwind-local.c
333
if (!dso__data_get_fd(dso, ui->machine, &fd))
tools/perf/util/unwind-libunwind-local.c
351
ret = unwind_spec_ehframe(dso, ui->machine, dso__data(dso)->eh_frame_hdr_offset,
tools/perf/util/unwind-libunwind-local.c
362
struct machine *machine, u64 *offset)
tools/perf/util/unwind-libunwind-local.c
374
if (dso__data_get_fd(dso, machine, &fd)) {
tools/perf/util/unwind-libunwind-local.c
398
machine->root_dir, debuglink, PATH_MAX);
tools/perf/util/unwind-libunwind-local.c
485
!read_unwind_spec_debug_frame(dso, ui->machine, &segbase)) {
tools/perf/util/unwind-libunwind-local.c
491
if (dso__data_get_fd(dso, ui->machine, &fd)) {
tools/perf/util/unwind-libunwind-local.c
564
size = dso__data_read_addr(dso, map, ui->machine,
tools/perf/util/unwind-libunwind-local.c
588
ui->machine,
tools/perf/util/unwind-libunwind-local.c
738
uint16_t e_machine = thread__e_machine(ui->thread, ui->machine, /*e_flags=*/NULL);
tools/perf/util/unwind-libunwind-local.c
808
.machine = maps__machine(thread__maps(thread)),
tools/perf/util/unwind-libunwind-local.c
97
struct machine *machine;
tools/perf/util/unwind-libunwind.c
21
struct machine *machine;
tools/perf/util/unwind-libunwind.c
34
machine = maps__machine(maps);
tools/perf/util/unwind-libunwind.c
36
if (!machine->env || !machine->env->arch)
tools/perf/util/unwind-libunwind.c
39
dso_type = dso__type(dso, machine);
tools/perf/util/unwind-libunwind.c
43
arch = perf_env__arch(machine->env);
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
45
if (!ret && (!strcmp(uts.machine, "ppc64le") ||
tools/power/cpupower/utils/cpupower-info.c
46
!strcmp(uts.machine, "ppc64"))) {
tools/power/cpupower/utils/cpupower-set.c
55
if (!ret && (!strcmp(uts.machine, "ppc64le") ||
tools/power/cpupower/utils/cpupower-set.c
56
!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
3178
if ((strncmp(utsbuf.machine, "arm", 3) == 0) &&
tools/testing/selftests/seccomp/seccomp_bpf.c
3179
(strncmp(utsbuf.machine, "armv8l", 6) != 0) &&
tools/testing/selftests/seccomp/seccomp_bpf.c
3180
(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, "");