aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/ui
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung.kim@lge.com>2013-04-01 07:35:20 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-05-28 09:23:53 -0400
commit55369fc179b0572d0b4a06a9be1d2779b3ac22e0 (patch)
tree629f53b617814ebfcb517a34324115efe7026d16 /tools/perf/ui
parentded19d57a621e92a27a05972949ad3230f84d0b0 (diff)
perf sort: Introduce sort__mode variable
It's used for determining current sort mode which can be one of NORMAL, BRANCH and new MEMORY. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Andi Kleen <andi@firstfloor.org> Cc: David Ahern <dsahern@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/1364816125-12212-5-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui')
-rw-r--r--tools/perf/ui/browsers/hists.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c
index d88a2d0acb6d..cad8e37f05d9 100644
--- a/tools/perf/ui/browsers/hists.c
+++ b/tools/perf/ui/browsers/hists.c
@@ -1155,7 +1155,7 @@ static struct hist_browser *hist_browser__new(struct hists *hists)
1155 browser->b.refresh = hist_browser__refresh; 1155 browser->b.refresh = hist_browser__refresh;
1156 browser->b.seek = ui_browser__hists_seek; 1156 browser->b.seek = ui_browser__hists_seek;
1157 browser->b.use_navkeypressed = true; 1157 browser->b.use_navkeypressed = true;
1158 if (sort__branch_mode == 1) 1158 if (sort__mode == SORT_MODE__BRANCH)
1159 browser->has_symbols = sort_sym_from.list.next != NULL; 1159 browser->has_symbols = sort_sym_from.list.next != NULL;
1160 else 1160 else
1161 browser->has_symbols = sort_sym.list.next != NULL; 1161 browser->has_symbols = sort_sym.list.next != NULL;
@@ -1488,7 +1488,7 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events,
1488 if (!browser->has_symbols) 1488 if (!browser->has_symbols)
1489 goto add_exit_option; 1489 goto add_exit_option;
1490 1490
1491 if (sort__branch_mode == 1) { 1491 if (sort__mode == SORT_MODE__BRANCH) {
1492 bi = browser->he_selection->branch_info; 1492 bi = browser->he_selection->branch_info;
1493 if (browser->selection != NULL && 1493 if (browser->selection != NULL &&
1494 bi && 1494 bi &&