diff options
author | Cong Wang <xiyou.wangcong@gmail.com> | 2019-05-25 18:57:59 +0200 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2019-07-16 21:14:48 +0200 |
commit | 46710f3a34b592ac5c51a95f696b2d2a2a0d9419 (patch) | |
tree | 13e0420ef1cbd3ea52736bfaf3498a4818226c0a /kernel/trace/trace_event_perf.c | |
parent | ftrace/selftest: Test if set_event/ftrace_pid exists before writing (diff) | |
download | linux-46710f3a34b592ac5c51a95f696b2d2a2a0d9419.tar.xz linux-46710f3a34b592ac5c51a95f696b2d2a2a0d9419.zip |
tracing: Pass type into tracing_generic_entry_update()
All callers of tracing_generic_entry_update() have to initialize
entry->type, so let's just simply move it inside.
Link: http://lkml.kernel.org/r/20190525165802.25944-2-xiyou.wangcong@gmail.com
Cc: Ingo Molnar <mingo@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_event_perf.c')
-rw-r--r-- | kernel/trace/trace_event_perf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/trace/trace_event_perf.c b/kernel/trace/trace_event_perf.c index 4629a6104474..0892e38ed6fb 100644 --- a/kernel/trace/trace_event_perf.c +++ b/kernel/trace/trace_event_perf.c @@ -416,8 +416,7 @@ void perf_trace_buf_update(void *record, u16 type) unsigned long flags; local_save_flags(flags); - tracing_generic_entry_update(entry, flags, pc); - entry->type = type; + tracing_generic_entry_update(entry, type, flags, pc); } NOKPROBE_SYMBOL(perf_trace_buf_update); |