libpmc/pmu: enable for i386 as well
This commit is contained in:
parent
785dd70da8
commit
7d1c2b74a0
@ -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
|
||||
|
||||
|
@ -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}" \
|
||||
|
@ -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
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user