diff options
| author | Michal Rostecki <[email protected]> | 2019-05-23 12:53:54 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2019-05-24 20:47:17 +0000 |
| commit | 37739d1b4fe744da9c2f342224000ae7fbb5c063 (patch) | |
| tree | a0caaaf379e92c3d5c0631e12d8284a27cd43402 /tools/testing/selftests/bpf/progs/sockmap_tcp_msg_prog.c | |
| parent | Merge branch 'bpf-explored-states' (diff) | |
| download | kernel-37739d1b4fe744da9c2f342224000ae7fbb5c063.tar.gz kernel-37739d1b4fe744da9c2f342224000ae7fbb5c063.zip | |
selftests: bpf: Move bpf_printk to bpf_helpers.h
bpf_printk is a macro which is commonly used to print out debug messages
in BPF programs and it was copied in many selftests and samples. Since
all of them include bpf_helpers.h, this change moves the macro there.
Signed-off-by: Michal Rostecki <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/sockmap_tcp_msg_prog.c')
| -rw-r--r-- | tools/testing/selftests/bpf/progs/sockmap_tcp_msg_prog.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/tools/testing/selftests/bpf/progs/sockmap_tcp_msg_prog.c b/tools/testing/selftests/bpf/progs/sockmap_tcp_msg_prog.c index 12a7b5c82ed6..65fbfdb6cd3a 100644 --- a/tools/testing/selftests/bpf/progs/sockmap_tcp_msg_prog.c +++ b/tools/testing/selftests/bpf/progs/sockmap_tcp_msg_prog.c @@ -5,13 +5,6 @@ int _version SEC("version") = 1; -#define bpf_printk(fmt, ...) \ -({ \ - char ____fmt[] = fmt; \ - bpf_trace_printk(____fmt, sizeof(____fmt), \ - ##__VA_ARGS__); \ -}) - SEC("sk_msg1") int bpf_prog1(struct sk_msg_md *msg) { |
