summaryrefslogtreecommitdiff
path: root/samples/bpf/tracex4_kern.c
diff options
context:
space:
mode:
Diffstat (limited to 'samples/bpf/tracex4_kern.c')
-rw-r--r--samples/bpf/tracex4_kern.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bpf/tracex4_kern.c b/samples/bpf/tracex4_kern.c
index ac4671420..6dd8e384d 100644
--- a/samples/bpf/tracex4_kern.c
+++ b/samples/bpf/tracex4_kern.c
@@ -40,7 +40,7 @@ int bpf_prog2(struct pt_regs *ctx)
long ip = 0;
/* get ip address of kmem_cache_alloc_node() caller */
- bpf_probe_read(&ip, sizeof(ip), (void *)(PT_REGS_FP(ctx) + sizeof(ip)));
+ BPF_KRETPROBE_READ_RET_IP(ip, ctx);
struct pair v = {
.val = bpf_ktime_get_ns(),