]> 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)
commit0e865069afff257cb04eed9ad1f313cf2319b6d0
treef9b9bd1132d45089114571f2aea4ab1af64b795a
parentcb00dd6612d112e293780b3198308ff19d5f2127
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: 1ed38f5f12c16 ("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