tracing: Mention the tool pahole in the documentation of function based events
Instead of just using gdb, one could use pahole to find the index and size
of fields in structures.
Suggested-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
diff --git a/Documentation/trace/function-based-events.rst b/Documentation/trace/function-based-events.rst
index 9d91c26..ff5da3e 100644
--- a/Documentation/trace/function-based-events.rst
+++ b/Documentation/trace/function-based-events.rst
@@ -169,6 +169,13 @@
Now we see the length of the sk_buff per event.
+Note: You can also use the tool "pahole" from the "dwarves" package:
+
+ $ pahole ./vmlinux -C sk_buf | grep len
+ unsigned int len; /* 128 4 */
+
+Which gives you the "128" index from above. It also gives you the size
+of the field which could be useful for determining the type.
Multiple fields per argument
============================