aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorSteven Rostedt (Google) <[email protected]>2024-01-07 20:32:58 -0500
committerSteven Rostedt (Google) <[email protected]>2024-01-08 13:24:56 -0500
commit4f1991a92cfe89096b2d1f5583a2e093bdd55c37 (patch)
tree9c4d71bc85ebea44efa0ce6c906441ca045d9f1a /scripts/gdb/linux/utils.py
parent26547691107eda45b0f20ee79bad19bbe5fcbfd7 (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