]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
selftests/seccomp: Add simple seccomp overhead benchmark
authorKees Cook <keescook@chromium.org>
Wed, 2 Dec 2015 19:39:36 +0000 (11:39 -0800)
committerKees Cook <keescook@chromium.org>
Mon, 14 Aug 2017 20:46:41 +0000 (13:46 -0700)
commit967d7ba8415139107033770a40c7ec7dd17fbcb1
tree1d11b9221671f6d715df3d762ffce895cbde0f16
parenta33b2d0359a0aae25d5ac7a26b85a5682485ebbb
selftests/seccomp: Add simple seccomp overhead benchmark

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>
tools/testing/selftests/seccomp/Makefile
tools/testing/selftests/seccomp/seccomp_benchmark.c [new file with mode: 0644]