Searched hist:fe137a4fe0e77eb95396cfc5c3dd7df404421aa4 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/tools/tracing/rtla/src/ |
H A D | osnoise_hist.c | diff fe137a4fe0e77eb95396cfc5c3dd7df404421aa4 Tue Jan 03 04:33:59 CST 2023 Andreas Ziegler <br015@umbiko.net> 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: 829a6c0b5698 ("rtla/osnoise: Add the hist mode")
Signed-off-by: Andreas Ziegler <br015@umbiko.net> Acked-by: Daniel Bristot de Oliveira <bristot@kernel.org> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
|