android: binder: Show extra_buffers_size in trace
authorSherry Yang <sherryy@android.com>
Fri, 27 Jul 2018 00:17:17 +0000 (17:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Aug 2018 08:34:12 +0000 (10:34 +0200)
Add extra_buffers_size to the binder_transaction_alloc_buf tracepoint.

Acked-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: Sherry Yang <sherryy@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder_trace.h

index 76e3b9c8a8a291e60edb23b43b62ff8585c2befd..588eb3ec35070554cfde9668d9838b16e076785b 100644 (file)
@@ -248,14 +248,17 @@ DECLARE_EVENT_CLASS(binder_buffer_class,
                __field(int, debug_id)
                __field(size_t, data_size)
                __field(size_t, offsets_size)
+               __field(size_t, extra_buffers_size)
        ),
        TP_fast_assign(
                __entry->debug_id = buf->debug_id;
                __entry->data_size = buf->data_size;
                __entry->offsets_size = buf->offsets_size;
+               __entry->extra_buffers_size = buf->extra_buffers_size;
        ),
-       TP_printk("transaction=%d data_size=%zd offsets_size=%zd",
-                 __entry->debug_id, __entry->data_size, __entry->offsets_size)
+       TP_printk("transaction=%d data_size=%zd offsets_size=%zd extra_buffers_size=%zd",
+                 __entry->debug_id, __entry->data_size, __entry->offsets_size,
+                 __entry->extra_buffers_size)
 );
 
 DEFINE_EVENT(binder_buffer_class, binder_transaction_alloc_buf,