diff options
author | Steven Rostedt <[email protected]> | 2024-10-22 19:36:28 +0000 |
---|---|---|
committer | Borislav Petkov (AMD) <[email protected]> | 2024-10-30 17:24:32 +0100 |
commit | e52750fb1458ae9ea5860a08ed7a149185bc5b97 (patch) | |
tree | 11d7cce902364dfef778cdf4cdef0950b02d4387 /tools/perf/scripts/python/parallel-perf.py | |
parent | 750fd23926f1507cc826b5a4fdd4bfc7283e7723 (diff) |
tracing: Add __print_dynamic_array() helper
When printing a dynamic array in a trace event, the method is rather ugly.
It has the format of:
__print_array(__get_dynamic_array(array),
__get_dynmaic_array_len(array) / el_size, el_size)
Since dynamic arrays are known to the tracing infrastructure, create a
helper macro that does the above for you.
__print_dynamic_array(array, el_size)
Which would expand to the same output.
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Signed-off-by: Avadhut Naik <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Reviewed-by: Qiuxu Zhuo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions