aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/python.c
diff options
context:
space:
mode:
authorYang Jihong <[email protected]>2023-06-23 05:44:14 +0000
committerNamhyung Kim <[email protected]>2023-06-24 05:30:23 +0000
commit5492e72500646170cd409b14fe273e6d067b9fae (patch)
tree183a0268aabc19f2b2a1bc140ffe08a5a4bb8029 /tools/perf/util/python.c
parentperf trace-event-info: Add tracepoint_id_to_name() helper (diff)
downloadkernel-5492e72500646170cd409b14fe273e6d067b9fae.tar.gz
kernel-5492e72500646170cd409b14fe273e6d067b9fae.zip
perf tools: Extend PRINT_ATTRf to support printing of members with a value of 0
When printing attr, members whose value is 0 will not be printed, we want to print the case where attr->type is 0(PERF_TYPE_HARDWARE), add `_a` param to PRINT_ATTRf macro to always print member when it is true No functional change. Signed-off-by: Yang Jihong <[email protected]> Acked-by: Adrian Hunter <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/util/python.c')
0 files changed, 0 insertions, 0 deletions