summaryrefslogtreecommitdiff
path: root/kernel/trace/trace_events.c
diff options
context:
space:
mode:
authorTom Zanussi <zanussi@kernel.org>2020-01-29 21:18:18 -0500
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2020-01-31 12:59:26 -0500
commitd380dcde9a07ca5de4805dee11f58a98ec0ad6ff (patch)
tree781b5a6f48001ec6477957df7d1637fe9d9a8b10 /kernel/trace/trace_events.c
parentfdeb1aca2861472b38779be44141757483300827 (diff)
downloadlinux-d380dcde9a07ca5de4805dee11f58a98ec0ad6ff.tar.gz
tracing: Fix now invalid var_ref_vals assumption in trace action
The patch 'tracing: Fix histogram code when expression has same var as value' added code to return an existing variable reference when creating a new variable reference, which resulted in var_ref_vals slots being reused instead of being duplicated. The implementation of the trace action assumes that the end of the var_ref_vals array starting at action_data.var_ref_idx corresponds to the values that will be assigned to the trace params. The patch mentioned above invalidates that assumption, which means that each param needs to explicitly specify its index into var_ref_vals. This fix changes action_data.var_ref_idx to an array of var ref indexes to account for that. Link: https://lore.kernel.org/r/1580335695.6220.8.camel@kernel.org Fixes: 8bcebc77e85f ("tracing: Fix histogram code when expression has same var as value") Signed-off-by: Tom Zanussi <zanussi@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_events.c')
0 files changed, 0 insertions, 0 deletions