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>
Showing
- tools/perf/builtin-diff.c 2 additions, 2 deletionstools/perf/builtin-diff.c
- tools/perf/builtin-report.c 0 additions, 18 deletionstools/perf/builtin-report.c
- tools/perf/builtin-top.c 1 addition, 2 deletionstools/perf/builtin-top.c
- tools/perf/util/sort.c 26 additions, 2 deletionstools/perf/util/sort.c
- tools/perf/util/sort.h 2 additions, 0 deletionstools/perf/util/sort.h
Loading
Please register or sign in to comment