perf tools: Consolidate management of default sort orders
authorNamhyung Kim <[email protected]>
Tue, 18 Mar 2014 02:31:39 +0000 (11:31 +0900)
committerJiri Olsa <[email protected]>
Wed, 21 May 2014 09:45:35 +0000 (11:45 +0200)
commit512ae1bd6acb811c72e44e2540099eccd31f773d
treedce8f54594f284e88b113ffd60584869dcb32479
parenta2ce067e55e328f1a6fe3dddf77a173381ffdfe1
perf tools: Consolidate management of default sort orders

The perf uses different default sort orders for different use-cases,
and this was scattered throughout the code.  Add get_default_sort_
order() function to handle this and change initial value of sort_order
to NULL to distinguish it from user-given one.

Signed-off-by: Namhyung Kim <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Jiri Olsa <[email protected]>
tools/perf/builtin-diff.c
tools/perf/builtin-report.c
tools/perf/builtin-top.c
tools/perf/util/sort.c
tools/perf/util/sort.h