selftests/bpf: Add selftests verifying bpf_trace_printk() behaviour
authorAlan Maguire <alan.maguire@oracle.com>
Mon, 13 Jul 2020 11:52:34 +0000 (12:52 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 13 Jul 2020 23:55:49 +0000 (16:55 -0700)
commit59e8b60bf068180fcadb0ae06ce8f6f835132ce6
tree9add8fdea634ba08ed2a57cae8da34e497eed9e5
parentac5a72ea5c8989871e61f6bb0852e0f91de51ebe
selftests/bpf: Add selftests verifying bpf_trace_printk() behaviour

Simple selftests that verifies bpf_trace_printk() returns a sensible
value and tracing messages appear.

Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/1594641154-18897-3-git-send-email-alan.maguire@oracle.com
tools/testing/selftests/bpf/prog_tests/trace_printk.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/trace_printk.c [new file with mode: 0644]