diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2021-12-22 22:39:23 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-12-29 04:14:44 +0100 |
commit | 3cc31d794097a0de5ac619d4a20b1975139e6b05 (patch) | |
tree | bfbac52f8f66f82330814ea81986734083f3f64a /crypto/twofish_common.c | |
parent | selftests/bpf: Add btf_dump__new to test_cpp (diff) | |
download | linux-3cc31d794097a0de5ac619d4a20b1975139e6b05.tar.xz linux-3cc31d794097a0de5ac619d4a20b1975139e6b05.zip |
libbpf: Normalize PT_REGS_xxx() macro definitions
Refactor PT_REGS macros definitions in bpf_tracing.h to avoid excessive
duplication. We currently have classic PT_REGS_xxx() and CO-RE-enabled
PT_REGS_xxx_CORE(). We are about to add also _SYSCALL variants, which
would require excessive copying of all the per-architecture definitions.
Instead, separate architecture-specific field/register names from the
final macro that utilize them. That way for upcoming _SYSCALL variants
we'll be able to just define x86_64 exception and otherwise have one
common set of _SYSCALL macro definitions common for all architectures.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Tested-by: Ilya Leoshkevich <iii@linux.ibm.com>
Acked-by: Yonghong Song <yhs@fb.com>
Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Link: https://lore.kernel.org/bpf/20211222213924.1869758-1-andrii@kernel.org
Diffstat (limited to 'crypto/twofish_common.c')
0 files changed, 0 insertions, 0 deletions