tracing: Iterate trace_[ku]probe objects directly
authorJiri Olsa <jolsa@redhat.com>
Thu, 25 Nov 2021 20:28:52 +0000 (21:28 +0100)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sat, 11 Dec 2021 14:34:32 +0000 (09:34 -0500)
commite161c6bf3955d737f755f8eaa3b92de4bc6bd0e7
tree969dc6a65661edc621fb325678615f03d33cd217
parentee34c52c7115b60a7c96b2034dd1737765dd5493
tracing: Iterate trace_[ku]probe objects directly

As suggested by Linus [1] using list_for_each_entry to iterate
directly trace_[ku]probe objects so we can skip another call to
container_of in these loops.

[1] https://lore.kernel.org/r/CAHk-=wjakjw6-rDzDDBsuMoDCqd+9ogifR_EE1F0K-jYek1CdA@mail.gmail.com

Link: https://lkml.kernel.org/r/20211125202852.406405-1-jolsa@kernel.org
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_kprobe.c
kernel/trace/trace_uprobe.c