Skip to content

Commit a594dec

Browse files
committed
binder: Remove unused binder lock events
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 <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: "Arve =?utf-8?b?SGrDuG5u?= =?utf-8?b?ZXbDpWc=?= " <[email protected]> Cc: Todd Kjos <[email protected]> Cc: Martijn Coenen <[email protected]> Cc: Joel Fernandes <[email protected]> Cc: Christian Brauner <[email protected]> Cc: Suren Baghdasaryan <[email protected]> Link: https://lore.kernel.org/[email protected] Fixes: a60b890 ("binder: remove global binder lock") Signed-off-by: Steven Rostedt (Google) <[email protected]> Acked-by: Carlos Llamas <[email protected]> Reviewed-by: Alice Ryhl <[email protected]>
1 parent dd4186c commit a594dec

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

drivers/android/binder_trace.h

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -34,27 +34,6 @@ TRACE_EVENT(binder_ioctl,
3434
TP_printk("cmd=0x%x arg=0x%lx", __entry->cmd, __entry->arg)
3535
);
3636

37-
DECLARE_EVENT_CLASS(binder_lock_class,
38-
TP_PROTO(const char *tag),
39-
TP_ARGS(tag),
40-
TP_STRUCT__entry(
41-
__field(const char *, tag)
42-
),
43-
TP_fast_assign(
44-
__entry->tag = tag;
45-
),
46-
TP_printk("tag=%s", __entry->tag)
47-
);
48-
49-
#define DEFINE_BINDER_LOCK_EVENT(name) \
50-
DEFINE_EVENT(binder_lock_class, name, \
51-
TP_PROTO(const char *func), \
52-
TP_ARGS(func))
53-
54-
DEFINE_BINDER_LOCK_EVENT(binder_lock);
55-
DEFINE_BINDER_LOCK_EVENT(binder_locked);
56-
DEFINE_BINDER_LOCK_EVENT(binder_unlock);
57-
5837
DECLARE_EVENT_CLASS(binder_function_return_class,
5938
TP_PROTO(int ret),
6039
TP_ARGS(ret),

0 commit comments

Comments
 (0)