aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorKalesh Singh <[email protected]>2021-10-25 20:08:37 +0000
committerSteven Rostedt (VMware) <[email protected]>2021-10-27 00:27:19 +0000
commitf47716b7a955e40e2591b960d1eccb1fde967a70 (patch)
tree25799f6a70edad81c2340248d4f038384cc43bfa /scripts/gcc-plugins/cyc_complexity_plugin.c
parenttracing/histogram: Simplify handling of .sym-offset in expressions (diff)
downloadkernel-f47716b7a955e40e2591b960d1eccb1fde967a70.tar.gz
kernel-f47716b7a955e40e2591b960d1eccb1fde967a70.zip
tracing/histogram: Covert expr to const if both operands are constants
If both operands of a hist trigger expression are constants, convert the expression to a constant. This optimization avoids having to perform the same calculation multiple times and also saves on memory since the merged constants are represented by a single struct hist_field instead or multiple. 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