mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 00:34:20 +08:00
967d7ba841
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 <keescook@chromium.org>
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)
|