bpf: allow networking programs to use bpf_trace_printk() for debugging
authorAlexei Starovoitov <ast@plumgrid.com>
Sat, 13 Jun 2015 02:39:13 +0000 (19:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Jun 2015 22:53:50 +0000 (15:53 -0700)
commit0756ea3e85139d23a8148ebaa95411c2f0aa4f11
tree16b702c8ca6da39fc16188f3bf767d238df8b5ff
parentffeedafbf0236f03aeb2e8db273b3e5ae5f5bc89
bpf: allow networking programs to use bpf_trace_printk() for debugging

bpf_trace_printk() is a helper function used to debug eBPF programs.
Let socket and TC programs use it as well.
Note, it's DEBUG ONLY helper. If it's used in the program,
the kernel will print warning banner to make sure users don't use
it in production.

Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/bpf.h
kernel/bpf/core.c
kernel/trace/bpf_trace.c
net/core/filter.c