perf: split perf_trace_buf_prepare into alloc and update parts
authorAlexei Starovoitov <ast@fb.com>
Thu, 7 Apr 2016 01:43:24 +0000 (18:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Apr 2016 01:04:26 +0000 (21:04 -0400)
commit1e1dcd93b468901e114f279c94a0b356adc5e7cd
treeb0bee9a35251caacc44d9a3ffbbae90e8afb237d
parente93735be6a1898dd9f8de8f55254cc76309777ce
perf: split perf_trace_buf_prepare into alloc and update parts

split allows to move expensive update of 'struct trace_entry' to later phase.
Repurpose unused 1st argument of perf_tp_event() to indicate event type.

While splitting use temp variable 'rctx' instead of '*rctx' to avoid
unnecessary loads done by the compiler due to -fno-strict-aliasing

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/perf_event.h
include/linux/trace_events.h
include/trace/perf.h
kernel/events/core.c
kernel/trace/trace_event_perf.c
kernel/trace/trace_kprobe.c
kernel/trace/trace_syscalls.c
kernel/trace/trace_uprobe.c