aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorKalesh Singh <[email protected]>2021-10-25 20:08:36 +0000
committerSteven Rostedt (VMware) <[email protected]>2021-10-27 00:27:19 +0000
commitc5eac6ee8bc5d32e48b3845472b547574061f49f (patch)
tree10595205f94eef9d1b4aeb5870d04560e9b7a96a /scripts/gcc-plugins/cyc_complexity_plugin.c
parenttracing: Fix operator precedence for hist triggers expression (diff)
downloadkernel-c5eac6ee8bc5d32e48b3845472b547574061f49f.tar.gz
kernel-c5eac6ee8bc5d32e48b3845472b547574061f49f.zip
tracing/histogram: Simplify handling of .sym-offset in expressions
The '-' in .sym-offset can confuse the hist trigger arithmetic expression parsing. Simplify the handling of this by replacing the 'sym-offset' with 'symXoffset'. This allows us to correctly evaluate expressions where the user may have inadvertently added a .sym-offset modifier to one of the operands in an expression, instead of bailing out. In this case the .sym-offset has no effect on the evaluation of the expression. The only valid use of the .sym-offset is as a hist key modifier. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Kalesh Singh <[email protected]> Suggested-by: Steven Rostedt <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions