]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4372136497238d8517bac419523218129040df6b
treedce8f54594f284e88b113ffd60584869dcb32479
parent5b9f62e655e8c1f9c005b83d4da44cc9bce1d67d
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