1# 2# 3 4.PATH: ${SRCTOP}/sys/dev/hwpmc 5.PATH: ${SRCTOP}/sys/arm64/arm64 6 7KMOD= hwpmc 8 9SRCS= bus_if.h device_if.h hwpmc_mod.c hwpmc_logging.c hwpmc_soft.c 10SRCS+= vnode_if.h 11 12.if ${MACHINE_CPUARCH} == "aarch64" 13SRCS+= hwpmc_arm64.c hwpmc_arm64_md.c 14SRCS.DEV_ACPI= cmn600.c hwpmc_cmn600.c 15SRCS.DEV_ACPI+= hwpmc_dmc620.c pmu_dmc620.c 16.endif 17 18.if ${MACHINE_CPUARCH} == "amd64" 19SRCS+= hwpmc_amd.c hwpmc_core.c hwpmc_intel.c hwpmc_tsc.c 20SRCS+= hwpmc_x86.c hwpmc_uncore.c 21.endif 22 23.if ${MACHINE_CPUARCH} == "arm" 24SRCS+= hwpmc_arm.c 25.endif 26 27.if ${MACHINE_ARCH} == "armv7" 28SRCS+= hwpmc_armv7.c 29.endif 30 31.if ${MACHINE_CPUARCH} == "i386" 32SRCS+= hwpmc_amd.c hwpmc_core.c hwpmc_intel.c 33SRCS+= hwpmc_tsc.c hwpmc_x86.c hwpmc_uncore.c 34.endif 35 36.if ${MACHINE_CPUARCH} == "powerpc" 37SRCS+= hwpmc_powerpc.c hwpmc_e500.c hwpmc_mpc7xxx.c hwpmc_ppc970.c \ 38 hwpmc_power8.c 39.endif 40 41.include <bsd.kmod.mk> 42