machine 129 arch/alpha/kernel/irq_alpha.c const char *machine, int expected) machine 141 arch/alpha/kernel/irq_alpha.c printk(KERN_CRIT "%s machine check %s\n", machine, machine 156 arch/alpha/kernel/irq_alpha.c machine, vector, get_irq_regs()->pc, mchk_header->code); machine 539 arch/alpha/kernel/osf_sys.c memcpy(tmp + 4 * 32, utsname()->machine, 32); machine 731 arch/alpha/kernel/osf_sys.c utsname()->machine, machine 223 arch/alpha/kernel/proto.h const char *machine, int expected); machine 712 arch/arm/kernel/setup.c snprintf(init_utsname()->machine, __NEW_UTS_LEN + 1, "%s%c", machine 57 arch/arm/mach-davinci/include/mach/uncompress.h #define _DEBUG_LL_ENTRY(machine, phys) \ machine 59 arch/arm/mach-davinci/include/mach/uncompress.h if (machine_is_##machine()) { \ machine 65 arch/arm/mach-davinci/include/mach/uncompress.h #define DEBUG_LL_DAVINCI(machine, port) \ machine 66 arch/arm/mach-davinci/include/mach/uncompress.h _DEBUG_LL_ENTRY(machine, DAVINCI_UART##port##_BASE) machine 68 arch/arm/mach-davinci/include/mach/uncompress.h #define DEBUG_LL_DA8XX(machine, port) \ machine 69 arch/arm/mach-davinci/include/mach/uncompress.h _DEBUG_LL_ENTRY(machine, DA8XX_UART##port##_BASE) machine 949 arch/arm/mach-ep93xx/core.c soc_dev_attr->machine = ep93xx_get_machine_name(); machine 956 arch/arm/mach-ep93xx/core.c kfree(soc_dev_attr->machine); machine 91 arch/arm/mach-imx/cpu.c ret = of_property_read_string(root, "model", &soc_dev_attr->machine); machine 389 arch/arm/mach-mxs/mach-mxs.c ret = of_property_read_string(root, "model", &soc_dev_attr->machine); machine 798 arch/arm/mach-omap2/id.c soc_dev_attr->machine = soc_name; machine 141 arch/m68k/fpsp040/fpsp.h .set CMDREG2B,LV-52 | cmd reg for machine 2 machine 23 arch/nios2/platform/platform.c const char *machine; machine 27 arch/nios2/platform/platform.c machine = of_flat_dt_get_machine_name(); machine 28 arch/nios2/platform/platform.c if (machine) machine 29 arch/nios2/platform/platform.c soc_dev_attr->machine = kasprintf(GFP_KERNEL, "%s", machine 30 arch/nios2/platform/platform.c machine); machine 36 arch/nios2/platform/platform.c kfree(soc_dev_attr->machine); machine 442 arch/powerpc/include/asm/ppc_asm.h .machine push; \ machine 443 arch/powerpc/include/asm/ppc_asm.h .machine "power4"; \ machine 445 arch/powerpc/include/asm/ppc_asm.h .machine pop; \ machine 215 arch/powerpc/platforms/chrp/pci.c const char *model, *machine; machine 224 arch/powerpc/platforms/chrp/pci.c machine = of_get_property(root, "model", NULL); machine 225 arch/powerpc/platforms/chrp/pci.c if (machine != NULL) { machine 226 arch/powerpc/platforms/chrp/pci.c is_longtrail = strncmp(machine, "IBM,LongTrail", 13) == 0; machine 227 arch/powerpc/platforms/chrp/pci.c is_mot = strncmp(machine, "MOT", 3) == 0; machine 228 arch/powerpc/platforms/chrp/pci.c if (strncmp(machine, "Pegasos2", 8) == 0) machine 230 arch/powerpc/platforms/chrp/pci.c else if (strncmp(machine, "Pegasos", 7) == 0) machine 299 arch/powerpc/platforms/chrp/setup.c const char *machine = NULL; machine 305 arch/powerpc/platforms/chrp/setup.c machine = of_get_property(root, "model", NULL); machine 306 arch/powerpc/platforms/chrp/setup.c if (machine && strncmp(machine, "Pegasos", 7) == 0) { machine 308 arch/powerpc/platforms/chrp/setup.c } else if (machine && strncmp(machine, "IBM", 3) == 0) { machine 310 arch/powerpc/platforms/chrp/setup.c } else if (machine && strncmp(machine, "MOT", 3) == 0) { machine 312 arch/powerpc/platforms/chrp/setup.c } else if (machine && strncmp(machine, "TotalImpact,BRIQ-1", 18) == 0) { machine 42 arch/s390/boot/als.c u16_to_hex(type_str, id.machine); machine 20 arch/s390/include/asm/cpu.h unsigned int machine : 16; machine 116 arch/s390/kernel/perf_cpum_cf_diag.c te->mach_type = cpuid.machine; machine 608 arch/s390/kernel/perf_cpum_cf_events.c switch (cpu_id.machine) { machine 150 arch/s390/kernel/processor.c cpu, id->version, id->ident, id->machine); machine 953 arch/s390/kernel/setup.c switch (cpu_id.machine) { machine 23 arch/sh/include/asm/bugs.h char *p = &init_utsname()->machine[2]; /* "sh" */ machine 134 arch/sh/include/asm/elf.h #define ELF_PLATFORM (utsname()->machine) machine 94 arch/sh/kernel/cpu/proc.c seq_printf(m, "cpu family\t: %s\n", init_utsname()->machine); machine 108 arch/um/drivers/mconsole_kern.c utsname()->machine); machine 299 arch/um/kernel/um_arch.c setup_machinename(init_utsname()->machine); machine 55 arch/um/os-Linux/util.c if (!strcmp(host.machine, "x86_64")) { machine 60 arch/um/os-Linux/util.c if (!strcmp(host.machine, "i686")) { machine 66 arch/um/os-Linux/util.c strcpy(machine_out, host.machine); machine 75 arch/um/os-Linux/util.c host.release, host.version, host.machine); machine 93 arch/unicore32/kernel/setup.c sprintf(init_utsname()->machine, "puv3"); machine 153 arch/x86/include/asm/elf.h #define ELF_PLATFORM (utsname()->machine) machine 245 arch/x86/include/asm/xen/page.h static inline xpaddr_t machine_to_phys(xmaddr_t machine) machine 247 arch/x86/include/asm/xen/page.h unsigned offset = machine.maddr & ~PAGE_MASK; machine 248 arch/x86/include/asm/xen/page.h return XPADDR(PFN_PHYS(mfn_to_pfn(PFN_DOWN(machine.maddr))) | offset); machine 133 arch/x86/kernel/cpu/bugs.c init_utsname()->machine[1] = machine 34 drivers/base/soc.c static DEVICE_ATTR(machine, S_IRUGO, soc_info_get, NULL); machine 53 drivers/base/soc.c && (soc_dev->attr->machine != NULL)) machine 79 drivers/base/soc.c return sprintf(buf, "%s\n", soc_dev->attr->machine); machine 197 drivers/base/soc.c if (match->machine && machine 198 drivers/base/soc.c (!attr->machine || !glob_match(match->machine, attr->machine))) machine 250 drivers/base/soc.c if (!(matches->machine || matches->family || machine 667 drivers/gpu/drm/i915/i915_gpu_error.c init_utsname()->machine); machine 4744 drivers/gpu/drm/omapdrm/dss/dispc.c { .machine = "OMAP3[45]*", machine 4746 drivers/gpu/drm/omapdrm/dss/dispc.c { .machine = "OMAP3[45]*", .data = &omap34xx_rev3_0_dispc_feats }, machine 4747 drivers/gpu/drm/omapdrm/dss/dispc.c { .machine = "AM35*", .data = &omap34xx_rev3_0_dispc_feats }, machine 4748 drivers/gpu/drm/omapdrm/dss/dispc.c { .machine = "AM43*", .data = &am43xx_dispc_feats }, machine 651 drivers/gpu/drm/omapdrm/dss/dpi.c { .machine = "OMAP3[456]*" }, machine 652 drivers/gpu/drm/omapdrm/dss/dpi.c { .machine = "[AD]M37*" }, machine 5257 drivers/gpu/drm/omapdrm/dss/dsi.c { .machine = "OMAP3[45]*", .data = &dsi_of_data_omap34xx }, machine 5258 drivers/gpu/drm/omapdrm/dss/dsi.c { .machine = "AM35*", .data = &dsi_of_data_omap34xx }, machine 1289 drivers/gpu/drm/omapdrm/dss/dss.c { .machine = "OMAP3430/3530", .data = &omap34xx_dss_feats }, machine 1290 drivers/gpu/drm/omapdrm/dss/dss.c { .machine = "AM35??", .data = &omap34xx_dss_feats }, machine 894 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c .machine = "OMAP4430", machine 899 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c .machine = "OMAP4430", machine 819 drivers/gpu/drm/omapdrm/dss/venc.c { .machine = "OMAP3[45]*" }, machine 820 drivers/gpu/drm/omapdrm/dss/venc.c { .machine = "AM35*" }, machine 1020 drivers/mmc/host/sdhci-omap.c .machine = "DRA7[45]*", machine 858 drivers/s390/cio/css.c css->global_pgid.cpu_model = cpu_id.machine; machine 1890 drivers/scsi/qla2xxx/qla_mr.c strlcpy(phost_info->machine, p_sysid->machine, machine 1891 drivers/scsi/qla2xxx/qla_mr.c sizeof(phost_info->machine)); machine 1912 drivers/scsi/qla2xxx/qla_mr.c phost_info->machine, machine 265 drivers/scsi/qla2xxx/qla_mr.h char machine[MACHINE_LENGTH]; machine 1796 drivers/scsi/qla2xxx/tcm_qla2xxx.c utsname()->machine, utsname()->release); machine 1898 drivers/scsi/qla2xxx/tcm_qla2xxx.c utsname()->machine, utsname()->release); machine 173 drivers/soc/amlogic/meson-gx-socinfo.c of_property_read_string(np, "model", &soc_dev_attr->machine); machine 155 drivers/soc/amlogic/meson-mx-socinfo.c of_property_read_string(np, "model", &soc_dev_attr->machine); machine 145 drivers/soc/fsl/guts.c const char *machine; machine 162 drivers/soc/fsl/guts.c if (of_property_read_string(root, "model", &machine)) machine 163 drivers/soc/fsl/guts.c of_property_read_string_index(root, "compatible", 0, &machine); machine 164 drivers/soc/fsl/guts.c if (machine) machine 165 drivers/soc/fsl/guts.c soc_dev_attr.machine = machine; machine 190 drivers/soc/fsl/guts.c pr_info("Machine: %s\n", soc_dev_attr.machine); machine 107 drivers/soc/imx/soc-imx-scu.c &soc_dev_attr->machine); machine 154 drivers/soc/imx/soc-imx8.c ret = of_property_read_string(of_root, "model", &soc_dev_attr->machine); machine 429 drivers/soc/qcom/socinfo.c qs->attr.machine = socinfo_machine(&pdev->dev, machine 355 drivers/soc/renesas/renesas-soc.c of_property_read_string(np, "model", &soc_dev_attr->machine); machine 75 drivers/soc/samsung/exynos-chipid.c of_property_read_string(root, "model", &soc_dev_attr->machine); machine 184 drivers/soc/ux500/ux500-soc-id.c soc_dev_attr->machine = ux500_get_machine(); machine 128 drivers/soc/versatile/soc-integrator.c soc_dev_attr->machine = "Integrator"; machine 103 drivers/soc/versatile/soc-realview.c soc_dev_attr->machine = "RealView"; machine 89 drivers/target/target_core_configfs.c utsname()->sysname, utsname()->machine); machine 3465 drivers/target/target_core_configfs.c TARGET_CORE_VERSION, utsname()->sysname, utsname()->machine); machine 3521 drivers/target/target_core_configfs.c " on "UTS_RELEASE"\n", utsname()->sysname, utsname()->machine); machine 372 drivers/target/tcm_fc/tfc_conf.c ""UTS_RELEASE"\n", utsname()->sysname, utsname()->machine); machine 2280 drivers/vhost/scsi.c utsname()->machine); machine 2333 drivers/vhost/scsi.c utsname()->machine); machine 1700 drivers/xen/xen-scsiback.c VSCSI_VERSION, utsname()->sysname, utsname()->machine); machine 1857 drivers/xen/xen-scsiback.c VSCSI_VERSION, utsname()->sysname, utsname()->machine); machine 1427 fs/binfmt_elf.c u16 machine, u32 flags) machine 1438 fs/binfmt_elf.c elf->e_machine = machine; machine 301 fs/nfs/nfs4xdr.c sizeof(utsname()->version) + sizeof(utsname()->machine) + 8) machine 1816 fs/nfs/nfs4xdr.c utsname()->version, utsname()->machine); machine 22 include/linux/asn1_ber_bytecode.h const unsigned char *machine; machine 168 include/linux/pe.h uint16_t machine; /* machine type */ machine 12 include/linux/sys_soc.h const char *machine; machine 51 include/sound/sof.h const struct snd_soc_acpi_mach *machine; machine 12 include/uapi/linux/utsname.h char machine[9]; machine 22 include/uapi/linux/utsname.h char machine[65]; machine 30 include/uapi/linux/utsname.h char machine[__NEW_UTS_LEN + 1]; machine 34 init/version.c .machine = UTS_MACHINE, machine 2522 kernel/debug/kdb/kdb_main.c kdb_printf("machine %s\n", init_uts_ns.name.machine); machine 2036 kernel/power/snapshot.c if (strcmp(info->uts.machine,init_utsname()->machine)) machine 1201 kernel/sys.c copy_to_user(name->machine, COMPAT_UTS_MACHINE, \ machine 1292 kernel/sys.c memcpy(&tmp.machine, &utsname()->machine, __OLD_UTS_LEN); machine 172 lib/asn1_decoder.c const unsigned char *machine = decoder->machine; machine 205 lib/asn1_decoder.c op = machine[pc]; machine 241 lib/asn1_decoder.c optag = machine[pc + 1]; machine 343 lib/asn1_decoder.c act = machine[pc + 1]; machine 345 lib/asn1_decoder.c act = machine[pc + 2]; machine 363 lib/asn1_decoder.c pc = machine[pc + 2]; machine 410 lib/asn1_decoder.c pc = machine[pc + 1]; machine 423 lib/asn1_decoder.c pc = machine[pc + 1]; machine 436 lib/asn1_decoder.c act = machine[pc + 2]; machine 438 lib/asn1_decoder.c act = machine[pc + 1]; machine 454 lib/asn1_decoder.c ret = actions[machine[pc + 1]](context, hdr, tag, data + tdp, len); machine 1249 net/bluetooth/hci_sock.c init_utsname()->machine); machine 83 sound/core/info_oss.c init_utsname()->machine); machine 146 sound/soc/amd/acp-da7219-max98357a.c struct acp_platform_info *machine = snd_soc_card_get_drvdata(card); machine 158 sound/soc/amd/acp-da7219-max98357a.c machine->play_i2s_instance = I2S_SP_INSTANCE; machine 167 sound/soc/amd/acp-da7219-max98357a.c struct acp_platform_info *machine = snd_soc_card_get_drvdata(card); machine 179 sound/soc/amd/acp-da7219-max98357a.c machine->cap_i2s_instance = I2S_SP_INSTANCE; machine 180 sound/soc/amd/acp-da7219-max98357a.c machine->capture_channel = CAP_CHANNEL1; machine 189 sound/soc/amd/acp-da7219-max98357a.c struct acp_platform_info *machine = snd_soc_card_get_drvdata(card); machine 201 sound/soc/amd/acp-da7219-max98357a.c machine->play_i2s_instance = I2S_BT_INSTANCE; machine 210 sound/soc/amd/acp-da7219-max98357a.c struct acp_platform_info *machine = snd_soc_card_get_drvdata(card); machine 222 sound/soc/amd/acp-da7219-max98357a.c machine->cap_i2s_instance = I2S_BT_INSTANCE; machine 231 sound/soc/amd/acp-da7219-max98357a.c struct acp_platform_info *machine = snd_soc_card_get_drvdata(card); machine 243 sound/soc/amd/acp-da7219-max98357a.c machine->cap_i2s_instance = I2S_SP_INSTANCE; machine 244 sound/soc/amd/acp-da7219-max98357a.c machine->capture_channel = CAP_CHANNEL0; machine 439 sound/soc/amd/acp-da7219-max98357a.c struct acp_platform_info *machine; machine 451 sound/soc/amd/acp-da7219-max98357a.c machine = devm_kzalloc(&pdev->dev, sizeof(struct acp_platform_info), machine 453 sound/soc/amd/acp-da7219-max98357a.c if (!machine) machine 458 sound/soc/amd/acp-da7219-max98357a.c snd_soc_card_set_drvdata(card, machine); machine 36 sound/soc/rockchip/rk3288_hdmi_analog.c struct rk_drvdata *machine = snd_soc_card_get_drvdata(w->dapm->card); machine 38 sound/soc/rockchip/rk3288_hdmi_analog.c if (!gpio_is_valid(machine->gpio_hp_en)) machine 41 sound/soc/rockchip/rk3288_hdmi_analog.c gpio_set_value_cansleep(machine->gpio_hp_en, machine 123 sound/soc/rockchip/rk3288_hdmi_analog.c struct rk_drvdata *machine = snd_soc_card_get_drvdata(runtime->card); machine 126 sound/soc/rockchip/rk3288_hdmi_analog.c if (gpio_is_valid(machine->gpio_hp_det)) { machine 131 sound/soc/rockchip/rk3288_hdmi_analog.c rk_hp_jack_gpio.gpio = machine->gpio_hp_det; machine 175 sound/soc/rockchip/rk3288_hdmi_analog.c struct rk_drvdata *machine; machine 178 sound/soc/rockchip/rk3288_hdmi_analog.c machine = devm_kzalloc(&pdev->dev, sizeof(struct rk_drvdata), machine 180 sound/soc/rockchip/rk3288_hdmi_analog.c if (!machine) machine 185 sound/soc/rockchip/rk3288_hdmi_analog.c machine->gpio_hp_det = of_get_named_gpio(np, machine 187 sound/soc/rockchip/rk3288_hdmi_analog.c if (!gpio_is_valid(machine->gpio_hp_det) && machine->gpio_hp_det != -ENODEV) machine 188 sound/soc/rockchip/rk3288_hdmi_analog.c return machine->gpio_hp_det; machine 190 sound/soc/rockchip/rk3288_hdmi_analog.c machine->gpio_hp_en = of_get_named_gpio(np, machine 192 sound/soc/rockchip/rk3288_hdmi_analog.c if (!gpio_is_valid(machine->gpio_hp_en) && machine->gpio_hp_en != -ENODEV) machine 193 sound/soc/rockchip/rk3288_hdmi_analog.c return machine->gpio_hp_en; machine 195 sound/soc/rockchip/rk3288_hdmi_analog.c if (gpio_is_valid(machine->gpio_hp_en)) { machine 196 sound/soc/rockchip/rk3288_hdmi_analog.c ret = devm_gpio_request_one(&pdev->dev, machine->gpio_hp_en, machine 249 sound/soc/rockchip/rk3288_hdmi_analog.c snd_soc_card_set_drvdata(card, machine); machine 263 sound/soc/sof/core.c struct snd_soc_acpi_mach *machine; machine 267 sound/soc/sof/core.c if (plat_data->machine) machine 276 sound/soc/sof/core.c machine = devm_kzalloc(sdev->dev, sizeof(*machine), GFP_KERNEL); machine 277 sound/soc/sof/core.c if (!machine) machine 280 sound/soc/sof/core.c ret = sof_nocodec_setup(sdev->dev, plat_data, machine, machine 285 sound/soc/sof/core.c plat_data->machine = machine; machine 421 sound/soc/sof/core.c drv_name = plat_data->machine->drv_name; machine 422 sound/soc/sof/core.c mach = (const void *)plat_data->machine; machine 423 sound/soc/sof/core.c size = sizeof(*plat_data->machine); machine 411 sound/soc/sof/intel/hda.c if (!pdata->machine && codec_num <= 2 && machine 414 sound/soc/sof/intel/hda.c pdata->machine = hda_mach; machine 464 sound/soc/sof/intel/hda.c if (pdata->machine) { machine 466 sound/soc/sof/intel/hda.c &pdata->machine->mach_params; machine 750 sound/soc/sof/pcm.c drv_name = plat_data->machine->drv_name; machine 186 sound/soc/sof/sof-acpi-dev.c sof_pdata->machine = mach; machine 86 sound/soc/sof/sof-of-dev.c sof_pdata->machine = mach; machine 326 sound/soc/sof/sof-pci-dev.c sof_pdata->machine = mach; machine 102 sound/soc/tegra/tegra_alc5632.c struct tegra_alc5632 *machine = snd_soc_card_get_drvdata(rtd->card); machine 112 sound/soc/tegra/tegra_alc5632.c if (gpio_is_valid(machine->gpio_hp_det)) { machine 113 sound/soc/tegra/tegra_alc5632.c tegra_alc5632_hp_jack_gpio.gpio = machine->gpio_hp_det; machine 229 sound/soc/tegra/tegra_alc5632.c struct tegra_alc5632 *machine = snd_soc_card_get_drvdata(card); machine 233 sound/soc/tegra/tegra_alc5632.c tegra_asoc_utils_fini(&machine->util_data); machine 43 sound/soc/tegra/tegra_max98090.c struct tegra_max98090 *machine = snd_soc_card_get_drvdata(card); machine 69 sound/soc/tegra/tegra_max98090.c err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); machine 137 sound/soc/tegra/tegra_max98090.c struct tegra_max98090 *machine = snd_soc_card_get_drvdata(rtd->card); machine 139 sound/soc/tegra/tegra_max98090.c if (gpio_is_valid(machine->gpio_hp_det)) { machine 146 sound/soc/tegra/tegra_max98090.c tegra_max98090_hp_jack_gpio.gpio = machine->gpio_hp_det; machine 152 sound/soc/tegra/tegra_max98090.c if (gpio_is_valid(machine->gpio_mic_det)) { machine 159 sound/soc/tegra/tegra_max98090.c tegra_max98090_mic_jack_gpio.gpio = machine->gpio_mic_det; machine 199 sound/soc/tegra/tegra_max98090.c struct tegra_max98090 *machine; machine 202 sound/soc/tegra/tegra_max98090.c machine = devm_kzalloc(&pdev->dev, machine 204 sound/soc/tegra/tegra_max98090.c if (!machine) machine 208 sound/soc/tegra/tegra_max98090.c snd_soc_card_set_drvdata(card, machine); machine 210 sound/soc/tegra/tegra_max98090.c machine->gpio_hp_det = of_get_named_gpio(np, "nvidia,hp-det-gpios", 0); machine 211 sound/soc/tegra/tegra_max98090.c if (machine->gpio_hp_det == -EPROBE_DEFER) machine 214 sound/soc/tegra/tegra_max98090.c machine->gpio_mic_det = machine 216 sound/soc/tegra/tegra_max98090.c if (machine->gpio_mic_det == -EPROBE_DEFER) machine 247 sound/soc/tegra/tegra_max98090.c ret = tegra_asoc_utils_init(&machine->util_data, &pdev->dev); machine 261 sound/soc/tegra/tegra_max98090.c tegra_asoc_utils_fini(&machine->util_data); machine 269 sound/soc/tegra/tegra_max98090.c struct tegra_max98090 *machine = snd_soc_card_get_drvdata(card); machine 273 sound/soc/tegra/tegra_max98090.c tegra_asoc_utils_fini(&machine->util_data); machine 45 sound/soc/tegra/tegra_rt5640.c struct tegra_rt5640 *machine = snd_soc_card_get_drvdata(card); machine 52 sound/soc/tegra/tegra_rt5640.c err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); machine 100 sound/soc/tegra/tegra_rt5640.c struct tegra_rt5640 *machine = snd_soc_card_get_drvdata(rtd->card); machine 106 sound/soc/tegra/tegra_rt5640.c if (gpio_is_valid(machine->gpio_hp_det)) { machine 107 sound/soc/tegra/tegra_rt5640.c tegra_rt5640_hp_jack_gpio.gpio = machine->gpio_hp_det; machine 109 sound/soc/tegra/tegra_rt5640.c !!(machine->gpio_hp_det_flags & OF_GPIO_ACTIVE_LOW); machine 149 sound/soc/tegra/tegra_rt5640.c struct tegra_rt5640 *machine; machine 152 sound/soc/tegra/tegra_rt5640.c machine = devm_kzalloc(&pdev->dev, machine 154 sound/soc/tegra/tegra_rt5640.c if (!machine) machine 158 sound/soc/tegra/tegra_rt5640.c snd_soc_card_set_drvdata(card, machine); machine 160 sound/soc/tegra/tegra_rt5640.c machine->gpio_hp_det = of_get_named_gpio_flags( machine 161 sound/soc/tegra/tegra_rt5640.c np, "nvidia,hp-det-gpios", 0, &machine->gpio_hp_det_flags); machine 162 sound/soc/tegra/tegra_rt5640.c if (machine->gpio_hp_det == -EPROBE_DEFER) machine 193 sound/soc/tegra/tegra_rt5640.c ret = tegra_asoc_utils_init(&machine->util_data, &pdev->dev); machine 207 sound/soc/tegra/tegra_rt5640.c tegra_asoc_utils_fini(&machine->util_data); machine 215 sound/soc/tegra/tegra_rt5640.c struct tegra_rt5640 *machine = snd_soc_card_get_drvdata(card); machine 219 sound/soc/tegra/tegra_rt5640.c tegra_asoc_utils_fini(&machine->util_data); machine 47 sound/soc/tegra/tegra_rt5677.c struct tegra_rt5677 *machine = snd_soc_card_get_drvdata(card); machine 53 sound/soc/tegra/tegra_rt5677.c err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); machine 74 sound/soc/tegra/tegra_rt5677.c struct tegra_rt5677 *machine = snd_soc_card_get_drvdata(card); machine 76 sound/soc/tegra/tegra_rt5677.c if (!gpio_is_valid(machine->gpio_hp_en)) machine 79 sound/soc/tegra/tegra_rt5677.c gpio_set_value_cansleep(machine->gpio_hp_en, machine 133 sound/soc/tegra/tegra_rt5677.c struct tegra_rt5677 *machine = snd_soc_card_get_drvdata(rtd->card); machine 139 sound/soc/tegra/tegra_rt5677.c if (gpio_is_valid(machine->gpio_hp_det)) { machine 140 sound/soc/tegra/tegra_rt5677.c tegra_rt5677_hp_jack_gpio.gpio = machine->gpio_hp_det; machine 150 sound/soc/tegra/tegra_rt5677.c if (gpio_is_valid(machine->gpio_mic_present)) { machine 151 sound/soc/tegra/tegra_rt5677.c tegra_rt5677_mic_jack_gpio.gpio = machine->gpio_mic_present; machine 192 sound/soc/tegra/tegra_rt5677.c struct tegra_rt5677 *machine; machine 195 sound/soc/tegra/tegra_rt5677.c machine = devm_kzalloc(&pdev->dev, machine 197 sound/soc/tegra/tegra_rt5677.c if (!machine) machine 201 sound/soc/tegra/tegra_rt5677.c snd_soc_card_set_drvdata(card, machine); machine 203 sound/soc/tegra/tegra_rt5677.c machine->gpio_hp_det = of_get_named_gpio(np, "nvidia,hp-det-gpios", 0); machine 204 sound/soc/tegra/tegra_rt5677.c if (machine->gpio_hp_det == -EPROBE_DEFER) machine 207 sound/soc/tegra/tegra_rt5677.c machine->gpio_mic_present = of_get_named_gpio(np, machine 209 sound/soc/tegra/tegra_rt5677.c if (machine->gpio_mic_present == -EPROBE_DEFER) machine 212 sound/soc/tegra/tegra_rt5677.c machine->gpio_hp_en = of_get_named_gpio(np, "nvidia,hp-en-gpios", 0); machine 213 sound/soc/tegra/tegra_rt5677.c if (machine->gpio_hp_en == -EPROBE_DEFER) machine 215 sound/soc/tegra/tegra_rt5677.c if (gpio_is_valid(machine->gpio_hp_en)) { machine 216 sound/soc/tegra/tegra_rt5677.c ret = devm_gpio_request_one(&pdev->dev, machine->gpio_hp_en, machine 224 sound/soc/tegra/tegra_rt5677.c machine->gpio_dmic_clk_en = of_get_named_gpio(np, machine 226 sound/soc/tegra/tegra_rt5677.c if (machine->gpio_dmic_clk_en == -EPROBE_DEFER) machine 228 sound/soc/tegra/tegra_rt5677.c if (gpio_is_valid(machine->gpio_dmic_clk_en)) { machine 230 sound/soc/tegra/tegra_rt5677.c machine->gpio_dmic_clk_en, machine 265 sound/soc/tegra/tegra_rt5677.c ret = tegra_asoc_utils_init(&machine->util_data, &pdev->dev); machine 279 sound/soc/tegra/tegra_rt5677.c tegra_asoc_utils_fini(&machine->util_data); machine 294 sound/soc/tegra/tegra_rt5677.c struct tegra_rt5677 *machine = snd_soc_card_get_drvdata(card); machine 298 sound/soc/tegra/tegra_rt5677.c tegra_asoc_utils_fini(&machine->util_data); machine 41 sound/soc/tegra/tegra_sgtl5000.c struct tegra_sgtl5000 *machine = snd_soc_card_get_drvdata(card); machine 58 sound/soc/tegra/tegra_sgtl5000.c err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); machine 112 sound/soc/tegra/tegra_sgtl5000.c struct tegra_sgtl5000 *machine; machine 115 sound/soc/tegra/tegra_sgtl5000.c machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_sgtl5000), machine 117 sound/soc/tegra/tegra_sgtl5000.c if (!machine) machine 121 sound/soc/tegra/tegra_sgtl5000.c snd_soc_card_set_drvdata(card, machine); machine 151 sound/soc/tegra/tegra_sgtl5000.c ret = tegra_asoc_utils_init(&machine->util_data, &pdev->dev); machine 165 sound/soc/tegra/tegra_sgtl5000.c tegra_asoc_utils_fini(&machine->util_data); machine 180 sound/soc/tegra/tegra_sgtl5000.c struct tegra_sgtl5000 *machine = snd_soc_card_get_drvdata(card); machine 185 sound/soc/tegra/tegra_sgtl5000.c tegra_asoc_utils_fini(&machine->util_data); machine 45 sound/soc/tegra/tegra_wm8753.c struct tegra_wm8753 *machine = snd_soc_card_get_drvdata(card); machine 62 sound/soc/tegra/tegra_wm8753.c err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); machine 117 sound/soc/tegra/tegra_wm8753.c struct tegra_wm8753 *machine; machine 120 sound/soc/tegra/tegra_wm8753.c machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_wm8753), machine 122 sound/soc/tegra/tegra_wm8753.c if (!machine) machine 126 sound/soc/tegra/tegra_wm8753.c snd_soc_card_set_drvdata(card, machine); machine 156 sound/soc/tegra/tegra_wm8753.c ret = tegra_asoc_utils_init(&machine->util_data, &pdev->dev); machine 170 sound/soc/tegra/tegra_wm8753.c tegra_asoc_utils_fini(&machine->util_data); machine 178 sound/soc/tegra/tegra_wm8753.c struct tegra_wm8753 *machine = snd_soc_card_get_drvdata(card); machine 182 sound/soc/tegra/tegra_wm8753.c tegra_asoc_utils_fini(&machine->util_data); machine 50 sound/soc/tegra/tegra_wm8903.c struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); machine 69 sound/soc/tegra/tegra_wm8903.c err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); machine 119 sound/soc/tegra/tegra_wm8903.c struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); machine 121 sound/soc/tegra/tegra_wm8903.c if (!gpio_is_valid(machine->gpio_spkr_en)) machine 124 sound/soc/tegra/tegra_wm8903.c gpio_set_value_cansleep(machine->gpio_spkr_en, machine 135 sound/soc/tegra/tegra_wm8903.c struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); machine 137 sound/soc/tegra/tegra_wm8903.c if (!gpio_is_valid(machine->gpio_hp_mute)) machine 140 sound/soc/tegra/tegra_wm8903.c gpio_set_value_cansleep(machine->gpio_hp_mute, machine 161 sound/soc/tegra/tegra_wm8903.c struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); machine 163 sound/soc/tegra/tegra_wm8903.c if (gpio_is_valid(machine->gpio_hp_det)) { machine 164 sound/soc/tegra/tegra_wm8903.c tegra_wm8903_hp_jack_gpio.gpio = machine->gpio_hp_det; machine 231 sound/soc/tegra/tegra_wm8903.c struct tegra_wm8903 *machine; machine 234 sound/soc/tegra/tegra_wm8903.c machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_wm8903), machine 236 sound/soc/tegra/tegra_wm8903.c if (!machine) machine 240 sound/soc/tegra/tegra_wm8903.c snd_soc_card_set_drvdata(card, machine); machine 242 sound/soc/tegra/tegra_wm8903.c machine->gpio_spkr_en = of_get_named_gpio(np, "nvidia,spkr-en-gpios", machine 244 sound/soc/tegra/tegra_wm8903.c if (machine->gpio_spkr_en == -EPROBE_DEFER) machine 246 sound/soc/tegra/tegra_wm8903.c if (gpio_is_valid(machine->gpio_spkr_en)) { machine 247 sound/soc/tegra/tegra_wm8903.c ret = devm_gpio_request_one(&pdev->dev, machine->gpio_spkr_en, machine 255 sound/soc/tegra/tegra_wm8903.c machine->gpio_hp_mute = of_get_named_gpio(np, "nvidia,hp-mute-gpios", machine 257 sound/soc/tegra/tegra_wm8903.c if (machine->gpio_hp_mute == -EPROBE_DEFER) machine 259 sound/soc/tegra/tegra_wm8903.c if (gpio_is_valid(machine->gpio_hp_mute)) { machine 260 sound/soc/tegra/tegra_wm8903.c ret = devm_gpio_request_one(&pdev->dev, machine->gpio_hp_mute, machine 268 sound/soc/tegra/tegra_wm8903.c machine->gpio_hp_det = of_get_named_gpio(np, "nvidia,hp-det-gpios", 0); machine 269 sound/soc/tegra/tegra_wm8903.c if (machine->gpio_hp_det == -EPROBE_DEFER) machine 272 sound/soc/tegra/tegra_wm8903.c machine->gpio_int_mic_en = of_get_named_gpio(np, machine 274 sound/soc/tegra/tegra_wm8903.c if (machine->gpio_int_mic_en == -EPROBE_DEFER) machine 276 sound/soc/tegra/tegra_wm8903.c if (gpio_is_valid(machine->gpio_int_mic_en)) { machine 279 sound/soc/tegra/tegra_wm8903.c machine->gpio_int_mic_en, machine 287 sound/soc/tegra/tegra_wm8903.c machine->gpio_ext_mic_en = of_get_named_gpio(np, machine 289 sound/soc/tegra/tegra_wm8903.c if (machine->gpio_ext_mic_en == -EPROBE_DEFER) machine 291 sound/soc/tegra/tegra_wm8903.c if (gpio_is_valid(machine->gpio_ext_mic_en)) { machine 294 sound/soc/tegra/tegra_wm8903.c machine->gpio_ext_mic_en, machine 330 sound/soc/tegra/tegra_wm8903.c ret = tegra_asoc_utils_init(&machine->util_data, &pdev->dev); machine 344 sound/soc/tegra/tegra_wm8903.c tegra_asoc_utils_fini(&machine->util_data); machine 352 sound/soc/tegra/tegra_wm8903.c struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); machine 356 sound/soc/tegra/tegra_wm8903.c tegra_asoc_utils_fini(&machine->util_data); machine 70 sound/soc/tegra/tegra_wm9712.c struct tegra_wm9712 *machine; machine 73 sound/soc/tegra/tegra_wm9712.c machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_wm9712), machine 75 sound/soc/tegra/tegra_wm9712.c if (!machine) machine 79 sound/soc/tegra/tegra_wm9712.c snd_soc_card_set_drvdata(card, machine); machine 81 sound/soc/tegra/tegra_wm9712.c machine->codec = platform_device_alloc("wm9712-codec", -1); machine 82 sound/soc/tegra/tegra_wm9712.c if (!machine->codec) { machine 87 sound/soc/tegra/tegra_wm9712.c ret = platform_device_add(machine->codec); machine 110 sound/soc/tegra/tegra_wm9712.c ret = tegra_asoc_utils_init(&machine->util_data, &pdev->dev); machine 114 sound/soc/tegra/tegra_wm9712.c ret = tegra_asoc_utils_set_ac97_rate(&machine->util_data); machine 128 sound/soc/tegra/tegra_wm9712.c tegra_asoc_utils_fini(&machine->util_data); machine 130 sound/soc/tegra/tegra_wm9712.c platform_device_del(machine->codec); machine 132 sound/soc/tegra/tegra_wm9712.c platform_device_put(machine->codec); machine 139 sound/soc/tegra/tegra_wm9712.c struct tegra_wm9712 *machine = snd_soc_card_get_drvdata(card); machine 143 sound/soc/tegra/tegra_wm9712.c tegra_asoc_utils_fini(&machine->util_data); machine 145 sound/soc/tegra/tegra_wm9712.c platform_device_unregister(machine->codec); machine 427 tools/hv/hv_kvp_daemon.c processor_arch = uts_buf.machine; machine 11 tools/perf/arch/x86/util/archinsn.c struct machine *machine) machine 19 tools/perf/arch/x86/util/archinsn.c len = thread__memcpy(thread, machine, sample->insn, sample->ip, sizeof(sample->insn), &is64bit); machine 17 tools/perf/arch/x86/util/event.c struct machine *machine) machine 21 tools/perf/arch/x86/util/event.c struct map_groups *kmaps = &machine->kmaps; machine 24 tools/perf/arch/x86/util/event.c machine->id_hdr_size); machine 43 tools/perf/arch/x86/util/event.c machine->id_hdr_size; machine 53 tools/perf/arch/x86/util/event.c if (machine__is_host(machine)) machine 63 tools/perf/arch/x86/util/event.c event->mmap.pid = machine->pid; machine 67 tools/perf/arch/x86/util/event.c if (perf_tool__process_synth_event(tool, event, machine, machine 70 tools/perf/arch/x86/util/machine.c int machine__create_extra_kernel_maps(struct machine *machine, machine 78 tools/perf/arch/x86/util/machine.c machine__get_kallsyms_filename(machine, filename, PATH_MAX); machine 94 tools/perf/arch/x86/util/machine.c ret = machine__create_extra_kernel_map(machine, kernel, xm); machine 99 tools/perf/arch/x86/util/machine.c machine->trampolines_mapped = mi.cnt; machine 56 tools/perf/arch/x86/util/tsc.c struct machine *machine) machine 83 tools/perf/arch/x86/util/tsc.c return process(tool, &event, NULL, machine); machine 182 tools/perf/builtin-annotate.c struct machine *machine) machine 195 tools/perf/builtin-annotate.c if (machine__resolve(machine, &a, sample) < 0) machine 219 tools/perf/builtin-annotate.c struct machine *machine) machine 250 tools/perf/builtin-annotate.c return process_branch_callback(evsel, sample, al, ann, machine); machine 265 tools/perf/builtin-annotate.c struct machine *machine) machine 271 tools/perf/builtin-annotate.c if (machine__resolve(machine, &al, sample) < 0) { machine 281 tools/perf/builtin-annotate.c perf_evsel__add_sample(evsel, sample, &al, ann, machine)) { machine 260 tools/perf/builtin-c2c.c struct machine *machine) machine 270 tools/perf/builtin-c2c.c if (machine__resolve(machine, &al, sample) < 0) { machine 385 tools/perf/builtin-diff.c struct machine *machine) machine 397 tools/perf/builtin-diff.c if (machine__resolve(machine, &al, sample) < 0) { machine 191 tools/perf/builtin-inject.c struct machine *machine __maybe_unused) machine 199 tools/perf/builtin-inject.c struct machine *machine __maybe_unused) machine 207 tools/perf/builtin-inject.c struct machine *machine __maybe_unused) machine 221 tools/perf/builtin-inject.c struct machine *machine); machine 227 tools/perf/builtin-inject.c struct machine *machine) machine 231 tools/perf/builtin-inject.c return f(tool, event, sample, evsel, machine); machine 234 tools/perf/builtin-inject.c build_id__mark_dso_hit(tool, event, sample, evsel, machine); machine 242 tools/perf/builtin-inject.c struct machine *machine) machine 246 tools/perf/builtin-inject.c err = perf_event__process_mmap(tool, event, sample, machine); machine 247 tools/perf/builtin-inject.c perf_event__repipe(tool, event, sample, machine); machine 256 tools/perf/builtin-inject.c struct machine *machine) machine 265 tools/perf/builtin-inject.c ret = jit_process(inject->session, &inject->output, machine, machine 273 tools/perf/builtin-inject.c return perf_event__repipe_mmap(tool, event, sample, machine); machine 280 tools/perf/builtin-inject.c struct machine *machine) machine 284 tools/perf/builtin-inject.c err = perf_event__process_mmap2(tool, event, sample, machine); machine 285 tools/perf/builtin-inject.c perf_event__repipe(tool, event, sample, machine); machine 294 tools/perf/builtin-inject.c struct machine *machine) machine 303 tools/perf/builtin-inject.c ret = jit_process(inject->session, &inject->output, machine, machine 311 tools/perf/builtin-inject.c return perf_event__repipe_mmap2(tool, event, sample, machine); machine 318 tools/perf/builtin-inject.c struct machine *machine) machine 322 tools/perf/builtin-inject.c err = perf_event__process_fork(tool, event, sample, machine); machine 323 tools/perf/builtin-inject.c perf_event__repipe(tool, event, sample, machine); machine 331 tools/perf/builtin-inject.c struct machine *machine) machine 335 tools/perf/builtin-inject.c err = perf_event__process_comm(tool, event, sample, machine); machine 336 tools/perf/builtin-inject.c perf_event__repipe(tool, event, sample, machine); machine 344 tools/perf/builtin-inject.c struct machine *machine) machine 346 tools/perf/builtin-inject.c int err = perf_event__process_namespaces(tool, event, sample, machine); machine 348 tools/perf/builtin-inject.c perf_event__repipe(tool, event, sample, machine); machine 356 tools/perf/builtin-inject.c struct machine *machine) machine 360 tools/perf/builtin-inject.c err = perf_event__process_exit(tool, event, sample, machine); machine 361 tools/perf/builtin-inject.c perf_event__repipe(tool, event, sample, machine); machine 403 tools/perf/builtin-inject.c struct machine *machine) machine 417 tools/perf/builtin-inject.c machine); machine 430 tools/perf/builtin-inject.c struct machine *machine) machine 435 tools/perf/builtin-inject.c thread = machine__findnew_thread(machine, sample->pid, sample->tid); machine 446 tools/perf/builtin-inject.c dso__inject_build_id(al.map->dso, tool, machine); machine 463 tools/perf/builtin-inject.c perf_event__repipe(tool, event, sample, machine); machine 471 tools/perf/builtin-inject.c struct machine *machine __maybe_unused) machine 491 tools/perf/builtin-inject.c struct machine *machine) machine 496 tools/perf/builtin-inject.c perf_inject__sched_process_exit(tool, event, sample, evsel, machine); machine 515 tools/perf/builtin-inject.c struct machine *machine) machine 537 tools/perf/builtin-inject.c build_id__mark_dso_hit(tool, event_sw, &sample_sw, evsel, machine); machine 538 tools/perf/builtin-inject.c return perf_event__repipe(tool, event_sw, &sample_sw, machine); machine 565 tools/perf/builtin-inject.c struct machine *machine __maybe_unused) machine 22 tools/perf/builtin-kallsyms.c struct machine *machine = machine__new_kallsyms(); machine 24 tools/perf/builtin-kallsyms.c if (machine == NULL) { machine 31 tools/perf/builtin-kallsyms.c struct symbol *symbol = machine__find_kernel_symbol_by_name(machine, argv[i], &map); machine 44 tools/perf/builtin-kallsyms.c machine__delete(machine); machine 340 tools/perf/builtin-kmem.c struct machine *machine = &kmem_session->machines.host; machine 353 tools/perf/builtin-kmem.c kernel_map = machine__kernel_map(machine); machine 390 tools/perf/builtin-kmem.c struct machine *machine = &kmem_session->machines.host; machine 398 tools/perf/builtin-kmem.c al.thread = machine__findnew_thread(machine, sample->pid, sample->tid); machine 945 tools/perf/builtin-kmem.c struct machine *machine) machine 948 tools/perf/builtin-kmem.c struct thread *thread = machine__findnew_thread(machine, sample->pid, machine 994 tools/perf/builtin-kmem.c struct machine *machine = &session->machines.host; machine 1014 tools/perf/builtin-kmem.c sym = machine__find_kernel_symbol(machine, addr, &map); machine 1055 tools/perf/builtin-kmem.c struct machine *machine = &session->machines.host; machine 1078 tools/perf/builtin-kmem.c sym = machine__find_kernel_symbol(machine, data->callsite, &map); machine 1104 tools/perf/builtin-kmem.c struct machine *machine = &session->machines.host; machine 1120 tools/perf/builtin-kmem.c sym = machine__find_kernel_symbol(machine, data->callsite, &map); machine 660 tools/perf/builtin-kvm.c struct machine *machine __maybe_unused) machine 682 tools/perf/builtin-kvm.c struct machine *machine) machine 692 tools/perf/builtin-kvm.c thread = machine__findnew_thread(machine, sample->pid, sample->tid); machine 817 tools/perf/builtin-lock.c struct machine *machine) machine 820 tools/perf/builtin-lock.c struct thread *thread = machine__findnew_thread(machine, sample->pid, machine 156 tools/perf/builtin-mem.c struct machine *machine) machine 162 tools/perf/builtin-mem.c if (machine__resolve(machine, &al, sample) < 0) { machine 237 tools/perf/builtin-mem.c struct machine *machine) machine 239 tools/perf/builtin-mem.c return dump_raw_samples(tool, event, sample, machine); machine 480 tools/perf/builtin-record.c struct machine *machine __maybe_unused) machine 825 tools/perf/builtin-record.c struct machine *machine) machine 838 tools/perf/builtin-record.c return build_id__mark_dso_hit(tool, event, sample, evsel, machine); machine 871 tools/perf/builtin-record.c static void perf_event__synthesize_guest_os(struct machine *machine, void *data) machine 884 tools/perf/builtin-record.c machine); machine 887 tools/perf/builtin-record.c " relocation symbol.\n", machine->pid); machine 894 tools/perf/builtin-record.c machine); machine 897 tools/perf/builtin-record.c " relocation symbol.\n", machine->pid); machine 1222 tools/perf/builtin-record.c struct machine *machine = &session->machines.host; machine 1271 tools/perf/builtin-record.c process_synthesized_event, machine); machine 1284 tools/perf/builtin-record.c machine); machine 1290 tools/perf/builtin-record.c machine); machine 1324 tools/perf/builtin-record.c machine, opts); machine 1328 tools/perf/builtin-record.c err = __machine__synthesize_threads(machine, tool, &opts->target, rec->evlist->core.threads, machine 1492 tools/perf/builtin-record.c struct machine *machine = &session->machines.host; machine 1496 tools/perf/builtin-record.c event = malloc(sizeof(event->comm) + machine->id_hdr_size); machine 1511 tools/perf/builtin-record.c machine); machine 1519 tools/perf/builtin-record.c machine->id_hdr_size); machine 1531 tools/perf/builtin-record.c machine); machine 239 tools/perf/builtin-report.c struct machine *machine) machine 259 tools/perf/builtin-report.c if (machine__resolve(machine, &al, sample) < 0) { machine 309 tools/perf/builtin-report.c struct machine *machine __maybe_unused) machine 704 tools/perf/builtin-report.c static struct task *tasks_list(struct task *task, struct machine *machine) machine 717 tools/perf/builtin-report.c parent_thread = machine__find_thread(machine, -1, thread->ppid); machine 723 tools/perf/builtin-report.c return tasks_list(parent_task, machine); machine 773 tools/perf/builtin-report.c struct machine *machine = &session->machines.host; machine 786 tools/perf/builtin-report.c nr += machine->threads[i].nr; machine 793 tools/perf/builtin-report.c struct threads *threads = &machine->threads[i]; machine 817 tools/perf/builtin-report.c task = tasks_list(task, machine); machine 143 tools/perf/builtin-sched.c struct perf_sample *sample, struct machine *machine); machine 146 tools/perf/builtin-sched.c struct perf_sample *sample, struct machine *machine); machine 149 tools/perf/builtin-sched.c struct perf_sample *sample, struct machine *machine); machine 153 tools/perf/builtin-sched.c struct machine *machine); machine 158 tools/perf/builtin-sched.c struct machine *machine); machine 809 tools/perf/builtin-sched.c struct machine *machine __maybe_unused) machine 831 tools/perf/builtin-sched.c struct machine *machine __maybe_unused) machine 876 tools/perf/builtin-sched.c struct machine *machine) machine 880 tools/perf/builtin-sched.c child = machine__findnew_thread(machine, event->fork.pid, machine 882 tools/perf/builtin-sched.c parent = machine__findnew_thread(machine, event->fork.ppid, machine 1104 tools/perf/builtin-sched.c struct machine *machine) machine 1129 tools/perf/builtin-sched.c sched_out = machine__findnew_thread(machine, -1, prev_pid); machine 1130 tools/perf/builtin-sched.c sched_in = machine__findnew_thread(machine, -1, next_pid); machine 1174 tools/perf/builtin-sched.c struct machine *machine) machine 1178 tools/perf/builtin-sched.c struct thread *thread = machine__findnew_thread(machine, -1, pid); machine 1209 tools/perf/builtin-sched.c struct machine *machine) machine 1218 tools/perf/builtin-sched.c wakee = machine__findnew_thread(machine, -1, pid); machine 1270 tools/perf/builtin-sched.c struct machine *machine) machine 1285 tools/perf/builtin-sched.c migrant = machine__findnew_thread(machine, -1, pid); machine 1481 tools/perf/builtin-sched.c struct machine *machine) machine 1486 tools/perf/builtin-sched.c return sched->tp_handler->wakeup_event(sched, evsel, sample, machine); machine 1506 tools/perf/builtin-sched.c map__findnew_thread(struct perf_sched *sched, struct machine *machine, pid_t pid, pid_t tid) machine 1508 tools/perf/builtin-sched.c struct thread *thread = machine__findnew_thread(machine, pid, tid); machine 1524 tools/perf/builtin-sched.c struct perf_sample *sample, struct machine *machine) machine 1564 tools/perf/builtin-sched.c sched_in = map__findnew_thread(sched, machine, -1, next_pid); machine 1666 tools/perf/builtin-sched.c struct machine *machine) machine 1683 tools/perf/builtin-sched.c err = sched->tp_handler->switch_event(sched, evsel, sample, machine); machine 1692 tools/perf/builtin-sched.c struct machine *machine) machine 1697 tools/perf/builtin-sched.c return sched->tp_handler->runtime_event(sched, evsel, sample, machine); machine 1705 tools/perf/builtin-sched.c struct machine *machine) machine 1710 tools/perf/builtin-sched.c perf_event__process_fork(tool, event, sample, machine); machine 1714 tools/perf/builtin-sched.c return sched->tp_handler->fork_event(sched, event, machine); machine 1722 tools/perf/builtin-sched.c struct machine *machine) machine 1727 tools/perf/builtin-sched.c return sched->tp_handler->migrate_task_event(sched, evsel, sample, machine); machine 1735 tools/perf/builtin-sched.c struct machine *machine); machine 1741 tools/perf/builtin-sched.c struct machine *machine) machine 1747 tools/perf/builtin-sched.c err = f(tool, evsel, sample, machine); machine 1756 tools/perf/builtin-sched.c struct machine *machine) machine 1762 tools/perf/builtin-sched.c err = perf_event__process_comm(tool, event, sample, machine); machine 1766 tools/perf/builtin-sched.c thread = machine__find_thread(machine, sample->pid, sample->tid); machine 2142 tools/perf/builtin-sched.c struct machine *machine) machine 2148 tools/perf/builtin-sched.c thread = machine__findnew_thread(machine, sample->pid, sample->pid); machine 2294 tools/perf/builtin-sched.c struct machine *machine, machine 2306 tools/perf/builtin-sched.c thread = machine__findnew_thread(machine, sample->pid, machine 2313 tools/perf/builtin-sched.c save_task_callchain(sched, sample, evsel, machine); machine 2365 tools/perf/builtin-sched.c struct machine *machine, machine 2371 tools/perf/builtin-sched.c thread = machine__findnew_thread(machine, sample->pid, sample->tid); machine 2400 tools/perf/builtin-sched.c struct machine *machine) machine 2408 tools/perf/builtin-sched.c thread = machine__findnew_thread(machine, 0, pid); machine 2422 tools/perf/builtin-sched.c timehist_print_wakeup_event(sched, evsel, sample, machine, thread); machine 2430 tools/perf/builtin-sched.c struct machine *machine, machine 2445 tools/perf/builtin-sched.c thread = machine__findnew_thread(machine, sample->pid, sample->tid); machine 2484 tools/perf/builtin-sched.c struct machine *machine) machine 2492 tools/perf/builtin-sched.c thread = machine__findnew_thread(machine, 0, pid); machine 2503 tools/perf/builtin-sched.c timehist_print_migration_event(sched, evsel, sample, machine, thread); machine 2512 tools/perf/builtin-sched.c struct machine *machine) machine 2524 tools/perf/builtin-sched.c if (machine__resolve(machine, &al, sample) < 0) { machine 2531 tools/perf/builtin-sched.c thread = timehist_get_thread(sched, sample, machine, evsel); machine 2638 tools/perf/builtin-sched.c struct machine *machine __maybe_unused) machine 2640 tools/perf/builtin-sched.c return timehist_sched_change_event(tool, event, evsel, sample, machine); machine 2646 tools/perf/builtin-sched.c struct machine *machine __maybe_unused) machine 2802 tools/perf/builtin-sched.c struct machine *m = &session->machines.host; machine 2908 tools/perf/builtin-sched.c struct machine *machine); machine 2914 tools/perf/builtin-sched.c struct machine *machine) machine 2926 tools/perf/builtin-sched.c err = f(tool, event, evsel, sample, machine); machine 876 tools/perf/builtin-script.c struct machine *machine, struct thread *thread, machine 886 tools/perf/builtin-script.c kernel = machine__kernel_ip(machine, start); machine 898 tools/perf/builtin-script.c if (kernel != machine__kernel_ip(machine, end)) { machine 925 tools/perf/builtin-script.c len = dso__data_read_offset(al.map->dso, machine, offset, (u8 *)buffer, machine 1011 tools/perf/builtin-script.c struct machine *machine, FILE *fp) machine 1036 tools/perf/builtin-script.c machine, thread, &x.is64bit, &x.cpumode, false); machine 1055 tools/perf/builtin-script.c len = grab_bb(buffer, start, end, machine, thread, &x.is64bit, &x.cpumode, false); machine 1060 tools/perf/builtin-script.c len = grab_bb(buffer, start, end, machine, thread, &x.is64bit, &x.cpumode, false); machine 1114 tools/perf/builtin-script.c len = grab_bb(buffer, start, end, machine, thread, &x.is64bit, &x.cpumode, true); machine 1119 tools/perf/builtin-script.c machine, thread, &x.is64bit, &x.cpumode, false); machine 1257 tools/perf/builtin-script.c struct machine *machine __maybe_unused) machine 1264 tools/perf/builtin-script.c struct machine *machine, FILE *fp) machine 1269 tools/perf/builtin-script.c arch_fetch_insn(sample, thread, machine); machine 1281 tools/perf/builtin-script.c printed += perf_sample__fprintf_brstackinsn(sample, thread, attr, machine, fp); machine 1304 tools/perf/builtin-script.c struct machine *machine, FILE *fp) machine 1350 tools/perf/builtin-script.c printed += perf_sample__fprintf_insn(sample, attr, thread, machine, fp); machine 1808 tools/perf/builtin-script.c struct machine *machine) machine 1846 tools/perf/builtin-script.c perf_sample__fprintf_bts(sample, evsel, thread, al, machine, fp); machine 1895 tools/perf/builtin-script.c perf_sample__fprintf_insn(sample, attr, thread, machine, fp); machine 1996 tools/perf/builtin-script.c struct machine *machine) machine 2017 tools/perf/builtin-script.c if (machine__resolve(machine, &al, sample) < 0) { machine 2032 tools/perf/builtin-script.c process_event(scr, sample, evsel, &al, machine); machine 2088 tools/perf/builtin-script.c struct machine *machine) machine 2096 tools/perf/builtin-script.c thread = machine__findnew_thread(machine, event->comm.pid, event->comm.tid); machine 2102 tools/perf/builtin-script.c if (perf_event__process_comm(tool, event, sample, machine) < 0) machine 2125 tools/perf/builtin-script.c struct machine *machine) machine 2133 tools/perf/builtin-script.c thread = machine__findnew_thread(machine, event->namespaces.pid, machine 2140 tools/perf/builtin-script.c if (perf_event__process_namespaces(tool, event, sample, machine) < 0) machine 2163 tools/perf/builtin-script.c struct machine *machine) machine 2170 tools/perf/builtin-script.c if (perf_event__process_fork(tool, event, sample, machine) < 0) machine 2173 tools/perf/builtin-script.c thread = machine__findnew_thread(machine, event->fork.pid, event->fork.tid); machine 2197 tools/perf/builtin-script.c struct machine *machine) machine 2205 tools/perf/builtin-script.c thread = machine__findnew_thread(machine, event->fork.pid, event->fork.tid); machine 2223 tools/perf/builtin-script.c if (perf_event__process_exit(tool, event, sample, machine) < 0) machine 2233 tools/perf/builtin-script.c struct machine *machine) machine 2240 tools/perf/builtin-script.c if (perf_event__process_mmap(tool, event, sample, machine) < 0) machine 2243 tools/perf/builtin-script.c thread = machine__findnew_thread(machine, event->mmap.pid, event->mmap.tid); machine 2267 tools/perf/builtin-script.c struct machine *machine) machine 2274 tools/perf/builtin-script.c if (perf_event__process_mmap2(tool, event, sample, machine) < 0) machine 2277 tools/perf/builtin-script.c thread = machine__findnew_thread(machine, event->mmap2.pid, event->mmap2.tid); machine 2301 tools/perf/builtin-script.c struct machine *machine) machine 2308 tools/perf/builtin-script.c if (perf_event__process_switch(tool, event, sample, machine) < 0) machine 2312 tools/perf/builtin-script.c scripting_ops->process_switch(event, sample, machine); machine 2317 tools/perf/builtin-script.c thread = machine__findnew_thread(machine, sample->pid, machine 2337 tools/perf/builtin-script.c struct machine *machine) machine 2344 tools/perf/builtin-script.c thread = machine__findnew_thread(machine, sample->pid, machine 2372 tools/perf/builtin-script.c struct machine *machine) machine 2379 tools/perf/builtin-script.c if (machine__process_ksymbol(machine, event, sample) < 0) machine 2387 tools/perf/builtin-script.c thread = machine__findnew_thread(machine, sample->pid, sample->tid); machine 3777 tools/perf/builtin-script.c !strcmp(uts.machine, session->header.env.arch) || machine 3778 tools/perf/builtin-script.c (!strcmp(uts.machine, "x86_64") && machine 217 tools/perf/builtin-stat.c struct machine *machine __maybe_unused) machine 316 tools/perf/builtin-timechart.c struct machine *machine __maybe_unused) machine 326 tools/perf/builtin-timechart.c struct machine *machine __maybe_unused) machine 336 tools/perf/builtin-timechart.c struct machine *machine __maybe_unused) machine 475 tools/perf/builtin-timechart.c struct machine *machine) machine 494 tools/perf/builtin-timechart.c if (machine__resolve(machine, &al, sample) < 0) { machine 556 tools/perf/builtin-timechart.c struct machine *machine) machine 570 tools/perf/builtin-timechart.c cat_backtrace(event, sample, machine)); machine 183 tools/perf/builtin-top.c err ? "[unknown]" : uts.machine, machine 735 tools/perf/builtin-top.c struct machine *machine) machine 741 tools/perf/builtin-top.c if (!machine && perf_guest) { machine 755 tools/perf/builtin-top.c if (!machine) { machine 764 tools/perf/builtin-top.c if (machine__resolve(machine, &al, sample) < 0) machine 767 tools/perf/builtin-top.c if (!machine->kptr_restrict_warned && machine 780 tools/perf/builtin-top.c machine->kptr_restrict_warned = true; machine 796 tools/perf/builtin-top.c if (!machine->kptr_restrict_warned && !top->vmlinux_warned && machine 1133 tools/perf/builtin-top.c struct machine *machine; machine 1162 tools/perf/builtin-top.c machine = &session->machines.host; machine 1168 tools/perf/builtin-top.c machine = &session->machines.host; machine 1172 tools/perf/builtin-top.c machine = perf_session__find_machine(session, machine 1185 tools/perf/builtin-top.c machine = &session->machines.host; machine 1191 tools/perf/builtin-top.c &sample, machine); machine 1198 tools/perf/builtin-top.c machine__process_event(machine, event, &sample); machine 111 tools/perf/builtin-trace.c struct machine *host; machine 1357 tools/perf/builtin-trace.c static int trace__process_event(struct trace *trace, struct machine *machine, machine 1366 tools/perf/builtin-trace.c ret = machine__process_lost_event(machine, event, sample); machine 1369 tools/perf/builtin-trace.c ret = machine__process_event(machine, event, sample); machine 1379 tools/perf/builtin-trace.c struct machine *machine) machine 1382 tools/perf/builtin-trace.c return trace__process_event(trace, machine, event, sample); machine 1387 tools/perf/builtin-trace.c struct machine *machine = vmachine; machine 1389 tools/perf/builtin-trace.c if (machine->kptr_restrict_warned) machine 1396 tools/perf/builtin-trace.c machine->kptr_restrict_warned = true; machine 2546 tools/perf/builtin-trace.c struct machine *machine __maybe_unused) machine 278 tools/perf/tests/code-reading.c ret_len = dso__data_read_offset(al.map->dso, thread->mg->machine, machine 372 tools/perf/tests/code-reading.c static int process_sample_event(struct machine *machine, machine 385 tools/perf/tests/code-reading.c thread = machine__findnew_thread(machine, sample.pid, sample.tid); machine 396 tools/perf/tests/code-reading.c static int process_event(struct machine *machine, struct evlist *evlist, machine 400 tools/perf/tests/code-reading.c return process_sample_event(machine, evlist, event, state); machine 409 tools/perf/tests/code-reading.c ret = machine__process_event(machine, event, NULL); machine 419 tools/perf/tests/code-reading.c static int process_events(struct machine *machine, struct evlist *evlist, machine 432 tools/perf/tests/code-reading.c ret = process_event(machine, evlist, event, state); machine 553 tools/perf/tests/code-reading.c struct machine *machine; machine 578 tools/perf/tests/code-reading.c machine = machine__new_host(); machine 579 tools/perf/tests/code-reading.c machine->env = &perf_env; machine 581 tools/perf/tests/code-reading.c ret = machine__create_kernel_maps(machine); machine 592 tools/perf/tests/code-reading.c map = machine__kernel_map(machine); machine 616 tools/perf/tests/code-reading.c perf_event__process, machine, false); machine 622 tools/perf/tests/code-reading.c thread = machine__findnew_thread(machine, pid, pid); machine 701 tools/perf/tests/code-reading.c ret = process_events(machine, evlist, &state); machine 723 tools/perf/tests/code-reading.c machine__delete_threads(machine); machine 724 tools/perf/tests/code-reading.c machine__delete(machine); machine 12 tools/perf/tests/cpumap.c struct machine; machine 17 tools/perf/tests/cpumap.c struct machine *machine __maybe_unused) machine 51 tools/perf/tests/cpumap.c struct machine *machine __maybe_unused) machine 106 tools/perf/tests/dso-data.c static int dso__data_fd(struct dso *dso, struct machine *machine) machine 108 tools/perf/tests/dso-data.c int fd = dso__data_get_fd(dso, machine); machine 118 tools/perf/tests/dso-data.c struct machine machine; machine 125 tools/perf/tests/dso-data.c memset(&machine, 0, sizeof(machine)); machine 130 tools/perf/tests/dso-data.c dso__data_fd(dso, &machine) >= 0); machine 139 tools/perf/tests/dso-data.c size = dso__data_read_offset(dso, &machine, data->offset, machine 158 tools/perf/tests/dso-data.c size = dso__data_read_offset(dso, &machine, 10, machine 253 tools/perf/tests/dso-data.c struct machine machine; machine 260 tools/perf/tests/dso-data.c memset(&machine, 0, sizeof(machine)); machine 278 tools/perf/tests/dso-data.c fd = dso__data_fd(dso, &machine); machine 286 tools/perf/tests/dso-data.c n = dso__data_read_offset(dso, &machine, 0, buf, BUFSIZE); machine 295 tools/perf/tests/dso-data.c fd = dso__data_fd(dsos[i], &machine); machine 313 tools/perf/tests/dso-data.c struct machine machine; machine 324 tools/perf/tests/dso-data.c memset(&machine, 0, sizeof(machine)); machine 342 tools/perf/tests/dso-data.c fd = dso__data_fd(dso_0, &machine); machine 346 tools/perf/tests/dso-data.c fd = dso__data_fd(dso_1, &machine); machine 357 tools/perf/tests/dso-data.c fd = dso__data_fd(dso_2, &machine); machine 367 tools/perf/tests/dso-data.c fd = dso__data_fd(dso_0, &machine); machine 30 tools/perf/tests/dwarf-unwind.c struct machine *machine) machine 32 tools/perf/tests/dwarf-unwind.c return machine__process_mmap2_event(machine, event, sample); machine 35 tools/perf/tests/dwarf-unwind.c static int init_live_machine(struct machine *machine) machine 41 tools/perf/tests/dwarf-unwind.c mmap_handler, machine, true); machine 178 tools/perf/tests/dwarf-unwind.c struct machine *machine; machine 182 tools/perf/tests/dwarf-unwind.c machine = machine__new_host(); machine 183 tools/perf/tests/dwarf-unwind.c if (!machine) { machine 188 tools/perf/tests/dwarf-unwind.c if (machine__create_kernel_maps(machine)) { machine 196 tools/perf/tests/dwarf-unwind.c if (init_live_machine(machine)) { machine 202 tools/perf/tests/dwarf-unwind.c machine__fprintf(machine, stderr); machine 204 tools/perf/tests/dwarf-unwind.c thread = machine__find_thread(machine, getpid(), getpid()); machine 214 tools/perf/tests/dwarf-unwind.c machine__delete_threads(machine); machine 215 tools/perf/tests/dwarf-unwind.c machine__delete(machine); machine 18 tools/perf/tests/event_update.c struct machine *machine __maybe_unused) machine 31 tools/perf/tests/event_update.c struct machine *machine __maybe_unused) machine 52 tools/perf/tests/event_update.c struct machine *machine __maybe_unused) machine 66 tools/perf/tests/event_update.c struct machine *machine __maybe_unused) machine 85 tools/perf/tests/hists_common.c struct machine *setup_fake_machine(struct machines *machines) machine 87 tools/perf/tests/hists_common.c struct machine *machine = machines__find(machines, HOST_KERNEL_ID); machine 90 tools/perf/tests/hists_common.c if (machine == NULL) { machine 98 tools/perf/tests/hists_common.c thread = machine__findnew_thread(machine, fake_threads[i].pid, machine 124 tools/perf/tests/hists_common.c machine__process_mmap_event(machine, &fake_mmap_event, &sample); machine 131 tools/perf/tests/hists_common.c dso = machine__findnew_dso(machine, fake_symbols[i].dso_name); machine 155 tools/perf/tests/hists_common.c return machine; machine 159 tools/perf/tests/hists_common.c machine__delete_threads(machine); machine 5 tools/perf/tests/hists_common.h struct machine; machine 71 tools/perf/tests/hists_common.h struct machine *setup_fake_machine(struct machines *machines); machine 80 tools/perf/tests/hists_cumulate.c static int add_hist_entries(struct hists *hists, struct machine *machine) machine 105 tools/perf/tests/hists_cumulate.c if (machine__resolve(machine, &al, &sample) < 0) machine 150 tools/perf/tests/hists_cumulate.c typedef int (*test_fn_t)(struct evsel *, struct machine *); machine 250 tools/perf/tests/hists_cumulate.c static int test1(struct evsel *evsel, struct machine *machine) machine 288 tools/perf/tests/hists_cumulate.c err = add_hist_entries(hists, machine); machine 301 tools/perf/tests/hists_cumulate.c static int test2(struct evsel *evsel, struct machine *machine) machine 435 tools/perf/tests/hists_cumulate.c err = add_hist_entries(hists, machine); machine 449 tools/perf/tests/hists_cumulate.c static int test3(struct evsel *evsel, struct machine *machine) machine 493 tools/perf/tests/hists_cumulate.c err = add_hist_entries(hists, machine); machine 506 tools/perf/tests/hists_cumulate.c static int test4(struct evsel *evsel, struct machine *machine) machine 679 tools/perf/tests/hists_cumulate.c err = add_hist_entries(hists, machine); machine 696 tools/perf/tests/hists_cumulate.c struct machine *machine; machine 717 tools/perf/tests/hists_cumulate.c machine = setup_fake_machine(&machines); machine 718 tools/perf/tests/hists_cumulate.c if (!machine) machine 722 tools/perf/tests/hists_cumulate.c machine__fprintf(machine, stderr); machine 727 tools/perf/tests/hists_cumulate.c err = testcases[i](evsel, machine); machine 49 tools/perf/tests/hists_filter.c struct machine *machine) machine 81 tools/perf/tests/hists_filter.c if (machine__resolve(machine, &al, &sample) < 0) machine 108 tools/perf/tests/hists_filter.c struct machine *machine; machine 129 tools/perf/tests/hists_filter.c machine = setup_fake_machine(&machines); machine 130 tools/perf/tests/hists_filter.c if (!machine) machine 134 tools/perf/tests/hists_filter.c machine__fprintf(machine, stderr); machine 137 tools/perf/tests/hists_filter.c err = add_hist_entries(evlist, machine); machine 64 tools/perf/tests/hists_link.c static int add_hist_entries(struct evlist *evlist, struct machine *machine) machine 86 tools/perf/tests/hists_link.c if (machine__resolve(machine, &al, &sample) < 0) machine 105 tools/perf/tests/hists_link.c if (machine__resolve(machine, &al, &sample) < 0) machine 272 tools/perf/tests/hists_link.c struct machine *machine = NULL; machine 294 tools/perf/tests/hists_link.c machine = setup_fake_machine(&machines); machine 295 tools/perf/tests/hists_link.c if (!machine) machine 299 tools/perf/tests/hists_link.c machine__fprintf(machine, stderr); machine 302 tools/perf/tests/hists_link.c err = add_hist_entries(evlist, machine); machine 50 tools/perf/tests/hists_output.c static int add_hist_entries(struct hists *hists, struct machine *machine) machine 71 tools/perf/tests/hists_output.c if (machine__resolve(machine, &al, &sample) < 0) machine 116 tools/perf/tests/hists_output.c typedef int (*test_fn_t)(struct evsel *, struct machine *); machine 125 tools/perf/tests/hists_output.c static int test1(struct evsel *evsel, struct machine *machine) machine 153 tools/perf/tests/hists_output.c err = add_hist_entries(hists, machine); machine 227 tools/perf/tests/hists_output.c static int test2(struct evsel *evsel, struct machine *machine) machine 253 tools/perf/tests/hists_output.c err = add_hist_entries(hists, machine); machine 283 tools/perf/tests/hists_output.c static int test3(struct evsel *evsel, struct machine *machine) machine 307 tools/perf/tests/hists_output.c err = add_hist_entries(hists, machine); machine 357 tools/perf/tests/hists_output.c static int test4(struct evsel *evsel, struct machine *machine) machine 385 tools/perf/tests/hists_output.c err = add_hist_entries(hists, machine); machine 459 tools/perf/tests/hists_output.c static int test5(struct evsel *evsel, struct machine *machine) machine 488 tools/perf/tests/hists_output.c err = add_hist_entries(hists, machine); machine 582 tools/perf/tests/hists_output.c struct machine *machine; machine 604 tools/perf/tests/hists_output.c machine = setup_fake_machine(&machines); machine 605 tools/perf/tests/hists_output.c if (!machine) machine 609 tools/perf/tests/hists_output.c machine__fprintf(machine, stderr); machine 614 tools/perf/tests/hists_output.c err = testcases[i](evsel, machine); machine 132 tools/perf/tests/mmap-thread-lookup.c typedef int (*synth_cb)(struct machine *machine); machine 134 tools/perf/tests/mmap-thread-lookup.c static int synth_all(struct machine *machine) machine 138 tools/perf/tests/mmap-thread-lookup.c machine, 0, 1); machine 141 tools/perf/tests/mmap-thread-lookup.c static int synth_process(struct machine *machine) machine 150 tools/perf/tests/mmap-thread-lookup.c machine, 0); machine 158 tools/perf/tests/mmap-thread-lookup.c struct machine *machine; machine 170 tools/perf/tests/mmap-thread-lookup.c machine = machine__new_host(); machine 174 tools/perf/tests/mmap-thread-lookup.c err = synth(machine); machine 190 tools/perf/tests/mmap-thread-lookup.c thread = machine__findnew_thread(machine, getpid(), td->tid); machine 208 tools/perf/tests/mmap-thread-lookup.c machine__delete_threads(machine); machine 209 tools/perf/tests/mmap-thread-lookup.c machine__delete(machine); machine 27 tools/perf/tests/stat.c struct machine *machine __maybe_unused) machine 67 tools/perf/tests/stat.c struct machine *machine __maybe_unused) machine 97 tools/perf/tests/stat.c struct machine *machine __maybe_unused) machine 17 tools/perf/tests/thread-map.c struct machine; machine 65 tools/perf/tests/thread-map.c struct machine *machine __maybe_unused) machine 10 tools/perf/tests/thread-mg-share.c struct machine *machine; machine 31 tools/perf/tests/thread-mg-share.c machine = &machines.host; machine 34 tools/perf/tests/thread-mg-share.c leader = machine__findnew_thread(machine, 0, 0); machine 35 tools/perf/tests/thread-mg-share.c t1 = machine__findnew_thread(machine, 0, 1); machine 36 tools/perf/tests/thread-mg-share.c t2 = machine__findnew_thread(machine, 0, 2); machine 37 tools/perf/tests/thread-mg-share.c t3 = machine__findnew_thread(machine, 0, 3); machine 40 tools/perf/tests/thread-mg-share.c other = machine__findnew_thread(machine, 4, 5); machine 58 tools/perf/tests/thread-mg-share.c other_leader = machine__find_thread(machine, 4, 4); machine 66 tools/perf/tests/thread-mg-share.c machine__remove_thread(machine, leader); machine 67 tools/perf/tests/thread-mg-share.c machine__remove_thread(machine, t1); machine 68 tools/perf/tests/thread-mg-share.c machine__remove_thread(machine, t2); machine 69 tools/perf/tests/thread-mg-share.c machine__remove_thread(machine, t3); machine 70 tools/perf/tests/thread-mg-share.c machine__remove_thread(machine, other); machine 71 tools/perf/tests/thread-mg-share.c machine__remove_thread(machine, other_leader); machine 23 tools/perf/tests/vmlinux-kallsyms.c struct machine kallsyms, vmlinux; machine 5 tools/perf/util/archinsn.h struct machine; machine 10 tools/perf/util/archinsn.h struct machine *machine); machine 34 tools/perf/util/arm-spe.c struct machine *machine; machine 212 tools/perf/util/arm-spe.c spe->machine = &session->machines.host; /* No kvm support */ machine 33 tools/perf/util/bpf-event.c static int machine__process_bpf_event_load(struct machine *machine, machine 39 tools/perf/util/bpf-event.c struct perf_env *env = machine->env; machine 57 tools/perf/util/bpf-event.c map = map_groups__find(&machine->kmaps, addr); machine 69 tools/perf/util/bpf-event.c int machine__process_bpf(struct machine *machine, union perf_event *event, machine 77 tools/perf/util/bpf-event.c return machine__process_bpf_event_load(machine, event, sample); machine 159 tools/perf/util/bpf-event.c struct machine *machine, machine 249 tools/perf/util/bpf-event.c memset((void *)event + event->header.size, 0, machine->id_hdr_size); machine 250 tools/perf/util/bpf-event.c event->header.size += machine->id_hdr_size; machine 252 tools/perf/util/bpf-event.c machine, process); machine 267 tools/perf/util/bpf-event.c memset((void *)event + event->header.size, 0, machine->id_hdr_size); machine 268 tools/perf/util/bpf-event.c event->header.size += machine->id_hdr_size; machine 286 tools/perf/util/bpf-event.c machine, process); machine 297 tools/perf/util/bpf-event.c struct machine *machine, machine 305 tools/perf/util/bpf-event.c event = malloc(sizeof(event->bpf) + KSYM_NAME_LEN + machine->id_hdr_size); machine 330 tools/perf/util/bpf-event.c machine, fd, machine 12 tools/perf/util/bpf-event.h struct machine; machine 34 tools/perf/util/bpf-event.h int machine__process_bpf(struct machine *machine, union perf_event *event, machine 42 tools/perf/util/bpf-event.h static inline int machine__process_bpf(struct machine *machine __maybe_unused, machine 43 tools/perf/util/build-id.c struct machine *machine) machine 46 tools/perf/util/build-id.c struct thread *thread = machine__findnew_thread(machine, sample->pid, machine 66 tools/perf/util/build-id.c struct machine *machine) machine 68 tools/perf/util/build-id.c struct thread *thread = machine__findnew_thread(machine, machine 76 tools/perf/util/build-id.c machine__remove_thread(machine, thread); machine 319 tools/perf/util/build-id.c static int machine__write_buildid_table(struct machine *machine, machine 327 tools/perf/util/build-id.c if (!machine__is_host(machine)) { machine 332 tools/perf/util/build-id.c dsos__for_each_with_build_id(pos, &machine->dsos.head) { machine 344 tools/perf/util/build-id.c name = machine->mmap_name; machine 354 tools/perf/util/build-id.c err = write_buildid(name, name_len, pos->build_id, machine->pid, machine 374 tools/perf/util/build-id.c struct machine *pos = rb_entry(nd, struct machine, rb_node); machine 392 tools/perf/util/build-id.c static int machine__hit_all_dsos(struct machine *machine) machine 394 tools/perf/util/build-id.c return __dsos__hit_all(&machine->dsos.head); machine 408 tools/perf/util/build-id.c struct machine *pos = rb_entry(nd, struct machine, rb_node); machine 815 tools/perf/util/build-id.c static int dso__cache_build_id(struct dso *dso, struct machine *machine) machine 823 tools/perf/util/build-id.c name = machine->mmap_name; machine 830 tools/perf/util/build-id.c struct machine *machine) machine 836 tools/perf/util/build-id.c if (dso__cache_build_id(pos, machine)) machine 842 tools/perf/util/build-id.c static int machine__cache_build_ids(struct machine *machine) machine 844 tools/perf/util/build-id.c return __dsos__cache_build_ids(&machine->dsos.head, machine); machine 862 tools/perf/util/build-id.c struct machine *pos = rb_entry(nd, struct machine, rb_node); machine 868 tools/perf/util/build-id.c static bool machine__read_build_ids(struct machine *machine, bool with_hits) machine 870 tools/perf/util/build-id.c return __dsos__read_build_ids(&machine->dsos.head, with_hits); machine 880 tools/perf/util/build-id.c struct machine *pos = rb_entry(nd, struct machine, rb_node); machine 28 tools/perf/util/build-id.h struct machine *machine); machine 1122 tools/perf/util/callchain.c if (al->map->groups == &al->machine->kmaps) { machine 1123 tools/perf/util/callchain.c if (machine__is_host(al->machine)) { machine 1131 tools/perf/util/callchain.c if (machine__is_host(al->machine)) { machine 163 tools/perf/util/cputopo.c if (strncmp(uts.machine, "x86_64", 6)) machine 48 tools/perf/util/cs-etm.c struct machine *machine; machine 619 tools/perf/util/cs-etm.c struct machine *machine; machine 621 tools/perf/util/cs-etm.c machine = etmq->etm->machine; machine 624 tools/perf/util/cs-etm.c if (machine__is_host(machine)) machine 629 tools/perf/util/cs-etm.c if (machine__is_host(machine)) machine 645 tools/perf/util/cs-etm.c struct machine *machine; machine 652 tools/perf/util/cs-etm.c machine = etmq->etm->machine; machine 676 tools/perf/util/cs-etm.c len = dso__data_read_offset(al.map->dso, machine, offset, buffer, size); machine 834 tools/perf/util/cs-etm.c etm->kernel_start = machine__kernel_start(etm->machine); machine 1046 tools/perf/util/cs-etm.c tidq->thread = machine__find_thread(etm->machine, -1, machine 1067 tools/perf/util/cs-etm.c err = machine__set_current_tid(etm->machine, cpu, tid, tid); machine 1238 tools/perf/util/cs-etm.c struct machine *machine __maybe_unused) machine 2201 tools/perf/util/cs-etm.c th = machine__findnew_thread(etm->machine, machine 2237 tools/perf/util/cs-etm.c th = machine__findnew_thread(etm->machine, machine 2540 tools/perf/util/cs-etm.c etm->machine = &session->machines.host; machine 2572 tools/perf/util/cs-etm.c if (thread__init_map_groups(etm->unknown_thread, etm->machine)) { machine 790 tools/perf/util/data-convert-bt.c struct machine *machine __maybe_unused) machine 868 tools/perf/util/data-convert-bt.c struct machine *machine) \ machine 897 tools/perf/util/data-convert-bt.c return perf_event__process_##_name(tool, _event, sample, machine);\ machine 49 tools/perf/util/db-export.c int db_export__machine(struct db_export *dbe, struct machine *machine) machine 51 tools/perf/util/db-export.c if (machine->db_id) machine 54 tools/perf/util/db-export.c machine->db_id = ++dbe->machine_last_db_id; machine 57 tools/perf/util/db-export.c return dbe->export_machine(dbe, machine); machine 63 tools/perf/util/db-export.c struct machine *machine, struct thread *main_thread) machine 77 tools/perf/util/db-export.c machine); machine 147 tools/perf/util/db-export.c struct machine *machine) machine 155 tools/perf/util/db-export.c return dbe->export_dso(dbe, dso, machine); machine 184 tools/perf/util/db-export.c err = db_export__dso(dbe, dso, al->machine); machine 210 tools/perf/util/db-export.c struct machine *machine, machine 215 tools/perf/util/db-export.c u64 kernel_start = machine__kernel_start(machine); machine 254 tools/perf/util/db-export.c al.machine = machine; machine 292 tools/perf/util/db-export.c struct machine *machine, struct comm **comm_ptr) machine 303 tools/perf/util/db-export.c err = db_export__thread(dbe, main_thread, machine, main_thread); machine 310 tools/perf/util/db-export.c comm = machine__thread_exec_comm(machine, main_thread); machine 326 tools/perf/util/db-export.c err = db_export__thread(dbe, thread, machine, main_thread); machine 363 tools/perf/util/db-export.c err = db_export__machine(dbe, al->machine); machine 367 tools/perf/util/db-export.c main_thread = thread__main_thread(al->machine, thread); machine 369 tools/perf/util/db-export.c err = db_export__threads(dbe, thread, main_thread, al->machine, &comm); machine 383 tools/perf/util/db-export.c struct call_path *cp = call_path_from_sample(dbe, al->machine, machine 524 tools/perf/util/db-export.c static int db_export__pid_tid(struct db_export *dbe, struct machine *machine, machine 528 tools/perf/util/db-export.c struct thread *thread = machine__find_thread(machine, pid, tid); machine 537 tools/perf/util/db-export.c main_thread = thread__main_thread(machine, thread); machine 539 tools/perf/util/db-export.c err = db_export__threads(dbe, thread, main_thread, machine, comm_ptr); machine 551 tools/perf/util/db-export.c struct perf_sample *sample, struct machine *machine) machine 566 tools/perf/util/db-export.c err = db_export__machine(dbe, machine); machine 570 tools/perf/util/db-export.c err = db_export__pid_tid(dbe, machine, sample->pid, sample->tid, machine 579 tools/perf/util/db-export.c err = db_export__pid_tid(dbe, machine, pid, tid, &th_b_id, machine 607 tools/perf/util/db-export.c return dbe->export_context_switch(dbe, db_id, machine, sample, machine 14 tools/perf/util/db-export.h struct machine; machine 43 tools/perf/util/db-export.h int (*export_machine)(struct db_export *dbe, struct machine *machine); machine 45 tools/perf/util/db-export.h u64 main_thread_db_id, struct machine *machine); machine 51 tools/perf/util/db-export.h struct machine *machine); machine 61 tools/perf/util/db-export.h struct machine *machine, machine 83 tools/perf/util/db-export.h int db_export__machine(struct db_export *dbe, struct machine *machine); machine 85 tools/perf/util/db-export.h struct machine *machine, struct thread *main_thread); machine 93 tools/perf/util/db-export.h struct machine *machine); machine 108 tools/perf/util/db-export.h struct perf_sample *sample, struct machine *machine); machine 408 tools/perf/util/dso.c struct machine *machine) machine 410 tools/perf/util/dso.c if (machine__is_host(machine)) machine 468 tools/perf/util/dso.c static int __open_dso(struct dso *dso, struct machine *machine) machine 478 tools/perf/util/dso.c if (machine) machine 479 tools/perf/util/dso.c root_dir = machine->root_dir; machine 520 tools/perf/util/dso.c static int open_dso(struct dso *dso, struct machine *machine) machine 527 tools/perf/util/dso.c fd = __open_dso(dso, machine); machine 641 tools/perf/util/dso.c static void try_to_open_dso(struct dso *dso, struct machine *machine) machine 654 tools/perf/util/dso.c dso->data.fd = open_dso(dso, machine); machine 661 tools/perf/util/dso.c dso->data.fd = open_dso(dso, machine); machine 682 tools/perf/util/dso.c int dso__data_get_fd(struct dso *dso, struct machine *machine) machine 690 tools/perf/util/dso.c try_to_open_dso(dso, machine); machine 841 tools/perf/util/dso.c static ssize_t file_read(struct dso *dso, struct machine *machine, machine 852 tools/perf/util/dso.c try_to_open_dso(dso, machine); machine 867 tools/perf/util/dso.c dso_cache__read(struct dso *dso, struct machine *machine, machine 882 tools/perf/util/dso.c ret = file_read(dso, machine, cache_offset, cache->data); machine 904 tools/perf/util/dso.c static ssize_t dso_cache_read(struct dso *dso, struct machine *machine, machine 913 tools/perf/util/dso.c return dso_cache__read(dso, machine, offset, data, size); machine 921 tools/perf/util/dso.c static ssize_t cached_read(struct dso *dso, struct machine *machine, machine 930 tools/perf/util/dso.c ret = dso_cache_read(dso, machine, offset, p, size); machine 950 tools/perf/util/dso.c static int file_size(struct dso *dso, struct machine *machine) machine 962 tools/perf/util/dso.c try_to_open_dso(dso, machine); machine 984 tools/perf/util/dso.c int dso__data_file_size(struct dso *dso, struct machine *machine) machine 995 tools/perf/util/dso.c return file_size(dso, machine); machine 1005 tools/perf/util/dso.c off_t dso__data_size(struct dso *dso, struct machine *machine) machine 1007 tools/perf/util/dso.c if (dso__data_file_size(dso, machine)) machine 1014 tools/perf/util/dso.c static ssize_t data_read_offset(struct dso *dso, struct machine *machine, machine 1017 tools/perf/util/dso.c if (dso__data_file_size(dso, machine)) machine 1027 tools/perf/util/dso.c return cached_read(dso, machine, offset, data, size); machine 1041 tools/perf/util/dso.c ssize_t dso__data_read_offset(struct dso *dso, struct machine *machine, machine 1047 tools/perf/util/dso.c return data_read_offset(dso, machine, offset, data, size); machine 1061 tools/perf/util/dso.c struct machine *machine, u64 addr, machine 1065 tools/perf/util/dso.c return dso__data_read_offset(dso, machine, offset, data, size); machine 1079 tools/perf/util/dso.c struct dso *machine__findnew_kernel(struct machine *machine, const char *name, machine 1085 tools/perf/util/dso.c struct dso *dso = machine__findnew_dso(machine, name); machine 1257 tools/perf/util/dso.c void dso__read_running_kernel_build_id(struct dso *dso, struct machine *machine) machine 1261 tools/perf/util/dso.c if (machine__is_default_guest(machine)) machine 1263 tools/perf/util/dso.c sprintf(path, "%s/sys/kernel/notes", machine->root_dir); machine 1316 tools/perf/util/dso.c enum dso_type dso__type(struct dso *dso, struct machine *machine) machine 1321 tools/perf/util/dso.c fd = dso__data_get_fd(dso, machine); machine 15 tools/perf/util/dso.h struct machine; machine 250 tools/perf/util/dso.h struct machine *machine); machine 278 tools/perf/util/dso.h struct machine *machine); machine 323 tools/perf/util/dso.h int dso__data_get_fd(struct dso *dso, struct machine *machine); machine 327 tools/perf/util/dso.h int dso__data_file_size(struct dso *dso, struct machine *machine); machine 328 tools/perf/util/dso.h off_t dso__data_size(struct dso *dso, struct machine *machine); machine 329 tools/perf/util/dso.h ssize_t dso__data_read_offset(struct dso *dso, struct machine *machine, machine 332 tools/perf/util/dso.h struct machine *machine, u64 addr, machine 337 tools/perf/util/dso.h struct dso *machine__findnew_kernel(struct machine *machine, const char *name, machine 365 tools/perf/util/dso.h enum dso_type dso__type(struct dso *dso, struct machine *machine); machine 31 tools/perf/util/dwarf-regs.c const char *get_dwarf_regstr(unsigned int n, unsigned int machine) machine 33 tools/perf/util/dwarf-regs.c switch (machine) { machine 57 tools/perf/util/dwarf-regs.c pr_err("ELF MACHINE %x is not supported.\n", machine); machine 267 tools/perf/util/env.c env->arch = strdup(uts.machine); machine 335 tools/perf/util/env.c arch_name = uts.machine; machine 186 tools/perf/util/event.c struct machine *machine) machine 188 tools/perf/util/event.c return machine__process_comm_event(machine, event, sample); machine 194 tools/perf/util/event.c struct machine *machine) machine 196 tools/perf/util/event.c return machine__process_namespaces_event(machine, event, sample); machine 202 tools/perf/util/event.c struct machine *machine) machine 204 tools/perf/util/event.c return machine__process_lost_event(machine, event, sample); machine 210 tools/perf/util/event.c struct machine *machine) machine 212 tools/perf/util/event.c return machine__process_aux_event(machine, event); machine 218 tools/perf/util/event.c struct machine *machine) machine 220 tools/perf/util/event.c return machine__process_itrace_start_event(machine, event); machine 226 tools/perf/util/event.c struct machine *machine) machine 228 tools/perf/util/event.c return machine__process_lost_samples_event(machine, event, sample); machine 234 tools/perf/util/event.c struct machine *machine) machine 236 tools/perf/util/event.c return machine__process_switch_event(machine, event); machine 242 tools/perf/util/event.c struct machine *machine) machine 244 tools/perf/util/event.c return machine__process_ksymbol(machine, event, sample); machine 250 tools/perf/util/event.c struct machine *machine) machine 252 tools/perf/util/event.c return machine__process_bpf(machine, event, sample); machine 314 tools/perf/util/event.c struct machine *machine) machine 316 tools/perf/util/event.c return machine__process_mmap_event(machine, event, sample); machine 322 tools/perf/util/event.c struct machine *machine) machine 324 tools/perf/util/event.c return machine__process_mmap2_event(machine, event, sample); machine 337 tools/perf/util/event.c struct machine *machine) machine 339 tools/perf/util/event.c return machine__process_fork_event(machine, event, sample); machine 345 tools/perf/util/event.c struct machine *machine) machine 347 tools/perf/util/event.c return machine__process_exit_event(machine, event, sample); machine 452 tools/perf/util/event.c struct machine *machine) machine 454 tools/perf/util/event.c return machine__process_event(machine, event, sample); machine 461 tools/perf/util/event.c struct machine *machine = mg->machine; machine 464 tools/perf/util/event.c al->machine = machine; machine 470 tools/perf/util/event.c if (machine == NULL) { machine 477 tools/perf/util/event.c mg = &machine->kmaps; machine 483 tools/perf/util/event.c mg = &machine->kmaps; machine 526 tools/perf/util/event.c struct machine *machine = thread->mg->machine; machine 527 tools/perf/util/event.c u8 addr_cpumode = machine__addr_cpumode(machine, cpumode, addr); machine 557 tools/perf/util/event.c int machine__resolve(struct machine *machine, struct addr_location *al, machine 560 tools/perf/util/event.c struct thread *thread = machine__findnew_thread(machine, sample->pid, machine 581 tools/perf/util/event.c struct perf_env *env = machine->env; machine 18 tools/perf/util/event.h struct machine; machine 293 tools/perf/util/event.h struct machine *machine); machine 297 tools/perf/util/event.h struct machine *machine); machine 301 tools/perf/util/event.h struct machine *machine); machine 305 tools/perf/util/event.h struct machine *machine); machine 309 tools/perf/util/event.h struct machine *machine); machine 313 tools/perf/util/event.h struct machine *machine); machine 317 tools/perf/util/event.h struct machine *machine); machine 321 tools/perf/util/event.h struct machine *machine); machine 325 tools/perf/util/event.h struct machine *machine); machine 329 tools/perf/util/event.h struct machine *machine); machine 333 tools/perf/util/event.h struct machine *machine); machine 337 tools/perf/util/event.h struct machine *machine); machine 341 tools/perf/util/event.h struct machine *machine); machine 345 tools/perf/util/event.h struct machine *machine); machine 349 tools/perf/util/event.h int machine__resolve(struct machine *machine, struct addr_location *al, machine 365 tools/perf/util/header.c return do_write_string(ff, uts.machine); machine 1891 tools/perf/util/header.c struct machine *machine; machine 1896 tools/perf/util/header.c machine = perf_session__findnew_machine(session, bev->pid); machine 1897 tools/perf/util/header.c if (!machine) machine 1917 tools/perf/util/header.c dso = machine__findnew_dso(machine, filename); machine 1927 tools/perf/util/header.c dso__set_module_info(dso, &m, machine); machine 12 tools/perf/util/include/dwarf-regs.h const char *get_dwarf_regstr(unsigned int n, unsigned int machine); machine 50 tools/perf/util/intel-bts.c struct machine *machine; machine 267 tools/perf/util/intel-bts.c return machine__kernel_ip(bts->machine, ip) ? machine 320 tools/perf/util/intel-bts.c struct machine *machine = btsq->bts->machine; machine 327 tools/perf/util/intel-bts.c thread = machine__find_thread(machine, -1, btsq->tid); machine 331 tools/perf/util/intel-bts.c len = thread__memcpy(thread, machine, buf, ip, INTEL_PT_INSN_BUF_SZ, &x86_64); machine 392 tools/perf/util/intel-bts.c if (!machine__kernel_ip(btsq->bts->machine, branch->from) && machine 393 tools/perf/util/intel-bts.c machine__kernel_ip(btsq->bts->machine, branch->to) && machine 456 tools/perf/util/intel-bts.c thread = machine__find_thread(btsq->bts->machine, -1, machine 461 tools/perf/util/intel-bts.c thread = machine__findnew_thread(btsq->bts->machine, btsq->pid, machine 739 tools/perf/util/intel-bts.c struct machine *machine __maybe_unused) machine 869 tools/perf/util/intel-bts.c bts->machine = &session->machines.host; /* No kvm support */ machine 59 tools/perf/util/intel-pt.c struct machine *machine; machine 434 tools/perf/util/intel-pt.c struct machine *machine) machine 438 tools/perf/util/intel-pt.c size = dso__data_size(dso, machine); machine 448 tools/perf/util/intel-pt.c struct machine *machine) machine 456 tools/perf/util/intel-pt.c bits = intel_pt_cache_size(dso, machine); machine 466 tools/perf/util/intel-pt.c static int intel_pt_cache_add(struct dso *dso, struct machine *machine, machine 470 tools/perf/util/intel-pt.c struct auxtrace_cache *c = intel_pt_cache(dso, machine); machine 497 tools/perf/util/intel-pt.c intel_pt_cache_lookup(struct dso *dso, struct machine *machine, u64 offset) machine 499 tools/perf/util/intel-pt.c struct auxtrace_cache *c = intel_pt_cache(dso, machine); machine 520 tools/perf/util/intel-pt.c struct machine *machine = ptq->pt->machine; machine 559 tools/perf/util/intel-pt.c e = intel_pt_cache_lookup(al.map->dso, machine, offset); machine 584 tools/perf/util/intel-pt.c len = dso__data_read_offset(al.map->dso, machine, machine 628 tools/perf/util/intel-pt.c e = intel_pt_cache_lookup(al.map->dso, machine, start_offset); machine 634 tools/perf/util/intel-pt.c intel_pt_cache_add(al.map->dso, machine, start_offset, insn_cnt, machine 853 tools/perf/util/intel-pt.c struct perf_env *env = pt->machine->env; machine 976 tools/perf/util/intel-pt.c ptq->tid = machine__get_current_tid(pt->machine, ptq->cpu); machine 981 tools/perf/util/intel-pt.c ptq->thread = machine__find_thread(pt->machine, -1, ptq->tid); machine 1867 tools/perf/util/intel-pt.c err = machine__set_current_tid(pt->machine, ptq->cpu, -1, tid); machine 2019 tools/perf/util/intel-pt.c struct machine *machine = pt->machine; machine 2028 tools/perf/util/intel-pt.c map = machine__kernel_map(machine); machine 2164 tools/perf/util/intel-pt.c pt->kernel_start = machine__kernel_start(pt->machine); machine 2424 tools/perf/util/intel-pt.c return machine__set_current_tid(pt->machine, cpu, -1, tid); machine 2459 tools/perf/util/intel-pt.c if (machine__get_current_tid(pt->machine, cpu) == tid) machine 2462 tools/perf/util/intel-pt.c return machine__set_current_tid(pt->machine, cpu, pid, tid); machine 2503 tools/perf/util/intel-pt.c return machine__set_current_tid(pt->machine, cpu, pid, tid); machine 2518 tools/perf/util/intel-pt.c return machine__set_current_tid(pt->machine, sample->cpu, machine 2687 tools/perf/util/intel-pt.c struct machine *machine __maybe_unused) machine 3104 tools/perf/util/intel-pt.c pt->machine = &session->machines.host; /* No kvm support */ machine 3201 tools/perf/util/intel-pt.c if (thread__init_map_groups(pt->unknown_thread, pt->machine)) { machine 8 tools/perf/util/jit.h struct machine *machine, char *filename, pid_t pid, u64 *nbytes); machine 36 tools/perf/util/jitdump.c struct machine *machine; machine 414 tools/perf/util/jitdump.c idr_size = jd->machine->id_hdr_size; machine 488 tools/perf/util/jitdump.c ret = perf_event__process_mmap2(tool, event, &sample, jd->machine); machine 497 tools/perf/util/jitdump.c build_id__mark_dso_hit(tool, event, &sample, NULL, jd->machine); machine 522 tools/perf/util/jitdump.c idr_size = jd->machine->id_hdr_size; machine 580 tools/perf/util/jitdump.c ret = perf_event__process_mmap2(tool, event, &sample, jd->machine); machine 586 tools/perf/util/jitdump.c build_id__mark_dso_hit(tool, event, &sample, NULL, jd->machine); machine 755 tools/perf/util/jitdump.c struct machine *machine, machine 774 tools/perf/util/jitdump.c jd.machine = machine; machine 43 tools/perf/util/machine.c static void __machine__remove_thread(struct machine *machine, struct thread *th, bool lock); machine 52 tools/perf/util/machine.c static void machine__threads_init(struct machine *machine) machine 57 tools/perf/util/machine.c struct threads *threads = &machine->threads[i]; machine 66 tools/perf/util/machine.c static int machine__set_mmap_name(struct machine *machine) machine 68 tools/perf/util/machine.c if (machine__is_host(machine)) machine 69 tools/perf/util/machine.c machine->mmap_name = strdup("[kernel.kallsyms]"); machine 70 tools/perf/util/machine.c else if (machine__is_default_guest(machine)) machine 71 tools/perf/util/machine.c machine->mmap_name = strdup("[guest.kernel.kallsyms]"); machine 72 tools/perf/util/machine.c else if (asprintf(&machine->mmap_name, "[guest.kernel.kallsyms.%d]", machine 73 tools/perf/util/machine.c machine->pid) < 0) machine 74 tools/perf/util/machine.c machine->mmap_name = NULL; machine 76 tools/perf/util/machine.c return machine->mmap_name ? 0 : -ENOMEM; machine 79 tools/perf/util/machine.c int machine__init(struct machine *machine, const char *root_dir, pid_t pid) machine 83 tools/perf/util/machine.c memset(machine, 0, sizeof(*machine)); machine 84 tools/perf/util/machine.c map_groups__init(&machine->kmaps, machine); machine 85 tools/perf/util/machine.c RB_CLEAR_NODE(&machine->rb_node); machine 86 tools/perf/util/machine.c dsos__init(&machine->dsos); machine 88 tools/perf/util/machine.c machine__threads_init(machine); machine 90 tools/perf/util/machine.c machine->vdso_info = NULL; machine 91 tools/perf/util/machine.c machine->env = NULL; machine 93 tools/perf/util/machine.c machine->pid = pid; machine 95 tools/perf/util/machine.c machine->id_hdr_size = 0; machine 96 tools/perf/util/machine.c machine->kptr_restrict_warned = false; machine 97 tools/perf/util/machine.c machine->comm_exec = false; machine 98 tools/perf/util/machine.c machine->kernel_start = 0; machine 99 tools/perf/util/machine.c machine->vmlinux_map = NULL; machine 101 tools/perf/util/machine.c machine->root_dir = strdup(root_dir); machine 102 tools/perf/util/machine.c if (machine->root_dir == NULL) machine 105 tools/perf/util/machine.c if (machine__set_mmap_name(machine)) machine 109 tools/perf/util/machine.c struct thread *thread = machine__findnew_thread(machine, -1, machine 121 tools/perf/util/machine.c machine->current_tid = NULL; machine 126 tools/perf/util/machine.c zfree(&machine->root_dir); machine 127 tools/perf/util/machine.c zfree(&machine->mmap_name); machine 132 tools/perf/util/machine.c struct machine *machine__new_host(void) machine 134 tools/perf/util/machine.c struct machine *machine = malloc(sizeof(*machine)); machine 136 tools/perf/util/machine.c if (machine != NULL) { machine 137 tools/perf/util/machine.c machine__init(machine, "", HOST_KERNEL_ID); machine 139 tools/perf/util/machine.c if (machine__create_kernel_maps(machine) < 0) machine 143 tools/perf/util/machine.c return machine; machine 145 tools/perf/util/machine.c free(machine); machine 149 tools/perf/util/machine.c struct machine *machine__new_kallsyms(void) machine 151 tools/perf/util/machine.c struct machine *machine = machine__new_host(); machine 158 tools/perf/util/machine.c if (machine && machine__load_kallsyms(machine, "/proc/kallsyms") <= 0) { machine 159 tools/perf/util/machine.c machine__delete(machine); machine 160 tools/perf/util/machine.c machine = NULL; machine 163 tools/perf/util/machine.c return machine; machine 188 tools/perf/util/machine.c void machine__delete_threads(struct machine *machine) machine 194 tools/perf/util/machine.c struct threads *threads = &machine->threads[i]; machine 201 tools/perf/util/machine.c __machine__remove_thread(machine, t, false); machine 207 tools/perf/util/machine.c void machine__exit(struct machine *machine) machine 211 tools/perf/util/machine.c if (machine == NULL) machine 214 tools/perf/util/machine.c machine__destroy_kernel_maps(machine); machine 215 tools/perf/util/machine.c map_groups__exit(&machine->kmaps); machine 216 tools/perf/util/machine.c dsos__exit(&machine->dsos); machine 217 tools/perf/util/machine.c machine__exit_vdso(machine); machine 218 tools/perf/util/machine.c zfree(&machine->root_dir); machine 219 tools/perf/util/machine.c zfree(&machine->mmap_name); machine 220 tools/perf/util/machine.c zfree(&machine->current_tid); machine 223 tools/perf/util/machine.c struct threads *threads = &machine->threads[i]; machine 240 tools/perf/util/machine.c void machine__delete(struct machine *machine) machine 242 tools/perf/util/machine.c if (machine) { machine 243 tools/perf/util/machine.c machine__exit(machine); machine 244 tools/perf/util/machine.c free(machine); machine 260 tools/perf/util/machine.c struct machine *machines__add(struct machines *machines, pid_t pid, machine 265 tools/perf/util/machine.c struct machine *pos, *machine = malloc(sizeof(*machine)); machine 268 tools/perf/util/machine.c if (machine == NULL) machine 271 tools/perf/util/machine.c if (machine__init(machine, root_dir, pid) != 0) { machine 272 tools/perf/util/machine.c free(machine); machine 278 tools/perf/util/machine.c pos = rb_entry(parent, struct machine, rb_node); machine 287 tools/perf/util/machine.c rb_link_node(&machine->rb_node, parent, p); machine 288 tools/perf/util/machine.c rb_insert_color_cached(&machine->rb_node, &machines->guests, leftmost); machine 290 tools/perf/util/machine.c return machine; machine 300 tools/perf/util/machine.c struct machine *machine = rb_entry(nd, struct machine, rb_node); machine 302 tools/perf/util/machine.c machine->comm_exec = comm_exec; machine 306 tools/perf/util/machine.c struct machine *machines__find(struct machines *machines, pid_t pid) machine 310 tools/perf/util/machine.c struct machine *machine; machine 311 tools/perf/util/machine.c struct machine *default_machine = NULL; machine 318 tools/perf/util/machine.c machine = rb_entry(parent, struct machine, rb_node); machine 319 tools/perf/util/machine.c if (pid < machine->pid) machine 321 tools/perf/util/machine.c else if (pid > machine->pid) machine 324 tools/perf/util/machine.c return machine; machine 325 tools/perf/util/machine.c if (!machine->pid) machine 326 tools/perf/util/machine.c default_machine = machine; machine 332 tools/perf/util/machine.c struct machine *machines__findnew(struct machines *machines, pid_t pid) machine 336 tools/perf/util/machine.c struct machine *machine = machines__find(machines, pid); machine 338 tools/perf/util/machine.c if (machine && (machine->pid == pid)) machine 355 tools/perf/util/machine.c machine = NULL; machine 361 tools/perf/util/machine.c machine = machines__add(machines, pid, root_dir); machine 363 tools/perf/util/machine.c return machine; machine 372 tools/perf/util/machine.c struct machine *pos = rb_entry(nd, struct machine, rb_node); machine 380 tools/perf/util/machine.c struct machine *machine; machine 386 tools/perf/util/machine.c machine = rb_entry(node, struct machine, rb_node); machine 387 tools/perf/util/machine.c machine->id_hdr_size = id_hdr_size; machine 393 tools/perf/util/machine.c static void machine__update_thread_pid(struct machine *machine, machine 406 tools/perf/util/machine.c leader = __machine__findnew_thread(machine, th->pid_, th->pid_); machine 411 tools/perf/util/machine.c leader->mg = map_groups__new(machine); machine 446 tools/perf/util/machine.c __threads__get_last_match(struct threads *threads, struct machine *machine, machine 454 tools/perf/util/machine.c machine__update_thread_pid(machine, th, pid); machine 465 tools/perf/util/machine.c threads__get_last_match(struct threads *threads, struct machine *machine, machine 471 tools/perf/util/machine.c th = __threads__get_last_match(threads, machine, pid, tid); machine 493 tools/perf/util/machine.c static struct thread *____machine__findnew_thread(struct machine *machine, machine 503 tools/perf/util/machine.c th = threads__get_last_match(threads, machine, pid, tid); machine 513 tools/perf/util/machine.c machine__update_thread_pid(machine, th, pid); machine 541 tools/perf/util/machine.c if (thread__init_map_groups(th, machine)) { machine 558 tools/perf/util/machine.c struct thread *__machine__findnew_thread(struct machine *machine, pid_t pid, pid_t tid) machine 560 tools/perf/util/machine.c return ____machine__findnew_thread(machine, machine__threads(machine, tid), pid, tid, true); machine 563 tools/perf/util/machine.c struct thread *machine__findnew_thread(struct machine *machine, pid_t pid, machine 566 tools/perf/util/machine.c struct threads *threads = machine__threads(machine, tid); machine 570 tools/perf/util/machine.c th = __machine__findnew_thread(machine, pid, tid); machine 575 tools/perf/util/machine.c struct thread *machine__find_thread(struct machine *machine, pid_t pid, machine 578 tools/perf/util/machine.c struct threads *threads = machine__threads(machine, tid); machine 582 tools/perf/util/machine.c th = ____machine__findnew_thread(machine, threads, pid, tid, false); machine 587 tools/perf/util/machine.c struct comm *machine__thread_exec_comm(struct machine *machine, machine 590 tools/perf/util/machine.c if (machine->comm_exec) machine 596 tools/perf/util/machine.c int machine__process_comm_event(struct machine *machine, union perf_event *event, machine 599 tools/perf/util/machine.c struct thread *thread = machine__findnew_thread(machine, machine 606 tools/perf/util/machine.c machine->comm_exec = true; machine 622 tools/perf/util/machine.c int machine__process_namespaces_event(struct machine *machine __maybe_unused, machine 626 tools/perf/util/machine.c struct thread *thread = machine__findnew_thread(machine, machine 653 tools/perf/util/machine.c int machine__process_lost_event(struct machine *machine __maybe_unused, machine 661 tools/perf/util/machine.c int machine__process_lost_samples_event(struct machine *machine __maybe_unused, machine 669 tools/perf/util/machine.c static struct dso *machine__findnew_module_dso(struct machine *machine, machine 675 tools/perf/util/machine.c down_write(&machine->dsos.lock); machine 677 tools/perf/util/machine.c dso = __dsos__find(&machine->dsos, m->name, true); machine 679 tools/perf/util/machine.c dso = __dsos__addnew(&machine->dsos, m->name); machine 683 tools/perf/util/machine.c dso__set_module_info(dso, m, machine); machine 689 tools/perf/util/machine.c up_write(&machine->dsos.lock); machine 693 tools/perf/util/machine.c int machine__process_aux_event(struct machine *machine __maybe_unused, machine 701 tools/perf/util/machine.c int machine__process_itrace_start_event(struct machine *machine __maybe_unused, machine 709 tools/perf/util/machine.c int machine__process_switch_event(struct machine *machine __maybe_unused, machine 717 tools/perf/util/machine.c static int machine__process_ksymbol_register(struct machine *machine, machine 724 tools/perf/util/machine.c map = map_groups__find(&machine->kmaps, event->ksymbol.addr); machine 732 tools/perf/util/machine.c map_groups__insert(&machine->kmaps, map); machine 744 tools/perf/util/machine.c static int machine__process_ksymbol_unregister(struct machine *machine, machine 750 tools/perf/util/machine.c map = map_groups__find(&machine->kmaps, event->ksymbol.addr); machine 752 tools/perf/util/machine.c map_groups__remove(&machine->kmaps, map); machine 757 tools/perf/util/machine.c int machine__process_ksymbol(struct machine *machine __maybe_unused, machine 765 tools/perf/util/machine.c return machine__process_ksymbol_unregister(machine, event, machine 767 tools/perf/util/machine.c return machine__process_ksymbol_register(machine, event, sample); machine 770 tools/perf/util/machine.c struct map *machine__findnew_module_map(struct machine *machine, u64 start, machine 780 tools/perf/util/machine.c map = map_groups__find_by_name(&machine->kmaps, m.name); machine 784 tools/perf/util/machine.c dso = machine__findnew_module_dso(machine, &m, filename); machine 792 tools/perf/util/machine.c map_groups__insert(&machine->kmaps, map); machine 809 tools/perf/util/machine.c struct machine *pos = rb_entry(nd, struct machine, rb_node); machine 816 tools/perf/util/machine.c size_t machine__fprintf_dsos_buildid(struct machine *m, FILE *fp, machine 829 tools/perf/util/machine.c struct machine *pos = rb_entry(nd, struct machine, rb_node); machine 835 tools/perf/util/machine.c size_t machine__fprintf_vmlinux_path(struct machine *machine, FILE *fp) machine 839 tools/perf/util/machine.c struct dso *kdso = machine__kernel_map(machine)->dso; machine 855 tools/perf/util/machine.c size_t machine__fprintf(struct machine *machine, FILE *fp) machine 862 tools/perf/util/machine.c struct threads *threads = &machine->threads[i]; machine 880 tools/perf/util/machine.c static struct dso *machine__get_kernel(struct machine *machine) machine 882 tools/perf/util/machine.c const char *vmlinux_name = machine->mmap_name; machine 885 tools/perf/util/machine.c if (machine__is_host(machine)) { machine 889 tools/perf/util/machine.c kernel = machine__findnew_kernel(machine, vmlinux_name, machine 895 tools/perf/util/machine.c kernel = machine__findnew_kernel(machine, vmlinux_name, machine 901 tools/perf/util/machine.c dso__read_running_kernel_build_id(kernel, machine); machine 910 tools/perf/util/machine.c void machine__get_kallsyms_filename(struct machine *machine, char *buf, machine 913 tools/perf/util/machine.c if (machine__is_default_guest(machine)) machine 916 tools/perf/util/machine.c scnprintf(buf, bufsz, "%s/proc/kallsyms", machine->root_dir); machine 925 tools/perf/util/machine.c static int machine__get_running_kernel_start(struct machine *machine, machine 934 tools/perf/util/machine.c machine__get_kallsyms_filename(machine, filename, PATH_MAX); machine 960 tools/perf/util/machine.c int machine__create_extra_kernel_map(struct machine *machine, machine 976 tools/perf/util/machine.c kmap->kmaps = &machine->kmaps; machine 979 tools/perf/util/machine.c map_groups__insert(&machine->kmaps, map); machine 1021 tools/perf/util/machine.c int machine__map_x86_64_entry_trampolines(struct machine *machine, machine 1024 tools/perf/util/machine.c struct map_groups *kmaps = &machine->kmaps; machine 1047 tools/perf/util/machine.c if (found || machine->trampolines_mapped) machine 1054 tools/perf/util/machine.c nr_cpus_avail = machine__nr_cpus_avail(machine); machine 1069 tools/perf/util/machine.c if (machine__create_extra_kernel_map(machine, kernel, &xm) < 0) machine 1073 tools/perf/util/machine.c machine->trampolines_mapped = nr_cpus_avail; machine 1078 tools/perf/util/machine.c int __weak machine__create_extra_kernel_maps(struct machine *machine __maybe_unused, machine 1085 tools/perf/util/machine.c __machine__create_kernel_maps(struct machine *machine, struct dso *kernel) machine 1091 tools/perf/util/machine.c machine__destroy_kernel_maps(machine); machine 1093 tools/perf/util/machine.c machine->vmlinux_map = map__new2(0, kernel); machine 1094 tools/perf/util/machine.c if (machine->vmlinux_map == NULL) machine 1097 tools/perf/util/machine.c machine->vmlinux_map->map_ip = machine->vmlinux_map->unmap_ip = identity__map_ip; machine 1098 tools/perf/util/machine.c map = machine__kernel_map(machine); machine 1103 tools/perf/util/machine.c kmap->kmaps = &machine->kmaps; machine 1104 tools/perf/util/machine.c map_groups__insert(&machine->kmaps, map); machine 1109 tools/perf/util/machine.c void machine__destroy_kernel_maps(struct machine *machine) machine 1112 tools/perf/util/machine.c struct map *map = machine__kernel_map(machine); machine 1118 tools/perf/util/machine.c map_groups__remove(&machine->kmaps, map); machine 1124 tools/perf/util/machine.c map__zput(machine->vmlinux_map); machine 1183 tools/perf/util/machine.c struct machine *pos = rb_entry(next, struct machine, rb_node); machine 1193 tools/perf/util/machine.c struct machine *machine = machines__findnew(machines, pid); machine 1195 tools/perf/util/machine.c if (machine == NULL) machine 1198 tools/perf/util/machine.c return machine__create_kernel_maps(machine); machine 1201 tools/perf/util/machine.c int machine__load_kallsyms(struct machine *machine, const char *filename) machine 1203 tools/perf/util/machine.c struct map *map = machine__kernel_map(machine); machine 1213 tools/perf/util/machine.c map_groups__fixup_end(&machine->kmaps); machine 1219 tools/perf/util/machine.c int machine__load_vmlinux_path(struct machine *machine) machine 1221 tools/perf/util/machine.c struct map *map = machine__kernel_map(machine); machine 1351 tools/perf/util/machine.c static int machine__set_modules_path(struct machine *machine) machine 1356 tools/perf/util/machine.c version = get_kernel_version(machine->root_dir); machine 1361 tools/perf/util/machine.c machine->root_dir, version); machine 1364 tools/perf/util/machine.c return map_groups__set_modules_path_dir(&machine->kmaps, modules_path, 0); machine 1376 tools/perf/util/machine.c struct machine *machine = arg; machine 1382 tools/perf/util/machine.c map = machine__findnew_module_map(machine, start, name); machine 1387 tools/perf/util/machine.c dso__kernel_module_get_build_id(map->dso, machine->root_dir); machine 1392 tools/perf/util/machine.c static int machine__create_modules(struct machine *machine) machine 1397 tools/perf/util/machine.c if (machine__is_default_guest(machine)) { machine 1400 tools/perf/util/machine.c snprintf(path, PATH_MAX, "%s/proc/modules", machine->root_dir); machine 1407 tools/perf/util/machine.c if (modules__parse(modules, machine, machine__create_module)) machine 1410 tools/perf/util/machine.c if (!machine__set_modules_path(machine)) machine 1418 tools/perf/util/machine.c static void machine__set_kernel_mmap(struct machine *machine, machine 1421 tools/perf/util/machine.c machine->vmlinux_map->start = start; machine 1422 tools/perf/util/machine.c machine->vmlinux_map->end = end; machine 1428 tools/perf/util/machine.c machine->vmlinux_map->end = ~0ULL; machine 1431 tools/perf/util/machine.c static void machine__update_kernel_mmap(struct machine *machine, machine 1434 tools/perf/util/machine.c struct map *map = machine__kernel_map(machine); machine 1437 tools/perf/util/machine.c map_groups__remove(&machine->kmaps, map); machine 1439 tools/perf/util/machine.c machine__set_kernel_mmap(machine, start, end); machine 1441 tools/perf/util/machine.c map_groups__insert(&machine->kmaps, map); machine 1445 tools/perf/util/machine.c int machine__create_kernel_maps(struct machine *machine) machine 1447 tools/perf/util/machine.c struct dso *kernel = machine__get_kernel(machine); machine 1456 tools/perf/util/machine.c ret = __machine__create_kernel_maps(machine, kernel); machine 1460 tools/perf/util/machine.c if (symbol_conf.use_modules && machine__create_modules(machine) < 0) { machine 1461 tools/perf/util/machine.c if (machine__is_host(machine)) machine 1466 tools/perf/util/machine.c "continuing anyway...\n", machine->pid); machine 1469 tools/perf/util/machine.c if (!machine__get_running_kernel_start(machine, &name, &start, &end)) { machine 1471 tools/perf/util/machine.c map__set_kallsyms_ref_reloc_sym(machine->vmlinux_map, name, start)) { machine 1472 tools/perf/util/machine.c machine__destroy_kernel_maps(machine); machine 1481 tools/perf/util/machine.c machine__update_kernel_mmap(machine, start, end); machine 1484 tools/perf/util/machine.c if (machine__create_extra_kernel_maps(machine, kernel)) machine 1489 tools/perf/util/machine.c map = map__next(machine__kernel_map(machine)); machine 1491 tools/perf/util/machine.c machine__set_kernel_mmap(machine, start, map->start); machine 1499 tools/perf/util/machine.c static bool machine__uses_kcore(struct machine *machine) machine 1503 tools/perf/util/machine.c list_for_each_entry(dso, &machine->dsos.head, node) { machine 1511 tools/perf/util/machine.c static bool perf_event__is_extra_kernel_mmap(struct machine *machine, machine 1514 tools/perf/util/machine.c return machine__is(machine, "x86_64") && machine 1518 tools/perf/util/machine.c static int machine__process_extra_kernel_map(struct machine *machine, machine 1521 tools/perf/util/machine.c struct map *kernel_map = machine__kernel_map(machine); machine 1534 tools/perf/util/machine.c return machine__create_extra_kernel_map(machine, kernel, &xm); machine 1537 tools/perf/util/machine.c static int machine__process_kernel_mmap_event(struct machine *machine, machine 1545 tools/perf/util/machine.c if (machine__uses_kcore(machine)) machine 1548 tools/perf/util/machine.c if (machine__is_host(machine)) machine 1554 tools/perf/util/machine.c machine->mmap_name, machine 1555 tools/perf/util/machine.c strlen(machine->mmap_name) - 1) == 0; machine 1558 tools/perf/util/machine.c map = machine__findnew_module_map(machine, event->mmap.start, machine 1566 tools/perf/util/machine.c strlen(machine->mmap_name)); machine 1574 tools/perf/util/machine.c down_read(&machine->dsos.lock); machine 1576 tools/perf/util/machine.c list_for_each_entry(dso, &machine->dsos.head, node) { machine 1604 tools/perf/util/machine.c up_read(&machine->dsos.lock); machine 1607 tools/perf/util/machine.c kernel = machine__findnew_dso(machine, machine->mmap_name); machine 1612 tools/perf/util/machine.c if (__machine__create_kernel_maps(machine, kernel) < 0) { machine 1620 tools/perf/util/machine.c machine__update_kernel_mmap(machine, event->mmap.start, machine 1629 tools/perf/util/machine.c map__set_kallsyms_ref_reloc_sym(machine->vmlinux_map, machine 1634 tools/perf/util/machine.c if (machine__is_default_guest(machine)) { machine 1638 tools/perf/util/machine.c dso__load(kernel, machine__kernel_map(machine)); machine 1640 tools/perf/util/machine.c } else if (perf_event__is_extra_kernel_mmap(machine, event)) { machine 1641 tools/perf/util/machine.c return machine__process_extra_kernel_map(machine, event); machine 1648 tools/perf/util/machine.c int machine__process_mmap2_event(struct machine *machine, machine 1661 tools/perf/util/machine.c ret = machine__process_kernel_mmap_event(machine, event); machine 1667 tools/perf/util/machine.c thread = machine__findnew_thread(machine, event->mmap2.pid, machine 1672 tools/perf/util/machine.c map = map__new(machine, event->mmap2.start, machine 1701 tools/perf/util/machine.c int machine__process_mmap_event(struct machine *machine, union perf_event *event, machine 1714 tools/perf/util/machine.c ret = machine__process_kernel_mmap_event(machine, event); machine 1720 tools/perf/util/machine.c thread = machine__findnew_thread(machine, event->mmap.pid, machine 1728 tools/perf/util/machine.c map = map__new(machine, event->mmap.start, machine 1754 tools/perf/util/machine.c static void __machine__remove_thread(struct machine *machine, struct thread *th, bool lock) machine 1756 tools/perf/util/machine.c struct threads *threads = machine__threads(machine, th->tid); machine 1787 tools/perf/util/machine.c void machine__remove_thread(struct machine *machine, struct thread *th) machine 1789 tools/perf/util/machine.c return __machine__remove_thread(machine, th, true); machine 1792 tools/perf/util/machine.c int machine__process_fork_event(struct machine *machine, union perf_event *event, machine 1795 tools/perf/util/machine.c struct thread *thread = machine__find_thread(machine, machine 1798 tools/perf/util/machine.c struct thread *parent = machine__findnew_thread(machine, machine 1816 tools/perf/util/machine.c machine__remove_thread(machine, parent); machine 1818 tools/perf/util/machine.c parent = machine__findnew_thread(machine, event->fork.ppid, machine 1824 tools/perf/util/machine.c machine__remove_thread(machine, thread); machine 1828 tools/perf/util/machine.c thread = machine__findnew_thread(machine, event->fork.pid, machine 1858 tools/perf/util/machine.c int machine__process_exit_event(struct machine *machine, union perf_event *event, machine 1861 tools/perf/util/machine.c struct thread *thread = machine__find_thread(machine, machine 1876 tools/perf/util/machine.c int machine__process_event(struct machine *machine, union perf_event *event, machine 1883 tools/perf/util/machine.c ret = machine__process_comm_event(machine, event, sample); break; machine 1885 tools/perf/util/machine.c ret = machine__process_mmap_event(machine, event, sample); break; machine 1887 tools/perf/util/machine.c ret = machine__process_namespaces_event(machine, event, sample); break; machine 1889 tools/perf/util/machine.c ret = machine__process_mmap2_event(machine, event, sample); break; machine 1891 tools/perf/util/machine.c ret = machine__process_fork_event(machine, event, sample); break; machine 1893 tools/perf/util/machine.c ret = machine__process_exit_event(machine, event, sample); break; machine 1895 tools/perf/util/machine.c ret = machine__process_lost_event(machine, event, sample); break; machine 1897 tools/perf/util/machine.c ret = machine__process_aux_event(machine, event); break; machine 1899 tools/perf/util/machine.c ret = machine__process_itrace_start_event(machine, event); break; machine 1901 tools/perf/util/machine.c ret = machine__process_lost_samples_event(machine, event, sample); break; machine 1904 tools/perf/util/machine.c ret = machine__process_switch_event(machine, event); break; machine 1906 tools/perf/util/machine.c ret = machine__process_ksymbol(machine, event, sample); break; machine 1908 tools/perf/util/machine.c ret = machine__process_bpf(machine, event, sample); break; machine 2538 tools/perf/util/machine.c int machine__for_each_thread(struct machine *machine, machine 2549 tools/perf/util/machine.c threads = &machine->threads[i]; machine 2579 tools/perf/util/machine.c struct machine *machine = rb_entry(nd, struct machine, rb_node); machine 2581 tools/perf/util/machine.c rc = machine__for_each_thread(machine, fn, priv); machine 2588 tools/perf/util/machine.c pid_t machine__get_current_tid(struct machine *machine, int cpu) machine 2590 tools/perf/util/machine.c int nr_cpus = min(machine->env->nr_cpus_online, MAX_NR_CPUS); machine 2592 tools/perf/util/machine.c if (cpu < 0 || cpu >= nr_cpus || !machine->current_tid) machine 2595 tools/perf/util/machine.c return machine->current_tid[cpu]; machine 2598 tools/perf/util/machine.c int machine__set_current_tid(struct machine *machine, int cpu, pid_t pid, machine 2602 tools/perf/util/machine.c int nr_cpus = min(machine->env->nr_cpus_online, MAX_NR_CPUS); machine 2607 tools/perf/util/machine.c if (!machine->current_tid) { machine 2610 tools/perf/util/machine.c machine->current_tid = calloc(nr_cpus, sizeof(pid_t)); machine 2611 tools/perf/util/machine.c if (!machine->current_tid) machine 2614 tools/perf/util/machine.c machine->current_tid[i] = -1; machine 2623 tools/perf/util/machine.c machine->current_tid[cpu] = tid; machine 2625 tools/perf/util/machine.c thread = machine__findnew_thread(machine, pid, tid); machine 2639 tools/perf/util/machine.c bool machine__is(struct machine *machine, const char *arch) machine 2641 tools/perf/util/machine.c return machine && !strcmp(perf_env__raw_arch(machine->env), arch); machine 2644 tools/perf/util/machine.c int machine__nr_cpus_avail(struct machine *machine) machine 2646 tools/perf/util/machine.c return machine ? perf_env__nr_cpus_avail(machine->env) : 0; machine 2649 tools/perf/util/machine.c int machine__get_kernel_start(struct machine *machine) machine 2651 tools/perf/util/machine.c struct map *map = machine__kernel_map(machine); machine 2662 tools/perf/util/machine.c machine->kernel_start = 1ULL << 63; machine 2670 tools/perf/util/machine.c if (!err && !machine__is(machine, "x86_64")) machine 2671 tools/perf/util/machine.c machine->kernel_start = map->start; machine 2676 tools/perf/util/machine.c u8 machine__addr_cpumode(struct machine *machine, u8 cpumode, u64 addr) machine 2681 tools/perf/util/machine.c if (!machine->single_address_space) machine 2684 tools/perf/util/machine.c kernel_ip = machine__kernel_ip(machine, addr); machine 2703 tools/perf/util/machine.c struct dso *machine__findnew_dso(struct machine *machine, const char *filename) machine 2705 tools/perf/util/machine.c return dsos__findnew(&machine->dsos, filename); machine 2710 tools/perf/util/machine.c struct machine *machine = vmachine; machine 2712 tools/perf/util/machine.c struct symbol *sym = machine__find_kernel_symbol(machine, *addrp, &map); machine 64 tools/perf/util/machine.h static inline struct threads *machine__threads(struct machine *machine, pid_t tid) machine 67 tools/perf/util/machine.h return &machine->threads[(unsigned int)tid % THREADS__TABLE_SIZE]; machine 74 tools/perf/util/machine.h struct map *machine__kernel_map(struct machine *machine) machine 76 tools/perf/util/machine.h return machine->vmlinux_map; machine 83 tools/perf/util/machine.h struct maps *machine__kernel_maps(struct machine *machine) machine 85 tools/perf/util/machine.h return &machine->kmaps.maps; machine 88 tools/perf/util/machine.h int machine__get_kernel_start(struct machine *machine); machine 90 tools/perf/util/machine.h static inline u64 machine__kernel_start(struct machine *machine) machine 92 tools/perf/util/machine.h if (!machine->kernel_start) machine 93 tools/perf/util/machine.h machine__get_kernel_start(machine); machine 94 tools/perf/util/machine.h return machine->kernel_start; machine 97 tools/perf/util/machine.h static inline bool machine__kernel_ip(struct machine *machine, u64 ip) machine 99 tools/perf/util/machine.h u64 kernel_start = machine__kernel_start(machine); machine 104 tools/perf/util/machine.h u8 machine__addr_cpumode(struct machine *machine, u8 cpumode, u64 addr); machine 106 tools/perf/util/machine.h struct thread *machine__find_thread(struct machine *machine, pid_t pid, machine 108 tools/perf/util/machine.h struct comm *machine__thread_exec_comm(struct machine *machine, machine 111 tools/perf/util/machine.h int machine__process_comm_event(struct machine *machine, union perf_event *event, machine 113 tools/perf/util/machine.h int machine__process_exit_event(struct machine *machine, union perf_event *event, machine 115 tools/perf/util/machine.h int machine__process_fork_event(struct machine *machine, union perf_event *event, machine 117 tools/perf/util/machine.h int machine__process_lost_event(struct machine *machine, union perf_event *event, machine 119 tools/perf/util/machine.h int machine__process_lost_samples_event(struct machine *machine, union perf_event *event, machine 121 tools/perf/util/machine.h int machine__process_aux_event(struct machine *machine, machine 123 tools/perf/util/machine.h int machine__process_itrace_start_event(struct machine *machine, machine 125 tools/perf/util/machine.h int machine__process_switch_event(struct machine *machine, machine 127 tools/perf/util/machine.h int machine__process_namespaces_event(struct machine *machine, machine 130 tools/perf/util/machine.h int machine__process_mmap_event(struct machine *machine, union perf_event *event, machine 132 tools/perf/util/machine.h int machine__process_mmap2_event(struct machine *machine, union perf_event *event, machine 134 tools/perf/util/machine.h int machine__process_ksymbol(struct machine *machine, machine 137 tools/perf/util/machine.h int machine__process_event(struct machine *machine, union perf_event *event, machine 140 tools/perf/util/machine.h typedef void (*machine__process_t)(struct machine *machine, void *data); machine 143 tools/perf/util/machine.h struct machine host; machine 153 tools/perf/util/machine.h struct machine *machines__add(struct machines *machines, pid_t pid, machine 155 tools/perf/util/machine.h struct machine *machines__find_host(struct machines *machines); machine 156 tools/perf/util/machine.h struct machine *machines__find(struct machines *machines, pid_t pid); machine 157 tools/perf/util/machine.h struct machine *machines__findnew(struct machines *machines, pid_t pid); machine 162 tools/perf/util/machine.h struct machine *machine__new_host(void); machine 163 tools/perf/util/machine.h struct machine *machine__new_kallsyms(void); machine 164 tools/perf/util/machine.h int machine__init(struct machine *machine, const char *root_dir, pid_t pid); machine 165 tools/perf/util/machine.h void machine__exit(struct machine *machine); machine 166 tools/perf/util/machine.h void machine__delete_threads(struct machine *machine); machine 167 tools/perf/util/machine.h void machine__delete(struct machine *machine); machine 168 tools/perf/util/machine.h void machine__remove_thread(struct machine *machine, struct thread *th); machine 189 tools/perf/util/machine.h static inline bool machine__is_default_guest(struct machine *machine) machine 191 tools/perf/util/machine.h return machine ? machine->pid == DEFAULT_GUEST_KERNEL_ID : false; machine 194 tools/perf/util/machine.h static inline bool machine__is_host(struct machine *machine) machine 196 tools/perf/util/machine.h return machine ? machine->pid == HOST_KERNEL_ID : false; machine 199 tools/perf/util/machine.h bool machine__is(struct machine *machine, const char *arch); machine 200 tools/perf/util/machine.h int machine__nr_cpus_avail(struct machine *machine); machine 202 tools/perf/util/machine.h struct thread *__machine__findnew_thread(struct machine *machine, pid_t pid, pid_t tid); machine 203 tools/perf/util/machine.h struct thread *machine__findnew_thread(struct machine *machine, pid_t pid, pid_t tid); machine 205 tools/perf/util/machine.h struct dso *machine__findnew_dso(struct machine *machine, const char *filename); machine 207 tools/perf/util/machine.h size_t machine__fprintf(struct machine *machine, FILE *fp); machine 210 tools/perf/util/machine.h struct symbol *machine__find_kernel_symbol(struct machine *machine, u64 addr, machine 213 tools/perf/util/machine.h return map_groups__find_symbol(&machine->kmaps, addr, mapp); machine 217 tools/perf/util/machine.h struct symbol *machine__find_kernel_symbol_by_name(struct machine *machine, machine 221 tools/perf/util/machine.h return map_groups__find_symbol_by_name(&machine->kmaps, name, mapp); machine 224 tools/perf/util/machine.h struct map *machine__findnew_module_map(struct machine *machine, u64 start, machine 228 tools/perf/util/machine.h int machine__load_kallsyms(struct machine *machine, const char *filename); machine 230 tools/perf/util/machine.h int machine__load_vmlinux_path(struct machine *machine); machine 232 tools/perf/util/machine.h size_t machine__fprintf_dsos_buildid(struct machine *machine, FILE *fp, machine 238 tools/perf/util/machine.h void machine__destroy_kernel_maps(struct machine *machine); machine 239 tools/perf/util/machine.h int machine__create_kernel_maps(struct machine *machine); machine 245 tools/perf/util/machine.h size_t machine__fprintf_vmlinux_path(struct machine *machine, FILE *fp); machine 247 tools/perf/util/machine.h int machine__for_each_thread(struct machine *machine, machine 254 tools/perf/util/machine.h pid_t machine__get_current_tid(struct machine *machine, int cpu); machine 255 tools/perf/util/machine.h int machine__set_current_tid(struct machine *machine, int cpu, pid_t pid, machine 262 tools/perf/util/machine.h void machine__get_kallsyms_filename(struct machine *machine, char *buf, machine 265 tools/perf/util/machine.h int machine__create_extra_kernel_maps(struct machine *machine, machine 276 tools/perf/util/machine.h int machine__create_extra_kernel_map(struct machine *machine, machine 280 tools/perf/util/machine.h int machine__map_x86_64_entry_trampolines(struct machine *machine, machine 148 tools/perf/util/map.c struct map *map__new(struct machine *machine, u64 start, u64 len, machine 198 tools/perf/util/map.c dso = machine__findnew_vdso(machine, thread); machine 200 tools/perf/util/map.c dso = machine__findnew_dso(machine, filename); machine 258 tools/perf/util/map.c return machine__kernel_map(map->groups->machine) == map; machine 522 tools/perf/util/map.c if (kmap && is_entry_trampoline(kmap->name) && kmap->kmaps && kmap->kmaps->machine) { machine 523 tools/perf/util/map.c struct map *kernel_map = machine__kernel_map(kmap->kmaps->machine); machine 582 tools/perf/util/map.c void map_groups__init(struct map_groups *mg, struct machine *machine) machine 585 tools/perf/util/map.c mg->machine = machine; machine 641 tools/perf/util/map.c struct map_groups *map_groups__new(struct machine *machine) machine 646 tools/perf/util/map.c map_groups__init(mg, machine); machine 18 tools/perf/util/map.h struct machine; machine 113 tools/perf/util/map.h struct map *map__new(struct machine *machine, u64 start, u64 len, machine 13 tools/perf/util/map_groups.h struct machine; machine 32 tools/perf/util/map_groups.h struct machine *machine; machine 48 tools/perf/util/map_groups.h struct map_groups *map_groups__new(struct machine *machine); machine 60 tools/perf/util/map_groups.h void map_groups__init(struct map_groups *mg, struct machine *machine); machine 65 tools/perf/util/probe-event.c static struct machine *host_machine; machine 164 tools/perf/util/probe-finder.c unsigned int machine, machine 260 tools/perf/util/probe-finder.c regs = get_dwarf_regstr(regn, machine); machine 538 tools/perf/util/probe-finder.c &pf->sp_die, pf->machine, pf->tvar); machine 1168 tools/perf/util/probe-finder.c pf->machine = ehdr.e_machine; machine 1207 tools/perf/util/probe-finder.c pf->machine, NULL) == 0) { machine 1389 tools/perf/util/probe-finder.c af->pf.machine, NULL); machine 87 tools/perf/util/probe-finder.h unsigned int machine; /* Target machine arch */ machine 172 tools/perf/util/s390-cpumsf.c struct machine *machine; machine 1135 tools/perf/util/s390-cpumsf.c sf->machine = &session->machines.host; /* No kvm support */ machine 976 tools/perf/util/scripting-engines/trace-event-python.c struct machine *machine) machine 983 tools/perf/util/scripting-engines/trace-event-python.c tuple_set_u64(t, 0, machine->db_id); machine 984 tools/perf/util/scripting-engines/trace-event-python.c tuple_set_s32(t, 1, machine->pid); machine 985 tools/perf/util/scripting-engines/trace-event-python.c tuple_set_string(t, 2, machine->root_dir ? machine->root_dir : ""); machine 995 tools/perf/util/scripting-engines/trace-event-python.c u64 main_thread_db_id, struct machine *machine) machine 1003 tools/perf/util/scripting-engines/trace-event-python.c tuple_set_u64(t, 1, machine->db_id); machine 1056 tools/perf/util/scripting-engines/trace-event-python.c struct machine *machine) machine 1067 tools/perf/util/scripting-engines/trace-event-python.c tuple_set_u64(t, 1, machine->db_id); machine 1130 tools/perf/util/scripting-engines/trace-event-python.c tuple_set_u64(t, 2, es->al->machine->db_id); machine 1242 tools/perf/util/scripting-engines/trace-event-python.c struct machine *machine, machine 1253 tools/perf/util/scripting-engines/trace-event-python.c tuple_set_u64(t, 1, machine->db_id); machine 1334 tools/perf/util/scripting-engines/trace-event-python.c struct machine *machine) machine 1339 tools/perf/util/scripting-engines/trace-event-python.c db_export__switch(&tables->dbe, event, sample, machine); machine 1547 tools/perf/util/scripting-engines/trace-event-python.c SET_TABLE_HANDLER(machine); machine 338 tools/perf/util/session.c struct machine *machine __maybe_unused) machine 347 tools/perf/util/session.c struct machine *machine __maybe_unused) machine 1292 tools/perf/util/session.c static struct machine *machines__find_for_cpumode(struct machines *machines, machine 1296 tools/perf/util/session.c struct machine *machine; machine 1309 tools/perf/util/session.c machine = machines__find(machines, pid); machine 1310 tools/perf/util/session.c if (!machine) machine 1311 tools/perf/util/session.c machine = machines__findnew(machines, DEFAULT_GUEST_KERNEL_ID); machine 1312 tools/perf/util/session.c return machine; machine 1323 tools/perf/util/session.c struct machine *machine) machine 1347 tools/perf/util/session.c return tool->sample(tool, event, sample, evsel, machine); machine 1354 tools/perf/util/session.c struct machine *machine) machine 1362 tools/perf/util/session.c machine); machine 1376 tools/perf/util/session.c struct machine *machine) machine 1384 tools/perf/util/session.c return tool->sample(tool, event, sample, evsel, machine); machine 1389 tools/perf/util/session.c machine); machine 1392 tools/perf/util/session.c &sample->read.one, machine); machine 1402 tools/perf/util/session.c struct machine *machine; machine 1408 tools/perf/util/session.c machine = machines__find_for_cpumode(machines, event, sample); machine 1417 tools/perf/util/session.c if (machine == NULL) { machine 1421 tools/perf/util/session.c return perf_evlist__deliver_sample(evlist, tool, event, sample, evsel, machine); machine 1423 tools/perf/util/session.c return tool->mmap(tool, event, sample, machine); machine 1427 tools/perf/util/session.c return tool->mmap2(tool, event, sample, machine); machine 1429 tools/perf/util/session.c return tool->comm(tool, event, sample, machine); machine 1431 tools/perf/util/session.c return tool->namespaces(tool, event, sample, machine); machine 1433 tools/perf/util/session.c return tool->fork(tool, event, sample, machine); machine 1435 tools/perf/util/session.c return tool->exit(tool, event, sample, machine); machine 1439 tools/perf/util/session.c return tool->lost(tool, event, sample, machine); machine 1443 tools/perf/util/session.c return tool->lost_samples(tool, event, sample, machine); machine 1446 tools/perf/util/session.c return tool->read(tool, event, sample, evsel, machine); machine 1448 tools/perf/util/session.c return tool->throttle(tool, event, sample, machine); machine 1450 tools/perf/util/session.c return tool->unthrottle(tool, event, sample, machine); machine 1458 tools/perf/util/session.c return tool->aux(tool, event, sample, machine); machine 1460 tools/perf/util/session.c return tool->itrace_start(tool, event, sample, machine); machine 1463 tools/perf/util/session.c return tool->context_switch(tool, event, sample, machine); machine 1465 tools/perf/util/session.c return tool->ksymbol(tool, event, sample, machine); machine 1467 tools/perf/util/session.c return tool->bpf(tool, event, sample, machine); machine 90 tools/perf/util/session.h struct machine *perf_session__find_machine(struct perf_session *session, pid_t pid) machine 96 tools/perf/util/session.h struct machine *perf_session__findnew_machine(struct perf_session *session, pid_t pid) machine 937 tools/perf/util/symbol-elf.c dsos__add(&map->groups->machine->dsos, curr_dso); machine 761 tools/perf/util/symbol.c struct machine *machine; machine 773 tools/perf/util/symbol.c machine = kmaps->machine; machine 775 tools/perf/util/symbol.c x86_64 = machine__is(machine, "x86_64"); machine 793 tools/perf/util/symbol.c machine__is_default_guest(machine)) { machine 809 tools/perf/util/symbol.c machine->root_dir, module); machine 815 tools/perf/util/symbol.c !machine__is_default_guest(machine)) machine 894 tools/perf/util/symbol.c machine__is_default_guest(kmaps->machine)) { machine 1268 tools/perf/util/symbol.c struct machine *machine; machine 1277 tools/perf/util/symbol.c machine = kmaps->machine; machine 1327 tools/perf/util/symbol.c machine->trampolines_mapped = false; machine 1369 tools/perf/util/symbol.c if (machine__is(machine, "x86_64")) { machine 1379 tools/perf/util/symbol.c machine->trampolines_mapped = true; machine 1611 tools/perf/util/symbol.c struct machine *machine; machine 1640 tools/perf/util/symbol.c if (map->groups && map->groups->machine) machine 1641 tools/perf/util/symbol.c machine = map->groups->machine; machine 1643 tools/perf/util/symbol.c machine = NULL; machine 1651 tools/perf/util/symbol.c if (machine__is(machine, "x86_64")) machine 1652 tools/perf/util/symbol.c machine__map_x86_64_entry_trampolines(machine, dso); machine 1665 tools/perf/util/symbol.c if (machine) machine 1666 tools/perf/util/symbol.c root_dir = machine->root_dir; machine 2050 tools/perf/util/symbol.c struct machine *machine; machine 2057 tools/perf/util/symbol.c machine = map->groups->machine; machine 2059 tools/perf/util/symbol.c if (machine__is_default_guest(machine)) { machine 2076 tools/perf/util/symbol.c sprintf(path, "%s/proc/kallsyms", machine->root_dir); machine 2085 tools/perf/util/symbol.c dso__set_long_name(dso, machine->mmap_name, false); machine 120 tools/perf/util/symbol.h struct machine *machine; machine 50 tools/perf/util/synthetic-events.c struct machine *machine, machine 63 tools/perf/util/synthetic-events.c return process(tool, event, &synth_sample, machine); machine 139 tools/perf/util/synthetic-events.c struct machine *machine, machine 148 tools/perf/util/synthetic-events.c if (machine__is_host(machine)) { machine 155 tools/perf/util/synthetic-events.c *tgid = machine->pid; machine 166 tools/perf/util/synthetic-events.c memset(event->comm.comm + size, 0, machine->id_hdr_size); machine 169 tools/perf/util/synthetic-events.c machine->id_hdr_size); machine 178 tools/perf/util/synthetic-events.c struct machine *machine) machine 182 tools/perf/util/synthetic-events.c if (perf_event__prepare_comm(event, pid, machine, &tgid, &ppid) != 0) machine 185 tools/perf/util/synthetic-events.c if (perf_tool__process_synth_event(tool, event, machine, process) != 0) machine 208 tools/perf/util/synthetic-events.c struct machine *machine) machine 218 tools/perf/util/synthetic-events.c machine->id_hdr_size)); machine 235 tools/perf/util/synthetic-events.c machine->id_hdr_size); machine 237 tools/perf/util/synthetic-events.c if (perf_tool__process_synth_event(tool, event, machine, process) != 0) machine 247 tools/perf/util/synthetic-events.c struct machine *machine) machine 249 tools/perf/util/synthetic-events.c memset(&event->fork, 0, sizeof(event->fork) + machine->id_hdr_size); machine 268 tools/perf/util/synthetic-events.c event->fork.header.size = (sizeof(event->fork) + machine->id_hdr_size); machine 270 tools/perf/util/synthetic-events.c if (perf_tool__process_synth_event(tool, event, machine, process) != 0) machine 280 tools/perf/util/synthetic-events.c struct machine *machine, machine 292 tools/perf/util/synthetic-events.c if (machine__is_default_guest(machine)) machine 296 tools/perf/util/synthetic-events.c machine->root_dir, pid, pid); machine 352 tools/perf/util/synthetic-events.c if (machine__is_host(machine)) machine 398 tools/perf/util/synthetic-events.c memset(event->mmap2.filename + size, 0, machine->id_hdr_size); machine 399 tools/perf/util/synthetic-events.c event->mmap2.header.size += machine->id_hdr_size; machine 403 tools/perf/util/synthetic-events.c if (perf_tool__process_synth_event(tool, event, machine, process) != 0) { machine 417 tools/perf/util/synthetic-events.c struct machine *machine) machine 421 tools/perf/util/synthetic-events.c struct maps *maps = machine__kernel_maps(machine); machine 423 tools/perf/util/synthetic-events.c machine->id_hdr_size)); machine 436 tools/perf/util/synthetic-events.c if (machine__is_host(machine)) machine 451 tools/perf/util/synthetic-events.c memset(event->mmap.filename + size, 0, machine->id_hdr_size); machine 452 tools/perf/util/synthetic-events.c event->mmap.header.size += machine->id_hdr_size; machine 455 tools/perf/util/synthetic-events.c event->mmap.pid = machine->pid; machine 459 tools/perf/util/synthetic-events.c if (perf_tool__process_synth_event(tool, event, machine, process) != 0) { machine 474 tools/perf/util/synthetic-events.c struct perf_tool *tool, struct machine *machine, bool mmap_data) machine 485 tools/perf/util/synthetic-events.c process, machine); machine 491 tools/perf/util/synthetic-events.c tgid, process, machine) < 0) machine 500 tools/perf/util/synthetic-events.c process, machine, mmap_data)) machine 506 tools/perf/util/synthetic-events.c if (machine__is_default_guest(machine)) machine 510 tools/perf/util/synthetic-events.c machine->root_dir, pid); machine 527 tools/perf/util/synthetic-events.c if (perf_event__prepare_comm(comm_event, _pid, machine, machine 532 tools/perf/util/synthetic-events.c ppid, process, machine) < 0) machine 536 tools/perf/util/synthetic-events.c tgid, process, machine) < 0) machine 542 tools/perf/util/synthetic-events.c if (perf_tool__process_synth_event(tool, comm_event, machine, process) != 0) machine 549 tools/perf/util/synthetic-events.c process, machine, mmap_data); machine 562 tools/perf/util/synthetic-events.c struct machine *machine, machine 569 tools/perf/util/synthetic-events.c comm_event = malloc(sizeof(comm_event->comm) + machine->id_hdr_size); machine 573 tools/perf/util/synthetic-events.c mmap_event = malloc(sizeof(mmap_event->mmap2) + machine->id_hdr_size); machine 577 tools/perf/util/synthetic-events.c fork_event = malloc(sizeof(fork_event->fork) + machine->id_hdr_size); machine 583 tools/perf/util/synthetic-events.c machine->id_hdr_size); machine 592 tools/perf/util/synthetic-events.c process, tool, machine, machine 618 tools/perf/util/synthetic-events.c process, tool, machine, machine 638 tools/perf/util/synthetic-events.c struct machine *machine, machine 651 tools/perf/util/synthetic-events.c comm_event = malloc(sizeof(comm_event->comm) + machine->id_hdr_size); machine 655 tools/perf/util/synthetic-events.c mmap_event = malloc(sizeof(mmap_event->mmap2) + machine->id_hdr_size); machine 659 tools/perf/util/synthetic-events.c fork_event = malloc(sizeof(fork_event->fork) + machine->id_hdr_size); machine 665 tools/perf/util/synthetic-events.c machine->id_hdr_size); machine 683 tools/perf/util/synthetic-events.c tool, machine, mmap_data); machine 701 tools/perf/util/synthetic-events.c struct machine *machine; machine 713 tools/perf/util/synthetic-events.c args->machine, args->mmap_data, machine 721 tools/perf/util/synthetic-events.c struct machine *machine, machine 736 tools/perf/util/synthetic-events.c if (machine__is_default_guest(machine)) machine 739 tools/perf/util/synthetic-events.c snprintf(proc_path, sizeof(proc_path), "%s/proc", machine->root_dir); machine 751 tools/perf/util/synthetic-events.c machine, mmap_data, machine 771 tools/perf/util/synthetic-events.c args[i].machine = machine; machine 808 tools/perf/util/synthetic-events.c struct machine *machine __maybe_unused) machine 815 tools/perf/util/synthetic-events.c struct machine *machine) machine 818 tools/perf/util/synthetic-events.c struct map *map = machine__kernel_map(machine); machine 835 tools/perf/util/synthetic-events.c event = zalloc((sizeof(event->mmap) + machine->id_hdr_size)); machine 842 tools/perf/util/synthetic-events.c if (machine__is_host(machine)) { machine 853 tools/perf/util/synthetic-events.c "%s%s", machine->mmap_name, kmap->ref_reloc_sym->name) + 1; machine 857 tools/perf/util/synthetic-events.c (sizeof(event->mmap.filename) - size) + machine->id_hdr_size); machine 861 tools/perf/util/synthetic-events.c event->mmap.pid = machine->pid; machine 863 tools/perf/util/synthetic-events.c err = perf_tool__process_synth_event(tool, event, machine, process); machine 871 tools/perf/util/synthetic-events.c struct machine *machine) machine 875 tools/perf/util/synthetic-events.c err = __perf_event__synthesize_kernel_mmap(tool, process, machine); machine 879 tools/perf/util/synthetic-events.c return perf_event__synthesize_extra_kmaps(tool, process, machine); machine 885 tools/perf/util/synthetic-events.c struct machine *machine) machine 912 tools/perf/util/synthetic-events.c err = process(tool, event, NULL, machine); machine 1035 tools/perf/util/synthetic-events.c struct machine *machine) machine 1044 tools/perf/util/synthetic-events.c err = process(tool, (union perf_event *) event, NULL, machine); machine 1053 tools/perf/util/synthetic-events.c struct machine *machine) machine 1082 tools/perf/util/synthetic-events.c err = process(tool, (union perf_event *) event, NULL, machine); machine 1092 tools/perf/util/synthetic-events.c struct machine *machine) machine 1107 tools/perf/util/synthetic-events.c return process(tool, (union perf_event *) &event, NULL, machine); machine 1113 tools/perf/util/synthetic-events.c struct machine *machine) machine 1124 tools/perf/util/synthetic-events.c return process(tool, (union perf_event *) &event, NULL, machine); machine 1403 tools/perf/util/synthetic-events.c struct evlist *evlist, struct machine *machine) machine 1436 tools/perf/util/synthetic-events.c err = process(tool, ev, NULL, machine); machine 1463 tools/perf/util/synthetic-events.c err = process(tool, ev, NULL, machine); machine 1470 tools/perf/util/synthetic-events.c int __machine__synthesize_threads(struct machine *machine, struct perf_tool *tool, machine 1476 tools/perf/util/synthetic-events.c return perf_event__synthesize_thread_map(tool, threads, process, machine, data_mmap); machine 1479 tools/perf/util/synthetic-events.c machine, data_mmap, machine 1485 tools/perf/util/synthetic-events.c int machine__synthesize_threads(struct machine *machine, struct target *target, machine 1489 tools/perf/util/synthetic-events.c return __machine__synthesize_threads(machine, NULL, target, threads, machine 1756 tools/perf/util/synthetic-events.c perf_event__handler_t process, struct machine *machine) machine 1771 tools/perf/util/synthetic-events.c ev.build_id.pid = machine->pid; machine 1775 tools/perf/util/synthetic-events.c return process(tool, &ev, NULL, machine); machine 1816 tools/perf/util/synthetic-events.c struct machine *machine __maybe_unused) machine 14 tools/perf/util/synthetic-events.h struct machine; machine 30 tools/perf/util/synthetic-events.h struct perf_sample *sample, struct machine *machine); machine 34 tools/perf/util/synthetic-events.h int perf_event__synthesize_build_id(struct perf_tool *tool, struct dso *pos, u16 misc, perf_event__handler_t process, struct machine *machine); machine 35 tools/perf/util/synthetic-events.h int perf_event__synthesize_cpu_map(struct perf_tool *tool, struct perf_cpu_map *cpus, perf_event__handler_t process, struct machine *machine); machine 41 tools/perf/util/synthetic-events.h int perf_event__synthesize_extra_kmaps(struct perf_tool *tool, perf_event__handler_t process, struct machine *machine); machine 43 tools/perf/util/synthetic-events.h int perf_event__synthesize_id_index(struct perf_tool *tool, perf_event__handler_t process, struct evlist *evlist, struct machine *machine); machine 44 tools/perf/util/synthetic-events.h int perf_event__synthesize_kernel_mmap(struct perf_tool *tool, perf_event__handler_t process, struct machine *machine); machine 45 tools/perf/util/synthetic-events.h int perf_event__synthesize_mmap_events(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); machine 46 tools/perf/util/synthetic-events.h int perf_event__synthesize_modules(struct perf_tool *tool, perf_event__handler_t process, struct machine *machine); machine 47 tools/perf/util/synthetic-events.h int perf_event__synthesize_namespaces(struct perf_tool *tool, union perf_event *event, pid_t pid, pid_t tgid, perf_event__handler_t process, struct machine *machine); machine 49 tools/perf/util/synthetic-events.h int perf_event__synthesize_stat_config(struct perf_tool *tool, struct perf_stat_config *config, perf_event__handler_t process, struct machine *machine); machine 51 tools/perf/util/synthetic-events.h int perf_event__synthesize_stat_round(struct perf_tool *tool, u64 time, u64 type, perf_event__handler_t process, struct machine *machine); machine 52 tools/perf/util/synthetic-events.h int perf_event__synthesize_stat(struct perf_tool *tool, u32 cpu, u32 thread, u64 id, struct perf_counts_values *count, perf_event__handler_t process, struct machine *machine); machine 53 tools/perf/util/synthetic-events.h int perf_event__synthesize_thread_map2(struct perf_tool *tool, struct perf_thread_map *threads, perf_event__handler_t process, struct machine *machine); machine 54 tools/perf/util/synthetic-events.h int perf_event__synthesize_thread_map(struct perf_tool *tool, struct perf_thread_map *threads, perf_event__handler_t process, struct machine *machine, bool mmap_data); machine 55 tools/perf/util/synthetic-events.h int perf_event__synthesize_threads(struct perf_tool *tool, perf_event__handler_t process, struct machine *machine, bool mmap_data, unsigned int nr_threads_synthesize); machine 57 tools/perf/util/synthetic-events.h int perf_event__synth_time_conv(const struct perf_event_mmap_page *pc, struct perf_tool *tool, perf_event__handler_t process, struct machine *machine); machine 58 tools/perf/util/synthetic-events.h pid_t perf_event__synthesize_comm(struct perf_tool *tool, union perf_event *event, pid_t pid, perf_event__handler_t process, struct machine *machine); machine 60 tools/perf/util/synthetic-events.h int perf_tool__process_synth_event(struct perf_tool *tool, union perf_event *event, struct machine *machine, perf_event__handler_t process); machine 64 tools/perf/util/synthetic-events.h int __machine__synthesize_threads(struct machine *machine, struct perf_tool *tool, machine 68 tools/perf/util/synthetic-events.h int machine__synthesize_threads(struct machine *machine, struct target *target, machine 92 tools/perf/util/synthetic-events.h struct machine *machine, struct record_opts *opts); machine 96 tools/perf/util/synthetic-events.h struct machine *machine __maybe_unused, machine 137 tools/perf/util/thread-stack.c if (thread->mg && thread->mg->machine) { machine 138 tools/perf/util/thread-stack.c struct machine *machine = thread->mg->machine; machine 139 tools/perf/util/thread-stack.c const char *arch = perf_env__arch(machine->env); machine 141 tools/perf/util/thread-stack.c ts->kernel_start = machine__kernel_start(machine); machine 22 tools/perf/util/thread.c int thread__init_map_groups(struct thread *thread, struct machine *machine) machine 27 tools/perf/util/thread.c thread->mg = map_groups__new(machine); machine 29 tools/perf/util/thread.c struct thread *leader = __machine__findnew_thread(machine, pid, pid); machine 425 tools/perf/util/thread.c struct thread *thread__main_thread(struct machine *machine, struct thread *thread) machine 433 tools/perf/util/thread.c return machine__find_thread(machine, thread->pid_, thread->pid_); machine 436 tools/perf/util/thread.c int thread__memcpy(struct thread *thread, struct machine *machine, machine 443 tools/perf/util/thread.c if (machine__kernel_ip(machine, ip)) machine 455 tools/perf/util/thread.c return dso__data_read_offset(al.map->dso, machine, offset, buf, len); machine 51 tools/perf/util/thread.h struct machine; machine 56 tools/perf/util/thread.h int thread__init_map_groups(struct thread *thread, struct machine *machine); machine 97 tools/perf/util/thread.h struct thread *thread__main_thread(struct machine *machine, struct thread *thread); machine 112 tools/perf/util/thread.h int thread__memcpy(struct thread *thread, struct machine *machine, machine 15 tools/perf/util/tool.h struct machine; machine 20 tools/perf/util/tool.h struct evsel *evsel, struct machine *machine); machine 23 tools/perf/util/tool.h struct perf_sample *sample, struct machine *machine); machine 56 tools/perf/util/trace-event.c int trace_event__register_resolver(struct machine *machine, machine 62 tools/perf/util/trace-event.c return tep_set_function_resolver(tevent.pevent, func, machine); machine 8 tools/perf/util/trace-event.h struct machine; machine 22 tools/perf/util/trace-event.h int trace_event__register_resolver(struct machine *machine, machine 83 tools/perf/util/trace-event.h struct machine *machine); machine 118 tools/perf/util/unwind-libdw.c size = dso__data_read_addr(al.map->dso, al.map, ui->machine, machine 202 tools/perf/util/unwind-libdw.c .machine = thread->mg->machine, machine 8 tools/perf/util/unwind-libdw.h struct machine; machine 17 tools/perf/util/unwind-libdw.h struct machine *machine; machine 97 tools/perf/util/unwind-libunwind-local.c struct machine *machine; machine 249 tools/perf/util/unwind-libunwind-local.c static int unwind_spec_ehframe(struct dso *dso, struct machine *machine, machine 258 tools/perf/util/unwind-libunwind-local.c r = dso__data_read_offset(dso, machine, offset, machine 272 tools/perf/util/unwind-libunwind-local.c static int read_unwind_spec_eh_frame(struct dso *dso, struct machine *machine, machine 280 tools/perf/util/unwind-libunwind-local.c fd = dso__data_get_fd(dso, machine); machine 291 tools/perf/util/unwind-libunwind-local.c ret = unwind_spec_ehframe(dso, machine, offset, machine 300 tools/perf/util/unwind-libunwind-local.c struct machine *machine, u64 *offset) machine 312 tools/perf/util/unwind-libunwind-local.c fd = dso__data_get_fd(dso, machine); machine 332 tools/perf/util/unwind-libunwind-local.c machine->root_dir, debuglink, PATH_MAX); machine 390 tools/perf/util/unwind-libunwind-local.c if (!read_unwind_spec_eh_frame(map->dso, ui->machine, machine 407 tools/perf/util/unwind-libunwind-local.c !read_unwind_spec_debug_frame(map->dso, ui->machine, &segbase)) { machine 408 tools/perf/util/unwind-libunwind-local.c int fd = dso__data_get_fd(map->dso, ui->machine); machine 479 tools/perf/util/unwind-libunwind-local.c size = dso__data_read_addr(map->dso, map, ui->machine, machine 711 tools/perf/util/unwind-libunwind-local.c .machine = thread->mg->machine, machine 41 tools/perf/util/unwind-libunwind.c if (!mg->machine->env || !mg->machine->env->arch) machine 44 tools/perf/util/unwind-libunwind.c dso_type = dso__type(map->dso, mg->machine); machine 48 tools/perf/util/unwind-libunwind.c arch = perf_env__arch(mg->machine->env); machine 108 tools/perf/util/vdso.c void machine__exit_vdso(struct machine *machine) machine 110 tools/perf/util/vdso.c struct vdso_info *vdso_info = machine->vdso_info; machine 124 tools/perf/util/vdso.c zfree(&machine->vdso_info); machine 127 tools/perf/util/vdso.c static struct dso *__machine__addnew_vdso(struct machine *machine, const char *short_name, machine 134 tools/perf/util/vdso.c __dsos__add(&machine->dsos, dso); machine 141 tools/perf/util/vdso.c static enum dso_type machine__thread_dso_type(struct machine *machine, machine 151 tools/perf/util/vdso.c dso_type = dso__type(dso, machine); machine 235 tools/perf/util/vdso.c static struct dso *__machine__findnew_compat(struct machine *machine, machine 241 tools/perf/util/vdso.c dso = __dsos__find(&machine->dsos, vdso_file->dso_name, true); machine 249 tools/perf/util/vdso.c dso = __machine__addnew_vdso(machine, vdso_file->dso_name, file_name); machine 254 tools/perf/util/vdso.c static int __machine__findnew_vdso_compat(struct machine *machine, machine 261 tools/perf/util/vdso.c dso_type = machine__thread_dso_type(machine, thread); machine 274 tools/perf/util/vdso.c *dso = __machine__findnew_compat(machine, &vdso_info->vdso32); machine 277 tools/perf/util/vdso.c *dso = __machine__findnew_compat(machine, &vdso_info->vdsox32); machine 288 tools/perf/util/vdso.c static struct dso *machine__find_vdso(struct machine *machine, machine 294 tools/perf/util/vdso.c dso_type = machine__thread_dso_type(machine, thread); machine 297 tools/perf/util/vdso.c dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO32, true); machine 299 tools/perf/util/vdso.c dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO, machine 301 tools/perf/util/vdso.c if (dso && dso_type != dso__type(dso, machine)) machine 306 tools/perf/util/vdso.c dso = __dsos__find(&machine->dsos, DSO__NAME_VDSOX32, true); machine 311 tools/perf/util/vdso.c dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO, true); machine 318 tools/perf/util/vdso.c struct dso *machine__findnew_vdso(struct machine *machine, machine 324 tools/perf/util/vdso.c down_write(&machine->dsos.lock); machine 325 tools/perf/util/vdso.c if (!machine->vdso_info) machine 326 tools/perf/util/vdso.c machine->vdso_info = vdso_info__new(); machine 328 tools/perf/util/vdso.c vdso_info = machine->vdso_info; machine 332 tools/perf/util/vdso.c dso = machine__find_vdso(machine, thread); machine 337 tools/perf/util/vdso.c if (__machine__findnew_vdso_compat(machine, thread, vdso_info, &dso)) machine 341 tools/perf/util/vdso.c dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO, true); machine 347 tools/perf/util/vdso.c dso = __machine__addnew_vdso(machine, DSO__NAME_VDSO, file); machine 352 tools/perf/util/vdso.c up_write(&machine->dsos.lock); machine 24 tools/perf/util/vdso.h struct machine; machine 27 tools/perf/util/vdso.h struct dso *machine__findnew_vdso(struct machine *machine, struct thread *thread); machine 28 tools/perf/util/vdso.h void machine__exit_vdso(struct machine *machine); machine 214 tools/power/cpupower/utils/cpupower.c if (!ret && !strcmp(uts.machine, "x86_64") && machine 442 tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h .machine push; \ machine 443 tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h .machine "power4"; \ machine 445 tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h .machine pop; \ machine 127 tools/testing/selftests/powerpc/utils.c return strcmp(uts.machine, "ppc64le") == 0; machine 2883 tools/testing/selftests/seccomp/seccomp_bpf.c if (strncmp(utsbuf.machine, "arm", 3) == 0) {