diff options
| author | Namhyung Kim <[email protected]> | 2023-03-27 22:57:10 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2023-04-04 12:39:56 +0000 |
| commit | 35bf007e2ee0447166081646c0797bfa831b062f (patch) | |
| tree | 19f6b0bf3361b256a0d290c3e2d6be4a1e8695f5 /tools/perf/scripts/python | |
| parent | perf vendor events intel: Update ivybridge and ivytown (diff) | |
| download | kernel-35bf007e2ee0447166081646c0797bfa831b062f.tar.gz kernel-35bf007e2ee0447166081646c0797bfa831b062f.zip | |
perf lock contention: Fix debug stat if no contention
It should not divide if the total number is 0. Otherwise it'd show
NaN in the bad rate output. Also add a whitespace in the "output
for debug" message.
$ sudo perf lock contention -abv true
Looking at the vmlinux_path (8 entries long)
symsrc__init: cannot get elf header.
Using /proc/kcore for kernel data
Using /proc/kallsyms for symbols
contended total wait max wait avg wait type caller
=== output for debug===
bad: 0, total: 0
bad rate: -nan % <------------------------- (here)
histogram of events caused bad sequence
acquire: 0
acquired: 0
contended: 0
release: 0
Signed-off-by: Namhyung Kim <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Hao Luo <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: [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')
0 files changed, 0 insertions, 0 deletions
