summaryrefslogtreecommitdiff
path: root/benchmarks/stress-ng
diff options
context:
space:
mode:
authorLuca Pizzamiglio <pizzamig@FreeBSD.org>2022-01-05 15:33:15 +0100
committerLuca Pizzamiglio <pizzamig@FreeBSD.org>2022-01-05 15:33:15 +0100
commit76adbd76453a0ef566ae11214b7e70b542f04506 (patch)
tree71324bbf76207be1878364fd00a5d53edcd38b16 /benchmarks/stress-ng
parentmath/R-cran-DEoptimR: Update to 1.0-10 (diff)
benchmarks/stress-ng: several improvements and fixes
Enable on aarch64 Connect a few libs Fix build on CURRENT PR: 260893 Reported by: Daniel Engberg <diizzy@FreeBSD.org>
Diffstat (limited to 'benchmarks/stress-ng')
-rw-r--r--benchmarks/stress-ng/Makefile31
-rw-r--r--benchmarks/stress-ng/files/patch-stress-tlb-shootdown.c14
2 files changed, 21 insertions, 24 deletions
diff --git a/benchmarks/stress-ng/Makefile b/benchmarks/stress-ng/Makefile
index 5d591fbe1c10..eb5f18e7de38 100644
--- a/benchmarks/stress-ng/Makefile
+++ b/benchmarks/stress-ng/Makefile
@@ -1,7 +1,7 @@
PORTNAME= stress-ng
DISTVERSIONPREFIX= V
DISTVERSION= 0.13.09
-PORTREVISION= 0
+PORTREVISION= 1
CATEGORIES= benchmarks
MAINTAINER= pizzamig@FreeBSD.org
@@ -10,9 +10,7 @@ COMMENT= Stress test benchmarks
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
-BROKEN_aarch64= Fails to link: missing sbrk
-
-USES= compiler:c11 gmake tar:xz
+USES= compiler:c11 gmake localbase:ldflags
USE_GITHUB= yes
GH_ACCOUNT= ColinIanKing
@@ -20,13 +18,26 @@ ALL_TARGET= # empty
PLIST_FILES= bin/stress-ng man/man1/stress-ng.1.gz
-OPTIONS_DEFINE= LIBINOTIFY
-OPTIONS_DEFAULT= LIBINOTIFY
-LIBINOTIFY_DESC= Install the kevent based libinotify to enable its stress
+OPTIONS_DEFINE= JUDY LIBINOTIFY
+OPTIONS_DEFINE_amd64= INTELIPSEC
+OPTIONS_DEFAULT= JUDY LIBINOTIFY
+OPTIONS_DEFAULT_amd64= INTELIPSEC
+
+INTELIPSEC_DESC= Enable support for Intel's IPsec library
+JUDY_DESC= Enable support for (lib)Judy
+LIBINOTIFY_DESC= Enable support for libinotify
+
+INTELIPSEC_LIB_DEPENDS= libIPSec_MB.so:security/intel-ipsec-mb
+INTELIPSEC_MAKE_ARGS_OFF= HAVE_LIB_IPSEC_MB=0
+
+JUDY_LIB_DEPENDS= libJudy.so:devel/judy
+JUDY_MAKE_ARGS_OFF= HAVE_LIB_JUDY=0
+
+LIBINOTIFY_LIB_DEPENDS= libinotify.so:devel/libinotify
+LIBINOTIFY_LDFLAGS= -linotify
+LIBINOTIFY_MAKE_ARGS_OFF= HAVE_SYS_INOTIFY_H=0
-LIBINOTIFY_CFLAGS += -I${LOCALBASE}/include
-LIBINOTIFY_LDFLAGS += -L${LOCALBASE}/lib -linotify
-LIBINOTIFY_LIB_DEPENDS= libinotify.so:devel/libinotify
+MAKE_ARGS= VERBOSE=1
post-patch:
${REINPLACE_CMD} -e \
diff --git a/benchmarks/stress-ng/files/patch-stress-tlb-shootdown.c b/benchmarks/stress-ng/files/patch-stress-tlb-shootdown.c
deleted file mode 100644
index d54609e2fc7f..000000000000
--- a/benchmarks/stress-ng/files/patch-stress-tlb-shootdown.c
+++ /dev/null
@@ -1,14 +0,0 @@
---- stress-tlb-shootdown.c.orig 2021-12-19 20:49:35 UTC
-+++ stress-tlb-shootdown.c
-@@ -64,7 +64,11 @@ static int stress_tlb_shootdown(const stress_args_t *a
- const int32_t max_cpus = stress_get_processors_configured();
-
- CPU_ZERO(&proc_mask);
-+#ifdef CPU_ALLOC
- CPU_OR(&proc_mask, &proc_mask_initial, &proc_mask);
-+#else
-+ CPU_OR(&proc_mask, &proc_mask_initial);
-+#endif
-
- tlb_procs = max_cpus;
- if (tlb_procs > MAX_TLB_PROCS)