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 <mrostecki@opensuse.org> Signed-off-by:
Alexei Starovoitov <ast@kernel.org>
Showing
- tools/testing/selftests/bpf/bpf_helpers.h 8 additions, 0 deletionstools/testing/selftests/bpf/bpf_helpers.h
- tools/testing/selftests/bpf/progs/sockmap_parse_prog.c 0 additions, 7 deletionstools/testing/selftests/bpf/progs/sockmap_parse_prog.c
- tools/testing/selftests/bpf/progs/sockmap_tcp_msg_prog.c 0 additions, 7 deletionstools/testing/selftests/bpf/progs/sockmap_tcp_msg_prog.c
- tools/testing/selftests/bpf/progs/sockmap_verdict_prog.c 0 additions, 7 deletionstools/testing/selftests/bpf/progs/sockmap_verdict_prog.c
- tools/testing/selftests/bpf/progs/test_lwt_seg6local.c 0 additions, 7 deletionstools/testing/selftests/bpf/progs/test_lwt_seg6local.c
- tools/testing/selftests/bpf/progs/test_xdp_noinline.c 0 additions, 7 deletionstools/testing/selftests/bpf/progs/test_xdp_noinline.c
- tools/testing/selftests/bpf/test_sockmap_kern.h 0 additions, 7 deletionstools/testing/selftests/bpf/test_sockmap_kern.h
Loading
Please register or sign in to comment