projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge remote-tracking branches 'asoc/fix/arizona', 'asoc/fix/cs35l32', 'asoc/fix...
[cascardo/linux.git]
/
samples
/
bpf
/
spintest_kern.c
diff --git
a/samples/bpf/spintest_kern.c
b/samples/bpf/spintest_kern.c
index
4b27619
..
ce0167d
100644
(file)
--- a/
samples/bpf/spintest_kern.c
+++ b/
samples/bpf/spintest_kern.c
@@
-34,7
+34,7
@@
struct bpf_map_def SEC("maps") stackmap = {
#define PROG(foo) \
int foo(struct pt_regs *ctx) \
{ \
- long v =
ctx->ip
, *val; \
+ long v =
PT_REGS_IP(ctx)
, *val; \
\
val = bpf_map_lookup_elem(&my_map, &v); \
bpf_map_update_elem(&my_map, &v, &v, BPF_ANY); \