Skip to content

Commit 483d7a3

Browse files
ethercflowborkmann
authored andcommitted
bpf, libbpf: Fix ___bpf_kretprobe_args1(x) macro definition
Use PT_REGS_RC instead of PT_REGS_RET to get ret correctly. Fixes: df8ff35 ("libbpf: Merge selftests' bpf_trace_helpers.h into libbpf's bpf_tracing.h") Signed-off-by: Wenbo Zhang <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent fd27b18 commit 483d7a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/lib/bpf/bpf_tracing.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ ____##name(struct pt_regs *ctx, ##args)
390390

391391
#define ___bpf_kretprobe_args0() ctx
392392
#define ___bpf_kretprobe_args1(x) \
393-
___bpf_kretprobe_args0(), (void *)PT_REGS_RET(ctx)
393+
___bpf_kretprobe_args0(), (void *)PT_REGS_RC(ctx)
394394
#define ___bpf_kretprobe_args(args...) \
395395
___bpf_apply(___bpf_kretprobe_args, ___bpf_narg(args))(args)
396396

0 commit comments

Comments
 (0)