tracing: Check that number of vals matches number of synth event fields
authorTom Zanussi <zanussi@kernel.org>
Fri, 14 Feb 2020 22:56:40 +0000 (16:56 -0600)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 20 Feb 2020 21:24:17 +0000 (16:24 -0500)
commit3843083772dc2afde790a6d7160658b00a808da1
treeca972426f71e8b20539a41afb22ef3be5ed3d753
parent1d9d4c90194a8c3b2f7da9f4bf3f8ba2ed810656
tracing: Check that number of vals matches number of synth event fields

Commit 7276531d4036('tracing: Consolidate trace() functions')
inadvertently dropped the synth_event_trace() and
synth_event_trace_array() checks that verify the number of values
passed in matches the number of fields in the synthetic event being
traced, so add them back.

Link: http://lkml.kernel.org/r/32819cac708714693669e0dfe10fe9d935e94a16.1581720155.git.zanussi@kernel.org
Signed-off-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_events_hist.c