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

perf tools: Make output_field_add and sort_dimension__add 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-6-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
a76490e4 bcf98740

+8 -4
+4 -4
tools/perf/util/sort.c
··· 2308 2308 return __hpp_dimension__add_output(&perf_hpp_list, &hpp_sort_dimensions[col]); 2309 2309 } 2310 2310 2311 - static int sort_dimension__add(struct perf_hpp_list *list, const char *tok, 2312 - struct perf_evlist *evlist, 2313 - int level) 2311 + int sort_dimension__add(struct perf_hpp_list *list, const char *tok, 2312 + struct perf_evlist *evlist, 2313 + int level) 2314 2314 { 2315 2315 unsigned int i; 2316 2316 ··· 2685 2685 } 2686 2686 } 2687 2687 2688 - static int output_field_add(struct perf_hpp_list *list, char *tok) 2688 + int output_field_add(struct perf_hpp_list *list, char *tok) 2689 2689 { 2690 2690 unsigned int i; 2691 2691
+4
tools/perf/util/sort.h
··· 270 270 271 271 int hpp_dimension__add_output(unsigned col); 272 272 void reset_dimensions(void); 273 + int sort_dimension__add(struct perf_hpp_list *list, const char *tok, 274 + struct perf_evlist *evlist, 275 + int level); 276 + int output_field_add(struct perf_hpp_list *list, char *tok); 273 277 #endif /* __PERF_SORT_H */