mirror of
https://passt.top/passt
synced 2025-05-05 18:28:52 +02:00
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>
This commit is contained in:
parent
1cc5d4c9fe
commit
183bedf478
1 changed files with 3 additions and 3 deletions
6
Makefile
6
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue