aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2025-02-18 09:34:26 +0100
committerStefano Brivio <sbrivio@redhat.com>2025-02-19 16:36:47 +0100
commit183bedf478e34079244fe4cfbb2c1a0f02a5a037 (patch)
tree39cd8988f77e16077edaf55157e58f41d04f2b8d
parent1cc5d4c9fe0a84d3d39fc07358996989ca1b5875 (diff)
downloadpasst-183bedf478e34079244fe4cfbb2c1a0f02a5a037.tar
passt-183bedf478e34079244fe4cfbb2c1a0f02a5a037.tar.gz
passt-183bedf478e34079244fe4cfbb2c1a0f02a5a037.tar.bz2
passt-183bedf478e34079244fe4cfbb2c1a0f02a5a037.tar.lz
passt-183bedf478e34079244fe4cfbb2c1a0f02a5a037.tar.xz
passt-183bedf478e34079244fe4cfbb2c1a0f02a5a037.tar.zst
passt-183bedf478e34079244fe4cfbb2c1a0f02a5a037.zip
Makefile: Use mmap2() as alternative for mmap() in valgrind extra syscalls
...instead of unconditionally trying to enable both: mmap2() is the 32-bit ARM variant for mmap() (and perhaps for other architectures), bot if mmap() is available, valgrind will use that one. This avoids seccomp.sh warning us about missing mmap2() if mmap() is present, and is consistent with what we do in vhost-user code. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d4e1096..f2ac8e5 100644
--- a/Makefile
+++ b/Makefile
@@ -109,9 +109,9 @@ passt-repair: $(PASST_REPAIR_SRCS) seccomp_repair.h
$(CC) $(FLAGS) $(CFLAGS) $(CPPFLAGS) $(PASST_REPAIR_SRCS) -o passt-repair $(LDFLAGS)
valgrind: EXTRA_SYSCALLS += rt_sigprocmask rt_sigtimedwait rt_sigaction \
- rt_sigreturn getpid gettid kill clock_gettime mmap \
- mmap2 munmap open unlink gettimeofday futex statx \
- readlink
+ rt_sigreturn getpid gettid kill clock_gettime \
+ mmap|mmap2 munmap open unlink gettimeofday futex \
+ statx readlink
valgrind: FLAGS += -g -DVALGRIND
valgrind: all