diff options
author | 2020-09-12 04:08:16 -0700 | |
---|---|---|
committer | 2020-09-19 01:00:03 -0700 | |
commit | f04cf78bbfcd1fa5b1819613a5f354b228f36e03 (patch) | |
tree | 870931840bba40a7f96821e2767f41288b6b812e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | selftests/seccomp: Avoid redundant register flushes (diff) | |
download | wireguard-linux-f04cf78bbfcd1fa5b1819613a5f354b228f36e03.tar.xz wireguard-linux-f04cf78bbfcd1fa5b1819613a5f354b228f36e03.zip |
selftests/seccomp: Remove SYSCALL_NUM_RET_SHARE_REG in favor of SYSCALL_RET_SET
Instead of special-casing the specific case of shared registers, create
a default SYSCALL_RET_SET() macro (mirroring SYSCALL_NUM_SET()), that
writes to the SYSCALL_RET register. For architectures that can't set the
return value (for whatever reason), they can define SYSCALL_RET_SET()
without an associated SYSCALL_RET() macro. This also paves the way for
architectures that need to do special things to set the return value
(e.g. powerpc).
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/lkml/20200912110820.597135-12-keescook@chromium.org
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions