diff options
Diffstat (limited to 'samples/bpf/tracex2_kern.c')
-rw-r--r-- | samples/bpf/tracex2_kern.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/bpf/tracex2_kern.c b/samples/bpf/tracex2_kern.c index 09c1adc27d42..6d6eefd0d465 100644 --- a/samples/bpf/tracex2_kern.c +++ b/samples/bpf/tracex2_kern.c | |||
@@ -27,10 +27,10 @@ int bpf_prog2(struct pt_regs *ctx) | |||
27 | long init_val = 1; | 27 | long init_val = 1; |
28 | long *value; | 28 | long *value; |
29 | 29 | ||
30 | /* x64/s390x specific: read ip of kfree_skb caller. | 30 | /* read ip of kfree_skb caller. |
31 | * non-portable version of __builtin_return_address(0) | 31 | * non-portable version of __builtin_return_address(0) |
32 | */ | 32 | */ |
33 | bpf_probe_read(&loc, sizeof(loc), (void *)PT_REGS_RET(ctx)); | 33 | BPF_KPROBE_READ_RET_IP(loc, ctx); |
34 | 34 | ||
35 | value = bpf_map_lookup_elem(&my_map, &loc); | 35 | value = bpf_map_lookup_elem(&my_map, &loc); |
36 | if (value) | 36 | if (value) |