summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/sort.h
diff options
context:
space:
mode:
authorNamhyung Kim2012-09-11 06:15:07 +0200
committerJiri Olsa2014-06-01 14:34:56 +0200
commitf8be1c8c48c8469d1ce95ccdc77b1e2c6a29700e (patch)
treef7d8f836cba20bc69038f271268a5b84dba3ac6f /tools/perf/util/sort.h
parentperf tools: Introduce struct hist_entry_iter (diff)
downloadkernel-qcow2-linux-f8be1c8c48c8469d1ce95ccdc77b1e2c6a29700e.tar.gz
kernel-qcow2-linux-f8be1c8c48c8469d1ce95ccdc77b1e2c6a29700e.tar.xz
kernel-qcow2-linux-f8be1c8c48c8469d1ce95ccdc77b1e2c6a29700e.zip
perf hists: Add support for accumulated stat of hist entry
Maintain accumulated stat information in hist_entry->stat_acc if symbol_conf.cumulate_callchain is set. Fields in ->stat_acc have same vaules initially, and will be updated as callchain is processed later. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Tested-by: Arun Sharma <asharma@fb.com> Tested-by: Rodrigo Campos <rodrigo@sdfg.com.ar> Cc: Frederic Weisbecker <fweisbec@gmail.com> Link: http://lkml.kernel.org/r/1401335910-16832-4-git-send-email-namhyung@kernel.org Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Diffstat (limited to 'tools/perf/util/sort.h')
-rw-r--r--tools/perf/util/sort.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/sort.h b/tools/perf/util/sort.h
index 5f38d925e92f..c9ffa031becd 100644
--- a/tools/perf/util/sort.h
+++ b/tools/perf/util/sort.h
@@ -82,6 +82,7 @@ struct hist_entry {
struct list_head head;
} pairs;
struct he_stat stat;
+ struct he_stat *stat_acc;
struct map_symbol ms;
struct thread *thread;
struct comm *comm;