diff options
author | Jiri Olsa <jolsa@kernel.org> | 2016-09-22 17:36:34 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-09-22 13:08:57 -0300 |
commit | 5fe7b9b47c646dbe8501378eb3684ccd802d6d25 (patch) | |
tree | d8fb84566e070fd723813b793db0fa3c72046a92 /tools/perf/util/sort.h | |
parent | a76490e4cd5d971d6f6c22aeed0625bb352d2a08 (diff) | |
download | linux-stable-5fe7b9b47c646dbe8501378eb3684ccd802d6d25.tar.gz linux-stable-5fe7b9b47c646dbe8501378eb3684ccd802d6d25.tar.bz2 linux-stable-5fe7b9b47c646dbe8501378eb3684ccd802d6d25.zip |
perf tools: Make several sorting functions global
Will be used from external places in the upcoming c2c patch series.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Joe Mario <jmario@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1474558645-19956-7-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/sort.h')
-rw-r--r-- | tools/perf/util/sort.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/util/sort.h b/tools/perf/util/sort.h index e93b0fa43704..099c97557d33 100644 --- a/tools/perf/util/sort.h +++ b/tools/perf/util/sort.h @@ -274,4 +274,10 @@ int sort_dimension__add(struct perf_hpp_list *list, const char *tok, struct perf_evlist *evlist, int level); int output_field_add(struct perf_hpp_list *list, char *tok); +int64_t +sort__iaddr_cmp(struct hist_entry *left, struct hist_entry *right); +int64_t +sort__daddr_cmp(struct hist_entry *left, struct hist_entry *right); +int64_t +sort__dcacheline_cmp(struct hist_entry *left, struct hist_entry *right); #endif /* __PERF_SORT_H */ |