mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2026-01-03 15:25:13 +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 <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)
|