public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] ftrace: fix stddev calculation and add a test for it
@ 2013-06-11  9:08 Juri Lelli
  2013-06-11  9:08 ` [PATCH 1/3] ftrace: refactor basis statistics calculation code Juri Lelli
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Juri Lelli @ 2013-06-11  9:08 UTC (permalink / raw)
  To: rostedt, fweisbec, mingo; +Cc: linux-kernel, juri.lelli

While profiling kernel functions via ftrace I noticed values of s^2 that
seemed odd. I implemented a test to verify correctness of averages and
s^2 calculations and proved the latter to be wrong. Then I fixed them up.

The first patch refactors function_stat_show() code a bit in order to be
able to implement the test (second patch). Third patch fixes up s^2
calculation (applying Welford's method).

Juri Lelli (3):
  ftrace: refactor basis statistics calculation code
  ftrace: test basic statistics calculation
  ftrace: fix stddev calculation

 kernel/trace/ftrace.c         |   50 ++++++++++++++--------------
 kernel/trace/trace.h          |   16 +++++++++
 kernel/trace/trace_selftest.c |   72 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 114 insertions(+), 24 deletions(-)

-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-06-12  9:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-11  9:08 [PATCH 0/3] ftrace: fix stddev calculation and add a test for it Juri Lelli
2013-06-11  9:08 ` [PATCH 1/3] ftrace: refactor basis statistics calculation code Juri Lelli
2013-06-11  9:08 ` [PATCH 2/3] ftrace: test basic statistics calculation Juri Lelli
2013-06-12  0:00   ` Steven Rostedt
2013-06-11  9:08 ` [PATCH 3/3] ftrace: fix stddev calculation Juri Lelli
2013-06-12  3:09   ` Steven Rostedt
2013-06-12  9:34     ` Juri Lelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox