diff options
author | 2020-03-15 04:32:52 -0400 | |
---|---|---|
committer | 2020-03-17 19:33:40 +0100 | |
commit | 483d7a30f538e2f8addd32aa9a3d2e94ae55fa65 (patch) | |
tree | 968d29ce16ea67806562979e2c5d2021e49ea28d /tools/lib/bpf | |
parent | selftests/bpf: Reset process and thread affinity after each test/sub-test (diff) | |
download | linux-483d7a30f538e2f8addd32aa9a3d2e94ae55fa65.tar.gz linux-483d7a30f538e2f8addd32aa9a3d2e94ae55fa65.tar.bz2 linux-483d7a30f538e2f8addd32aa9a3d2e94ae55fa65.zip |
bpf, libbpf: Fix ___bpf_kretprobe_args1(x) macro definition
Use PT_REGS_RC instead of PT_REGS_RET to get ret correctly.
Fixes: df8ff35311c8 ("libbpf: Merge selftests' bpf_trace_helpers.h into libbpf's bpf_tracing.h")
Signed-off-by: Wenbo Zhang <ethercflow@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200315083252.22274-1-ethercflow@gmail.com
Diffstat (limited to 'tools/lib/bpf')
-rw-r--r-- | tools/lib/bpf/bpf_tracing.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/bpf/bpf_tracing.h b/tools/lib/bpf/bpf_tracing.h index b0c9ae5c73b5..f3f3c3fb98cb 100644 --- a/tools/lib/bpf/bpf_tracing.h +++ b/tools/lib/bpf/bpf_tracing.h @@ -390,7 +390,7 @@ ____##name(struct pt_regs *ctx, ##args) #define ___bpf_kretprobe_args0() ctx #define ___bpf_kretprobe_args1(x) \ - ___bpf_kretprobe_args0(), (void *)PT_REGS_RET(ctx) + ___bpf_kretprobe_args0(), (void *)PT_REGS_RC(ctx) #define ___bpf_kretprobe_args(args...) \ ___bpf_apply(___bpf_kretprobe_args, ___bpf_narg(args))(args) |