tracing/user_events: Remove user_ns walk for groups
authorBeau Belgrave <beaub@linux.microsoft.com>
Thu, 1 Jun 2023 22:49:28 +0000 (15:49 -0700)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 14 Jun 2023 16:41:53 +0000 (12:41 -0400)
commited0e0ae0c932188654422d01f4e0ea14ff97c063
tree7c444b397cc86a62be6b45142b490f5556c6544e
parent42187bdc3ca45435bec96c66a90276315b2db1cb
tracing/user_events: Remove user_ns walk for groups

During discussions it was suggested that user_ns is not a good place to
try to attach a tracing namespace. The current code has stubs to enable
that work that are very likely to change and incur a performance cost.

Remove the user_ns walk when creating a group and determining the system
name to use, since it's unlikely user_ns will be used in the future.

Link: https://lore.kernel.org/all/20230601-urenkel-holzofen-cd9403b9cadd@brauner/
Link: https://lore.kernel.org/linux-trace-kernel/20230601224928.301-1-beaub@linux.microsoft.com
Suggested-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Beau Belgrave <beaub@linux.microsoft.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_events_user.c