OSDN Git Service

selftests/seccomp: Expand benchmark to per-filter measurements
authorKees Cook <keescook@chromium.org>
Mon, 1 Jun 2020 19:34:44 +0000 (12:34 -0700)
committerKees Cook <keescook@chromium.org>
Fri, 10 Jul 2020 23:01:52 +0000 (16:01 -0700)
commitd3a37ea9f6e548388b83fe895c7a037bc2ec3f7f
treeea4a43b9b0a6cae083db11b494fe8ba77850b7e6
parentad5682184a811d62e56f07d25d75eeee9dffe3d9
selftests/seccomp: Expand benchmark to per-filter measurements

It's useful to see how much (at a minimum) each filter adds to the
syscall overhead. Add additional calculations.

Signed-off-by: Kees Cook <keescook@chromium.org>
tools/testing/selftests/seccomp/seccomp_benchmark.c
tools/testing/selftests/seccomp/seccomp_bpf.c