projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
samples: bpf: Do not define bpf_printk macro
[platform/kernel/linux-rpi.git]
/
samples
/
bpf
/
tcp_synrto_kern.c
diff --git
a/samples/bpf/tcp_synrto_kern.c
b/samples/bpf/tcp_synrto_kern.c
index
ca87ed3
..
720d195
100644
(file)
--- a/
samples/bpf/tcp_synrto_kern.c
+++ b/
samples/bpf/tcp_synrto_kern.c
@@
-21,13
+21,6
@@
#define DEBUG 1
-#define bpf_printk(fmt, ...) \
-({ \
- char ____fmt[] = fmt; \
- bpf_trace_printk(____fmt, sizeof(____fmt), \
- ##__VA_ARGS__); \
-})
-
SEC("sockops")
int bpf_synrto(struct bpf_sock_ops *skops)
{