tracing: Use hist trigger's var_ref array to destroy var_refs
authorTom Zanussi <tom.zanussi@linux.intel.com>
Tue, 18 Dec 2018 20:33:24 +0000 (14:33 -0600)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sat, 22 Dec 2018 13:21:05 +0000 (08:21 -0500)
commit656fe2ba85e81d00e4447bf77b8da2be3c47acb2
treecaf323c2a2745a4b87ec2561b3183336f56c9e5a
parentde40f033d4e84e843d6a12266e3869015ea9097c
tracing: Use hist trigger's var_ref array to destroy var_refs

Since every var ref for a trigger has an entry in the var_ref[] array,
use that to destroy the var_refs, instead of piecemeal via the field
expressions.

This allows us to avoid having to keep and treat differently separate
lists for the action-related references, which future patches will
remove.

Link: http://lkml.kernel.org/r/fad1a164f0e257c158e70d6eadbf6c586e04b2a2.1545161087.git.tom.zanussi@linux.intel.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