Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jiri Olsa and committed by
Arnaldo Carvalho de Melo
5fe7b9b4 a76490e4

+9 -3
+3 -3
tools/perf/util/sort.c
··· 867 867 }; 868 868 869 869 /* --sort daddr_sym */ 870 - static int64_t 870 + int64_t 871 871 sort__daddr_cmp(struct hist_entry *left, struct hist_entry *right) 872 872 { 873 873 uint64_t l = 0, r = 0; ··· 896 896 width); 897 897 } 898 898 899 - static int64_t 899 + int64_t 900 900 sort__iaddr_cmp(struct hist_entry *left, struct hist_entry *right) 901 901 { 902 902 uint64_t l = 0, r = 0; ··· 1062 1062 return repsep_snprintf(bf, size, "%-*s", width, out); 1063 1063 } 1064 1064 1065 - static int64_t 1065 + int64_t 1066 1066 sort__dcacheline_cmp(struct hist_entry *left, struct hist_entry *right) 1067 1067 { 1068 1068 u64 l, r;
+6
tools/perf/util/sort.h
··· 274 274 struct perf_evlist *evlist, 275 275 int level); 276 276 int output_field_add(struct perf_hpp_list *list, char *tok); 277 + int64_t 278 + sort__iaddr_cmp(struct hist_entry *left, struct hist_entry *right); 279 + int64_t 280 + sort__daddr_cmp(struct hist_entry *left, struct hist_entry *right); 281 + int64_t 282 + sort__dcacheline_cmp(struct hist_entry *left, struct hist_entry *right); 277 283 #endif /* __PERF_SORT_H */