projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'bpf-fixes'
[deliverable/linux.git]
/
samples
/
bpf
/
tracex2_kern.c
diff --git
a/samples/bpf/tracex2_kern.c
b/samples/bpf/tracex2_kern.c
index 09c1adc27d426ed4adec7408a6fbae9193c39bb0..6d6eefd0d4655ed3bdcebe6bf1956a7f43a70d27 100644
(file)
--- a/
samples/bpf/tracex2_kern.c
+++ b/
samples/bpf/tracex2_kern.c
@@
-27,10
+27,10
@@
int bpf_prog2(struct pt_regs *ctx)
long init_val = 1;
long *value;
long init_val = 1;
long *value;
- /*
x64/s390x specific:
read ip of kfree_skb caller.
+ /* read ip of kfree_skb caller.
* non-portable version of __builtin_return_address(0)
*/
* non-portable version of __builtin_return_address(0)
*/
-
bpf_probe_read(&loc, sizeof(loc), (void *)PT_REGS_RET(ctx)
);
+
BPF_KPROBE_READ_RET_IP(loc, ctx
);
value = bpf_map_lookup_elem(&my_map, &loc);
if (value)
value = bpf_map_lookup_elem(&my_map, &loc);
if (value)
This page took
0.06151 seconds
and
5
git commands to generate.