mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 16:33:17 +00:00
This attempts to produce a comparison between native getpid() and a RET_ALLOW-filtered getpid(), to measure the overhead cost of using seccomp(). Signed-off-by: Kees Cook <[email protected]>
17 lines
290 B
Makefile
17 lines
290 B
Makefile
all:
|
|
|
|
include ../lib.mk
|
|
|
|
.PHONY: all clean
|
|
|
|
BINARIES := seccomp_bpf seccomp_benchmark
|
|
CFLAGS += -Wl,-no-as-needed -Wall
|
|
|
|
seccomp_bpf: seccomp_bpf.c ../kselftest_harness.h
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -lpthread $< -o $@
|
|
|
|
TEST_PROGS += $(BINARIES)
|
|
EXTRA_CLEAN := $(BINARIES)
|
|
|
|
all: $(BINARIES)
|