perf report: Make --sort comm,dso,symbol the default
authorPekka Enberg <penberg@cs.helsinki.fi>
Wed, 5 Aug 2009 10:25:21 +0000 (13:25 +0300)
committerIngo Molnar <mingo@elte.hu>
Wed, 5 Aug 2009 11:16:04 +0000 (13:16 +0200)
If you're doing performance testing, you're interested in the
symbols anyway so lets make "--sort comm,dso,symbol" the
default sort option.

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: acme@redhat.com
LKML-Reference: <1249467921-10450-1-git-send-email-penberg@cs.helsinki.fi>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-report.c

index ce4f28645e6438069c1b20a33c2a13f9cb18d7ce..8cb58d68a0061de28997216760c2e9626a9dbf74 100644 (file)
@@ -31,7 +31,7 @@
 static char            const *input_name = "perf.data";
 static char            *vmlinux = NULL;
 
-static char            default_sort_order[] = "comm,dso";
+static char            default_sort_order[] = "comm,dso,symbol";
 static char            *sort_order = default_sort_order;
 static char            *dso_list_str, *comm_list_str, *sym_list_str,
                        *col_width_list_str;
@@ -1424,7 +1424,7 @@ print_entries:
        if (sort_order == default_sort_order &&
                        parent_pattern == default_parent_pattern) {
                fprintf(fp, "#\n");
-               fprintf(fp, "# (For more details, try: perf report --sort comm,dso,symbol)\n");
+               fprintf(fp, "# (For a higher level overview, try: perf report --sort comm,dso)\n");
                fprintf(fp, "#\n");
        }
        fprintf(fp, "\n");