mirror_ubuntu-kernels/tools/arch/x86/include/uapi/asm
Andrei Vagin 7d5cb68af6 perf/benchmark: add a new benchmark for seccom_unotify
The benchmark is similar to the pipe benchmark. It creates two processes,
one is calling syscalls, and another process is handling them via seccomp
user notifications. It measures the time required to run a specified number
of interations.

 $ ./perf bench sched  seccomp-notify --sync-mode --loop 1000000
 # Running 'sched/seccomp-notify' benchmark:
 # Executed 1000000 system calls

     Total time: 2.769 [sec]

       2.769629 usecs/op
         361059 ops/sec

 $ ./perf bench sched  seccomp-notify
 # Running 'sched/seccomp-notify' benchmark:
 # Executed 1000000 system calls

     Total time: 8.571 [sec]

       8.571119 usecs/op
         116670 ops/sec

Signed-off-by: Andrei Vagin <avagin@google.com>
Acked-by: "Peter Zijlstra (Intel)" <peterz@infradead.org>
Link: https://lore.kernel.org/r/20230308073201.3102738-7-avagin@google.com
Link: https://lore.kernel.org/r/20230630051953.454638-1-avagin@gmail.com
[kees: Added PRIu64 format string]
Signed-off-by: Kees Cook <keescook@chromium.org>
2023-07-17 16:08:08 -07:00
..
bitsperlong.h License cleanup: add SPDX license identifier to uapi header files with no license 2017-11-02 11:19:54 +01:00
errno.h tools include arch: Grab a copy of errno.h for arch's supported by perf 2018-01-23 09:51:37 -03:00
kvm_perf.h License cleanup: add SPDX license identifier to uapi header files with no license 2017-11-02 11:19:54 +01:00
kvm.h tools headers kvm: Sync uapi/{asm/linux} kvm.h headers with the kernel sources 2023-05-10 14:19:20 -03:00
mman.h License cleanup: add SPDX license identifier to uapi header files with no license 2017-11-02 11:19:54 +01:00
perf_regs.h perf/x86/regs: Use PERF_REG_EXTENDED_MASK 2019-06-24 19:19:26 +02:00
prctl.h tools headers UAPI: Sync arch prctl headers with the kernel sources 2023-05-17 11:23:43 -03:00
svm.h tools headers svm: Sync svm headers with the kernel sources 2023-03-02 17:38:32 -03:00
unistd_32.h perf/benchmark: add a new benchmark for seccom_unotify 2023-07-17 16:08:08 -07:00
unistd_64.h perf/benchmark: add a new benchmark for seccom_unotify 2023-07-17 16:08:08 -07:00
unistd.h tools arch x86 uapi: Synch asm/unistd.h with the kernel sources 2020-06-09 12:40:03 -03:00
vmx.h tools headers UAPI: Sync KVM's vmx.h header with the kernel sources 2022-08-19 15:30:34 -03:00