aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorVeronika Molnarova <[email protected]>2023-09-19 17:02:42 +0200
committerNamhyung Kim <[email protected]>2023-09-21 11:53:45 -0700
commitfa52d995d1d0b64e75f63571df2e57ba22ff0cb1 (patch)
tree74507571d6808a796cd4dc59775cbfd24a869673 /tools/perf/scripts/python/task-analyzer.py
parente49be27e18c59639be28cd0d766caf594fe2b77f (diff)
perf test stat+shadow_stat.sh: Add threshold for rounding errors
The test was failing in specific scenarios due to imperfection of FP arithmetics. The `bc` command wasn't correctly rounding the result of division causing the failure. Replace the `bc` with `awk` which should work with more decimal places and add a threshold to catch any possible rounding errors. The acceptable rounding error is set to 0.01 when the test passes with a warning message. Signed-off-by: Veronika Molnarova <[email protected]> Acked-by: Michael Petlan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions