]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
binder: Remove unused binder lock events
authorSteven Rostedt <rostedt@goodmis.org>
Thu, 12 Jun 2025 13:34:08 +0000 (09:34 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 23 Jul 2025 18:58:54 +0000 (14:58 -0400)
Trace events can take up to 5K each when they are defined, regardless if
they are used or not. The binder lock events: binder_lock, binder_locked
and binder_unlock are no longer used.

Remove them.

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: "Arve =?utf-8?b?SGrDuG5u?= =?utf-8?b?ZXbDpWc=?= " <arve@android.com>
Cc: Todd Kjos <tkjos@android.com>
Cc: Martijn Coenen <maco@android.com>
Cc: Joel Fernandes <joelagnelf@nvidia.com>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Link: https://lore.kernel.org/20250612093408.3b7320fa@batman.local.home
Fixes: a60b890f607d ("binder: remove global binder lock")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Acked-by: Carlos Llamas <cmllamas@google.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
drivers/android/binder_trace.h

index 16de1b9e72f76167272e0989674b225ab488dc51..97a78e5623db19aa625f8c28ae79173994fa12a4 100644 (file)
@@ -34,27 +34,6 @@ TRACE_EVENT(binder_ioctl,
        TP_printk("cmd=0x%x arg=0x%lx", __entry->cmd, __entry->arg)
 );
 
-DECLARE_EVENT_CLASS(binder_lock_class,
-       TP_PROTO(const char *tag),
-       TP_ARGS(tag),
-       TP_STRUCT__entry(
-               __field(const char *, tag)
-       ),
-       TP_fast_assign(
-               __entry->tag = tag;
-       ),
-       TP_printk("tag=%s", __entry->tag)
-);
-
-#define DEFINE_BINDER_LOCK_EVENT(name) \
-DEFINE_EVENT(binder_lock_class, name,  \
-       TP_PROTO(const char *func), \
-       TP_ARGS(func))
-
-DEFINE_BINDER_LOCK_EVENT(binder_lock);
-DEFINE_BINDER_LOCK_EVENT(binder_locked);
-DEFINE_BINDER_LOCK_EVENT(binder_unlock);
-
 DECLARE_EVENT_CLASS(binder_function_return_class,
        TP_PROTO(int ret),
        TP_ARGS(ret),