]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: bpf: Move bpf_printk to bpf_helpers.h
authorMichal Rostecki <mrostecki@opensuse.org>
Thu, 23 May 2019 12:53:54 +0000 (14:53 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 24 May 2019 20:47:17 +0000 (13:47 -0700)
commit0c11daab60c35424f17255a1985a3cd49a2d330a
treea0caaaf379e92c3d5c0631e12d8284a27cd43402
parentb070ef56547cf2480680d1f36f3e13a6a678dd41
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>
tools/testing/selftests/bpf/bpf_helpers.h
tools/testing/selftests/bpf/progs/sockmap_parse_prog.c
tools/testing/selftests/bpf/progs/sockmap_tcp_msg_prog.c
tools/testing/selftests/bpf/progs/sockmap_verdict_prog.c
tools/testing/selftests/bpf/progs/test_lwt_seg6local.c
tools/testing/selftests/bpf/progs/test_xdp_noinline.c
tools/testing/selftests/bpf/test_sockmap_kern.h