perf tools: Consolidate management of default sort orders
authorNamhyung Kim <namhyung@kernel.org>
Tue, 18 Mar 2014 02:31:39 +0000 (11:31 +0900)
committerJiri Olsa <jolsa@kernel.org>
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 <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1400480762-22852-10-git-send-email-namhyung@kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
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