]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Propagate is_signed to expression
authorTom Zanussi <zanussi@kernel.org>
Thu, 27 Jan 2022 21:44:17 +0000 (15:44 -0600)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 28 Jan 2022 00:15:49 +0000 (19:15 -0500)
commitef6ef84d527afe066eeef076546c316a71b98562
treef9b9bd1132d45089114571f2aea4ab1af64b795a
parent9e00f935180e0e051ac63247d2e0b1fcbe0e66db
tracing: Propagate is_signed to expression

During expression parsing, a new expression field is created which
should inherit the properties of the operands, such as size and
is_signed.

is_signed propagation was missing, causing spurious errors with signed
operands.  Add it in parse_expr() and parse_unary() to fix the problem.

Link: https://lkml.kernel.org/r/f4dac08742fd7a0920bf80a73c6c44042f5eaa40.1643319703.git.zanussi@kernel.org
Cc: stable@vger.kernel.org
Fixes: b3a6665e4f1ca ("tracing: Add simple expression support to hist triggers")
Reported-by: Yordan Karadzhov <ykaradzhov@vmware.com>
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=215513
Signed-off-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_events_hist.c