perf hists: Add more helpers for hist entry stat
authorNamhyung Kim <namhyung.kim@lge.com>
Thu, 4 Oct 2012 12:49:43 +0000 (21:49 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 4 Oct 2012 16:36:18 +0000 (13:36 -0300)
commit139c0815903de1a7865fe1d6beac5e995fefdf46
tree7bfba0d05cd7ec188883cbe9b41db794e642fa44
parentc4b35351ef3145c9abad64999d1de0de1b8361ab
perf hists: Add more helpers for hist entry stat

Add and use he_stat__add_{period,stat} for calculating hist entry's
stat.  It will be used for accumulated stats later as well.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Arun Sharma <asharma@fb.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1349354994-17853-10-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/hist.c