summaryrefslogtreecommitdiff
path: root/tools/perf/builtin-report.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung.kim@lge.com>2013-04-03 21:26:11 +0900
committerChanho Park <chanho61.park@samsung.com>2014-08-08 14:35:31 +0900
commit4ad78359872a3a797f3de39706374047cb341fab (patch)
tree390c21516020adcca5667b618a4ee62dfbc0db86 /tools/perf/builtin-report.c
parentf6e356a869c3ec97a041dcac6421d4622c795ed9 (diff)
downloadlinux-3.10-4ad78359872a3a797f3de39706374047cb341fab.tar.gz
linux-3.10-4ad78359872a3a797f3de39706374047cb341fab.tar.bz2
linux-3.10-4ad78359872a3a797f3de39706374047cb341fab.zip
perf sort: Separate out memory-specific sort keys
Since they're used only for perf mem, separate out them to a different dimension so that normal user cannot access them by any chance. For global/local weights, I'm not entirely sure to place them into the memory dimension. But it's the only user at this time. 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/1364991979-3008-3-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r--tools/perf/builtin-report.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index c877982a64d..669405c9b8a 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -871,6 +871,8 @@ repeat:
fprintf(stderr, "branch and mem mode incompatible\n");
goto error;
}
+ sort__mode = SORT_MODE__MEMORY;
+
/*
* if no sort_order is provided, then specify
* branch-mode specific order