]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Only calculate stats of tracepoint benchmarks for 2^32 times
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Fri, 6 Jun 2014 03:34:02 +0000 (23:34 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 6 Jun 2014 04:41:38 +0000 (00:41 -0400)
commit3e18640fc01d9d58bfce7ff7965e8945b6217d6e
tree5f93240558f6028500b0373e740e907990680091
parentf1aa882400bf84766c8e1bcca8ba611a6a79a433
tracing: Only calculate stats of tracepoint benchmarks for 2^32 times

When calculating the average and standard deviation, it is required that
the count be less than UINT_MAX, otherwise the do_div() will get
undefined results. After 2^32 counts of data, the average and standard
deviation should pretty much be set anyway.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_benchmark.c