libpmc/pmu: enable for i386 as well

This commit is contained in:
Matt Macy 2018-05-31 22:26:55 +00:00
parent 785dd70da8
commit 7d1c2b74a0
4 changed files with 7 additions and 7 deletions

View File

@ -2030,7 +2030,7 @@ _tcsh=bin/csh
_libmagic=lib/libmagic
.endif
.if ${TARGET_ARCH} == "amd64"
.if ${TARGET_ARCH} == "amd64" || ${TARGET_ARCH} == "i386"
_jevents=lib/libpmc/pmu-events
.endif

View File

@ -192,7 +192,7 @@ build${libcompat}: .PHONY
DIRPRFX=${_dir}/ ${_t}
.endfor
.endfor
.for _dir in lib/ncurses/ncurses lib/ncurses/ncursesw lib/libmagic
.for _dir in lib/ncurses/ncurses lib/ncurses/ncursesw lib/libmagic lib/libpmc/pmu-events
${_+_}cd ${.CURDIR}/${_dir}; \
WORLDTMP=${WORLDTMP} \
MAKEFLAGS="-m ${.CURDIR}/tools/build/mk ${.MAKEFLAGS}" \

View File

@ -8,13 +8,13 @@ INCS= pmc.h pmclog.h
CFLAGS+= -I${.CURDIR}
.if ${MACHINE_CPUARCH} == "amd64"
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
.if ${MACHINE_CPUARCH} == "aarch64"
.if ${MACHINE_ARCH} == "aarch64"
EVENT_ARCH="arm64"
.elif ${MACHINE_CPUARCH} == "amd64"
.elif ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
EVENT_ARCH="x86"
.elif ${MACHINE_CPUARCH} == "powerpc"
.elif ${MACHINE_ARCH} == "powerpc"
EVENT_ARCH="powerpc"
.endif

View File

@ -40,7 +40,7 @@
#include <libpmcstat.h>
#include "pmu-events/pmu-events.h"
#if defined(__amd64__)
#if defined(__amd64__) || defined(__i386__)
struct pmu_alias {
const char *pa_alias;
const char *pa_name;