bpf: support bpf_get_stackid() and bpf_perf_event_output() in tracepoint programs
authorAlexei Starovoitov <ast@fb.com>
Thu, 7 Apr 2016 01:43:27 +0000 (18:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Apr 2016 01:04:26 +0000 (21:04 -0400)
commit9940d67c93b5bb7ddcf862b41b1847cb728186c4
treee5b9a36df5bc8bde9b7435cda796d2cefe686e45
parent9fd82b610ba3351f05a59c3e9117cfefe82f7751
bpf: support bpf_get_stackid() and bpf_perf_event_output() in tracepoint programs

needs two wrapper functions to fetch 'struct pt_regs *' to convert
tracepoint bpf context into kprobe bpf context to reuse existing
helper functions

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