aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Jones <thj@freebsd.org>2024-01-26 14:13:39 +0000
committerDamjan Marion <dmarion@0xa5.net>2024-02-13 16:16:23 +0000
commit000b5e1b7169031d70d61b3e9dba9b979da8e9d9 (patch)
tree8716a3023683c811f327135f94a3270c472a041e
parentb2e0ce96ea7acc328be5f5bae5ea904a6cd61146 (diff)
vppinfra: Don't build perfmon on FreeBSD
FreeBSD has platform specific APIs for interfacing with performance counters. Until we bring in FreeBSD support, don't build perfmon on platforms which aren't linux. Type: improvement Change-Id: Iabc418922c0d2e851c6098508761135f53433ae8 Signed-off-by: Tom Jones <thj@freebsd.org>
-rw-r--r--src/vppinfra/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vppinfra/CMakeLists.txt b/src/vppinfra/CMakeLists.txt
index 6976ac59fc5..86b1c884269 100644
--- a/src/vppinfra/CMakeLists.txt
+++ b/src/vppinfra/CMakeLists.txt
@@ -71,9 +71,6 @@ set(VPPINFRA_SRCS
mhash.c
mpcap.c
pcap.c
- perfmon/bundle_default.c
- perfmon/bundle_core_power.c
- perfmon/perfmon.c
pmalloc.c
pool.c
ptclosure.c
@@ -220,6 +217,10 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
linux/mem.c
linux/sysfs.c
linux/netns.c
+# TODO: Temporarily don't build perfmon on non-Linux
+ perfmon/bundle_default.c
+ perfmon/bundle_core_power.c
+ perfmon/perfmon.c
)
endif()