diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2019-10-15 08:26:47 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-10-15 13:03:58 -0300 |
commit | c5e006cdbd278a8a5185a3a56acdba161cf159ea (patch) | |
tree | 788c9b643a80e30b78d6aab9fd5be016236ffd30 /scripts/gdb/linux/device.py | |
parent | 7fbfe22cf4cfe01a88704dd76ca65d108039d297 (diff) |
perf trace: Support tracepoint dynamic char arrays
Things like:
# grep __data_loc /sys/kernel/debug/tracing/events/sched/sched_process_exec/format
field:__data_loc char[] filename; offset:8; size:4; signed:1;
#
That, at that offset (8) and with that size(8) have an integer that
contains the real length and offset for the contents of that array.
Now this works:
# perf trace --max-events 1 -e sched:*exec -a
0.000 sed/19441 sched:sched_process_exec(filename: "/usr/bin/sync", pid: 19441 (sync), old_pid: 19441 (sync))
#
As when using the libtraceevent based beautifier:
# perf trace --libtraceevent --max-events 1 -e sched:*exec -a
0.000 sync/19463 sched:sched_process_exec(filename=/usr/bin/sync pid=19463 old_pid=19463)
#
I.e. that 'filename' is implemented as a dynamic char array.
Cc: Adrian Hunter <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Luis Cláudio Gonçalves <[email protected]>
Cc: Namhyung Kim <[email protected]>
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/device.py')
0 files changed, 0 insertions, 0 deletions