Commit 5fe7b9b4 authored by Jiri Olsa's avatar Jiri Olsa Committed by Arnaldo Carvalho de Melo

perf tools: Make several sorting functions global

Will be used from external places in the upcoming c2c patch series.
Signed-off-by: default avatarJiri 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.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent a76490e4
...@@ -867,7 +867,7 @@ struct sort_entry sort_cycles = { ...@@ -867,7 +867,7 @@ struct sort_entry sort_cycles = {
}; };
/* --sort daddr_sym */ /* --sort daddr_sym */
static int64_t int64_t
sort__daddr_cmp(struct hist_entry *left, struct hist_entry *right) sort__daddr_cmp(struct hist_entry *left, struct hist_entry *right)
{ {
uint64_t l = 0, r = 0; uint64_t l = 0, r = 0;
...@@ -896,7 +896,7 @@ static int hist_entry__daddr_snprintf(struct hist_entry *he, char *bf, ...@@ -896,7 +896,7 @@ static int hist_entry__daddr_snprintf(struct hist_entry *he, char *bf,
width); width);
} }
static int64_t int64_t
sort__iaddr_cmp(struct hist_entry *left, struct hist_entry *right) sort__iaddr_cmp(struct hist_entry *left, struct hist_entry *right)
{ {
uint64_t l = 0, r = 0; uint64_t l = 0, r = 0;
...@@ -1062,7 +1062,7 @@ static int hist_entry__snoop_snprintf(struct hist_entry *he, char *bf, ...@@ -1062,7 +1062,7 @@ static int hist_entry__snoop_snprintf(struct hist_entry *he, char *bf,
return repsep_snprintf(bf, size, "%-*s", width, out); return repsep_snprintf(bf, size, "%-*s", width, out);
} }
static int64_t int64_t
sort__dcacheline_cmp(struct hist_entry *left, struct hist_entry *right) sort__dcacheline_cmp(struct hist_entry *left, struct hist_entry *right)
{ {
u64 l, r; u64 l, r;
......
...@@ -274,4 +274,10 @@ int sort_dimension__add(struct perf_hpp_list *list, const char *tok, ...@@ -274,4 +274,10 @@ int sort_dimension__add(struct perf_hpp_list *list, const char *tok,
struct perf_evlist *evlist, struct perf_evlist *evlist,
int level); int level);
int output_field_add(struct perf_hpp_list *list, char *tok); 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 */ #endif /* __PERF_SORT_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment