aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/stat.c
AgeCommit message (Collapse)AuthorFilesLines
2013-08-07perf stats: Add max and min statsDavid Ahern1-0/+6
Need an initialization function to set min to -1 to differentiate from an actual min of 0. Signed-off-by: David Ahern <[email protected]> Reviewed-by: Xiao Guangrong <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Runzhen Wang <[email protected]> Cc: Xiao Guangrong <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
2013-05-28perf stats: Fix divide by 0 in varianceDavid Ahern1-1/+1
Number of samples needs to be greater 1 to have a variance. Fixes nan% in perf-kvm-live output. Signed-off-by: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Runzhen Wang <[email protected]> Cc: Xiao Guangrong <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
2012-09-17perf stat: Move stats related code to util/stat.cXiao Guangrong1-0/+57
Then, the code can be shared between kvm events and perf stat. Signed-off-by: Xiao Guangrong <[email protected]> [ Dong Hao <[email protected]>: rebase it on acme's git tree ] Signed-off-by: Dong Hao <[email protected]> Cc: Avi Kivity <[email protected]> Cc: David Ahern <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: [email protected] Cc: Marcelo Tosatti <[email protected]> Cc: Runzhen Wang <[email protected]> Cc: Xiao Guangrong <[email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>