diff options
author | Kalesh Singh <kaleshsingh@google.com> | 2021-10-25 13:08:37 -0700 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2021-10-26 20:27:19 -0400 |
commit | f47716b7a955e40e2591b960d1eccb1fde967a70 (patch) | |
tree | 25799f6a70edad81c2340248d4f038384cc43bfa /fs/btrfs/dev-replace.c | |
parent | c5eac6ee8bc5d32e48b3845472b547574061f49f (diff) |
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/20211025200852.3002369-6-kaleshsingh@google.com
Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
Suggested-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions