1# 2# $FreeBSD$ 3# 4 5.PATH: ${SRCTOP}/sys/dev/hwpmc 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 14.endif 15 16.if ${MACHINE_CPUARCH} == "amd64" 17SRCS+= hwpmc_amd.c hwpmc_core.c hwpmc_intel.c hwpmc_tsc.c 18SRCS+= hwpmc_x86.c hwpmc_uncore.c 19.endif 20 21.if ${MACHINE_CPUARCH} == "arm" 22SRCS+= hwpmc_arm.c 23.endif 24 25.if ${MACHINE_ARCH} == "armv7" 26SRCS+= hwpmc_armv7.c 27.endif 28 29.if ${MACHINE_CPUARCH} == "i386" 30SRCS+= hwpmc_amd.c hwpmc_core.c hwpmc_intel.c 31SRCS+= hwpmc_tsc.c hwpmc_x86.c hwpmc_uncore.c 32.endif 33 34.if ${MACHINE_CPUARCH} == "powerpc" 35SRCS+= hwpmc_powerpc.c hwpmc_e500.c hwpmc_mpc7xxx.c hwpmc_ppc970.c 36.endif 37 38.if ${MACHINE_CPUARCH} == "sparc64" 39SRCS+= hwpmc_sparc64.c 40.endif 41 42.include <bsd.kmod.mk> 43