]> git.baikalelectronics.ru Git - kernel.git/commit
tracing/histograms: String compares should not care about signed values
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 30 Nov 2021 17:31:23 +0000 (12:31 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 2 Dec 2021 02:04:22 +0000 (21:04 -0500)
commitaba7384d22c162e2e596eefaff41dc5baecafeec
tree73b733c73440dfa22cc7c45786f615cdf6dc54ac
parentff04131966d1a79c1b3cf26997a8e7d1433f1b7d
tracing/histograms: String compares should not care about signed values

When comparing two strings for the "onmatch" histogram trigger, fields
that are strings use string comparisons, which do not care about being
signed or not.

Do not fail to match two string fields if one is unsigned char array and
the other is a signed char array.

Link: https://lore.kernel.org/all/20211129123043.5cfd687a@gandalf.local.home/
Cc: stable@vgerk.kernel.org
Cc: Tom Zanussi <zanussi@kernel.org>
Cc: Yafang Shao <laoar.shao@gmail.com>
Fixes: 7b3b536d58f0f ("tracing: Accept different type for synthetic event fields")
Reviewed-by: Masami Hiramatsu <mhiramatsu@kernel.org>
Reported-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_events_hist.c