diff options
author | Namhyung Kim <namhyung@kernel.org> | 2014-03-02 20:59:57 -0500 |
---|---|---|
committer | Jiri Olsa <jolsa@kernel.org> | 2014-05-21 05:45:33 -0400 |
commit | bc18b7f2e3ca09b360b26c25a7541ba6f170111b (patch) | |
tree | 69fffa9b2913a8650a493dba72bf4af6bb7fb7cd /tools/perf/util/hist.h | |
parent | 6480c56130ba073df84d57d61062ec4118b10bbe (diff) |
perf tools: Add ->cmp(), ->collapse() and ->sort() to perf_hpp_fmt
Those function pointers will be used to sort report output based on
the selected fields. This is a preparation of later change.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Ingo Molnar <mingo@kernel.org>
Link: http://lkml.kernel.org/r/1400480762-22852-2-git-send-email-namhyung@kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Diffstat (limited to 'tools/perf/util/hist.h')
-rw-r--r-- | tools/perf/util/hist.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h index 38c3e874c164..36dbe00e3cc8 100644 --- a/tools/perf/util/hist.h +++ b/tools/perf/util/hist.h | |||
@@ -160,6 +160,9 @@ struct perf_hpp_fmt { | |||
160 | struct hist_entry *he); | 160 | struct hist_entry *he); |
161 | int (*entry)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, | 161 | int (*entry)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, |
162 | struct hist_entry *he); | 162 | struct hist_entry *he); |
163 | int64_t (*cmp)(struct hist_entry *a, struct hist_entry *b); | ||
164 | int64_t (*collapse)(struct hist_entry *a, struct hist_entry *b); | ||
165 | int64_t (*sort)(struct hist_entry *a, struct hist_entry *b); | ||
163 | 166 | ||
164 | struct list_head list; | 167 | struct list_head list; |
165 | }; | 168 | }; |