diff options
| author | Namhyung Kim <[email protected]> | 2022-10-18 02:02:17 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2022-10-27 19:37:25 +0000 |
| commit | 049aba09e2156dd2ff1a61bf1b8738b0fc864c9d (patch) | |
| tree | 19b641bae741082eed2dcf1a6a6e4b0ad32cb67a /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | perf stat: Aggregate events using evsel->stats->aggr (diff) | |
| download | kernel-049aba09e2156dd2ff1a61bf1b8738b0fc864c9d.tar.gz kernel-049aba09e2156dd2ff1a61bf1b8738b0fc864c9d.zip | |
perf stat: Factor out evsel__count_has_error()
It's possible to have 0 enabled/running time for some per-task or per-cgroup
events since it's not scheduled on any CPU. Treating the whole event as
failed would not work in this case. Thinking again, the code only existed
when any CPU-level aggregation is enabled (like per-socket, per-core, ...).
To make it clearer, factor out the condition check into the new
evsel__count_has_error() function and add some comments.
Signed-off-by: Namhyung Kim <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Andi Kleen <[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: Leo Yan <[email protected]>
Cc: Michael Petlan <[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/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
