diff options
author | Steven Rostedt (Google) <[email protected]> | 2024-01-07 20:32:58 -0500 |
---|---|---|
committer | Steven Rostedt (Google) <[email protected]> | 2024-01-08 13:24:56 -0500 |
commit | 4f1991a92cfe89096b2d1f5583a2e093bdd55c37 (patch) | |
tree | 9c4d71bc85ebea44efa0ce6c906441ca045d9f1a /scripts/gdb/linux/utils.py | |
parent | 26547691107eda45b0f20ee79bad19bbe5fcbfd7 (diff) |
tracing histograms: Simplify parse_actions() function
The parse_actions() function uses 'len = str_has_prefix()' to test which
action is in the string being parsed. But then it goes and repeats the
logic for each different action. This logic can be simplified and
duplicate code can be removed as 'len' contains the length of the found
prefix which should be used for all actions.
Link: https://lore.kernel.org/all/[email protected]/
Link: https://lore.kernel.org/linux-trace-kernel/[email protected]
Cc: Masami Hiramatsu <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Andy Shevchenko <[email protected]>
Cc: Tom Zanussi <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions