aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/builtin-diff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/builtin-diff.c b/tools/perf/builtin-diff.c
index 66f100d249a8..4d33b55d5584 100644
--- a/tools/perf/builtin-diff.c
+++ b/tools/perf/builtin-diff.c
@@ -18,6 +18,7 @@
18 18
19static char const *input_old = "perf.data.old", 19static char const *input_old = "perf.data.old",
20 *input_new = "perf.data"; 20 *input_new = "perf.data";
21static char diff__default_sort_order[] = "dso,symbol";
21static int force; 22static int force;
22static bool show_displacement; 23static bool show_displacement;
23 24
@@ -220,6 +221,7 @@ static const struct option options[] = {
220 221
221int cmd_diff(int argc, const char **argv, const char *prefix __used) 222int cmd_diff(int argc, const char **argv, const char *prefix __used)
222{ 223{
224 sort_order = diff__default_sort_order;
223 argc = parse_options(argc, argv, options, diff_usage, 0); 225 argc = parse_options(argc, argv, options, diff_usage, 0);
224 if (argc) { 226 if (argc) {
225 if (argc > 2) 227 if (argc > 2)