aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2022-11-14 23:02:15 +0000
committerArnaldo Carvalho de Melo <[email protected]>2022-11-16 12:51:22 +0000
commitd6aeb861b1fb26f55c1b5be4b6e900ad1e734516 (patch)
treee0080cee3465e01a84d548b4495b1732aa922f09 /tools/perf/util/scripting-engines/trace-event-python.c
parentperf stat: Factor out print_counter_value() function (diff)
downloadkernel-d6aeb861b1fb26f55c1b5be4b6e900ad1e734516.tar.gz
kernel-d6aeb861b1fb26f55c1b5be4b6e900ad1e734516.zip
perf stat: Handle bad events in abs_printout()
In the printout() function, it checks if the event is bad (i.e. not counted or not supported) and print the result. But it does the same what abs_printout() is doing. So add an argument to indicate the value is ok or not and use the same function in both cases. Signed-off-by: Namhyung Kim <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Athira Jajeev <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: James Clark <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Xing Zhengjun <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions