aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorTvrtko Ursulin <[email protected]>2017-11-24 09:49:59 +0000
committerTvrtko Ursulin <[email protected]>2017-11-24 13:20:48 +0000
commit8ee4f19c47031f23340055da4d9f2af537de23f4 (patch)
tree37890b2f6dc87756391117f712412af68fb69136 /tools/perf/scripts/python/stackcollapse.py
parent1b2b659141cfa7c96c62c79516662a34ad112284 (diff)
drm/i915/pmu: Stop averaging with the previous sample
Averaging with the previous sample brings a small statistical improvement to sampling counters, but can leek a little bit of state from a current client to the next which mulls the border between past and present for observing clients. This is because on event enable clients record the current counter value and use it as reference, but with rapid off-on event cycles, and due the delayed nature of sampling timer self-disarm, previous sample value does not get cleared under these circumstances. Solution is to stop averaging with the previous sample. This has a small downside of losing some precision with short and spiky signals, but the alternatives look too complicated for the benefit. Signed-off-by: Tvrtko Ursulin <[email protected]> Cc: Chris Wilson <[email protected]> Cc: Sagar Arun Kamble <[email protected]> Reviewed-by: Chris Wilson <[email protected]> Tested-by: Chris Wilson <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions