Skip to content
Commit fe137a4f authored by Andreas Ziegler's avatar Andreas Ziegler Committed by Steven Rostedt (Google)
Browse files

tools/tracing/rtla: osnoise_hist: use total duration for average calculation

Sampled durations must be weighted by observed quantity, to arrive at a correct
average duration value.

Perform calculation of total duration by summing (duration * count).

Link: https://lkml.kernel.org/r/20230103103400.275566-2-br015@umbiko.net

Fixes: 829a6c0b

 ("rtla/osnoise: Add the hist mode")

Signed-off-by: default avatarAndreas Ziegler <br015@umbiko.net>
Acked-by: default avatarDaniel Bristot de Oliveira <bristot@kernel.org>
Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
parent a37380ef
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment