summaryrefslogtreecommitdiffstats
path: root/kernel/entry
diff options
context:
space:
mode:
authorSteven Rostedt (Google) <rostedt@goodmis.org>2024-01-07 20:32:58 -0500
committerSteven Rostedt (Google) <rostedt@goodmis.org>2024-01-08 13:24:56 -0500
commit4f1991a92cfe89096b2d1f5583a2e093bdd55c37 (patch)
tree9c4d71bc85ebea44efa0ce6c906441ca045d9f1a /kernel/entry
parent26547691107eda45b0f20ee79bad19bbe5fcbfd7 (diff)
downloadlinux-4f1991a92cfe89096b2d1f5583a2e093bdd55c37.tar.gz
linux-4f1991a92cfe89096b2d1f5583a2e093bdd55c37.tar.bz2
linux-4f1991a92cfe89096b2d1f5583a2e093bdd55c37.zip
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/20240107112044.6702cb66@gandalf.local.home/ Link: https://lore.kernel.org/linux-trace-kernel/20240107203258.37e26d2b@gandalf.local.home Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Andy Shevchenko <andy@kernel.org> Cc: Tom Zanussi <zanussi@kernel.org> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/entry')
0 files changed, 0 insertions, 0 deletions