[PATCH v6 tip 4/8] tracing: allow BPF programs to call bpf_trace_printk()

2015-03-10 Thread Alexei Starovoitov
Debugging of BPF programs needs some form of printk from the program, so let programs call limited trace_printk() with %d %u %x %p modifiers only. Similar to kernel modules, during program load verifier checks whether program is calling bpf_trace_printk() and if so, kernel allocates trace_printk

[PATCH v6 tip 4/8] tracing: allow BPF programs to call bpf_trace_printk()

2015-03-10 Thread Alexei Starovoitov
Debugging of BPF programs needs some form of printk from the program, so let programs call limited trace_printk() with %d %u %x %p modifiers only. Similar to kernel modules, during program load verifier checks whether program is calling bpf_trace_printk() and if so, kernel allocates trace_printk