bpf, perf: split bpf_perf_event_output
authorDaniel Borkmann <daniel@iogearbox.net>
Thu, 14 Jul 2016 16:08:04 +0000 (18:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jul 2016 21:23:56 +0000 (14:23 -0700)
commit8e7a3920ac277dd4e690c0e70c9750176e3acb83
tree2996ef0644920652d639833a2fc99bc2f204f7cf
parent7e3f977edd0bd9ea6104156feba95bb5ae9bdd38
bpf, perf: split bpf_perf_event_output

Split the bpf_perf_event_output() helper as a preparation into
two parts. The new bpf_perf_event_output() will prepare the raw
record itself and test for unknown flags from BPF trace context,
where the __bpf_perf_event_output() does the core work. The
latter will be reused later on from bpf_event_output() directly.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/trace/bpf_trace.c