aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorYang Jihong <[email protected]>2023-06-23 05:44:14 +0000
committerNamhyung Kim <[email protected]>2023-06-23 22:30:23 -0700
commit5492e72500646170cd409b14fe273e6d067b9fae (patch)
tree183a0268aabc19f2b2a1bc140ffe08a5a4bb8029 /tools/perf/util/trace-event-scripting.c
parent220f88b5a11a88539fbc44d2740c41bf995ecb45 (diff)
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/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions