tracing/user_events: Optimize safe list traversals
authorEric Vaughn <ervaughn@linux.microsoft.com>
Thu, 10 Aug 2023 19:43:37 +0000 (12:43 -0700)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 22 Aug 2023 09:22:10 +0000 (05:22 -0400)
commita943188dabf78585fc5ddae0803b8b2c94f1c824
treefbc0c5e1f348ee91578ae28794a8165d58246bd0
parentc8f05f2f41d7e4950d6767e6ebe9fba3dcaf45ff
tracing/user_events: Optimize safe list traversals

Several of the list traversals in the user_events facility use safe list
traversals where they could be using the unsafe versions instead.

Replace these safe traversals with their unsafe counterparts in the
interest of optimization.

Link: https://lore.kernel.org/linux-trace-kernel/20230810194337.695983-1-ervaughn@linux.microsoft.com
Suggested-by: Beau Belgrave <beaub@linux.microsoft.com>
Signed-off-by: Eric Vaughn <ervaughn@linux.microsoft.com>
Acked-by: Beau Belgrave <beaub@linux.microsoft.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_events_user.c