tracing: Use var_refs[] for hist trigger reference checking
authorTom Zanussi <tzanussi@gmail.com>
Wed, 19 Dec 2018 19:09:16 +0000 (13:09 -0600)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sat, 22 Dec 2018 13:21:04 +0000 (08:21 -0500)
commite4f6d245031e04bdd12db390298acec0474a1a46
tree374509401a2b8efa4540fd88fa128d5e672ae12b
parent2f31ed9308cc9e95c149078b276a47360ab507bb
tracing: Use var_refs[] for hist trigger reference checking

Since all the variable reference hist_fields are collected into
hist_data->var_refs[] array, there's no need to go through all the
fields looking for them, or in separate arrays like synth_var_refs[],
which will be going away soon anyway.

This also allows us to get rid of some unnecessary code and functions
currently used for the same purpose.

Link: http://lkml.kernel.org/r/1545246556.4239.7.camel@gmail.com
Acked-by: Namhyung Kim <namhyung@kernel.org>
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_events_hist.c