diff options
author | Ingo Molnar <mingo@kernel.org> | 2014-05-22 05:37:40 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-05-22 05:37:40 -0400 |
commit | e450f90e8c7d0bf70519223c1b848446ae63f313 (patch) | |
tree | 078bfe88e5c3fbe397c9ca0d4d8ab2e0ff63979d /tools/perf/builtin-diff.c | |
parent | 6480c56130ba073df84d57d61062ec4118b10bbe (diff) | |
parent | eca8183699964579ca8a0b8d116bd1f4da0136f7 (diff) |
Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf into perf/core
Pull perf/core improvements and fixes from Jiri Olsa:
* Android related fixes for pager and map dso resolving (Michael Lentine)
* Add -F option for specifying output fields (Namhyung Kim)
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/builtin-diff.c')
-rw-r--r-- | tools/perf/builtin-diff.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/perf/builtin-diff.c b/tools/perf/builtin-diff.c index f3b10dcf6838..8bff543acaab 100644 --- a/tools/perf/builtin-diff.c +++ b/tools/perf/builtin-diff.c | |||
@@ -60,7 +60,6 @@ static int data__files_cnt; | |||
60 | #define data__for_each_file(i, d) data__for_each_file_start(i, d, 0) | 60 | #define data__for_each_file(i, d) data__for_each_file_start(i, d, 0) |
61 | #define data__for_each_file_new(i, d) data__for_each_file_start(i, d, 1) | 61 | #define data__for_each_file_new(i, d) data__for_each_file_start(i, d, 1) |
62 | 62 | ||
63 | static char diff__default_sort_order[] = "dso,symbol"; | ||
64 | static bool force; | 63 | static bool force; |
65 | static bool show_period; | 64 | static bool show_period; |
66 | static bool show_formula; | 65 | static bool show_formula; |
@@ -741,7 +740,8 @@ static const struct option options[] = { | |||
741 | OPT_STRING('S', "symbols", &symbol_conf.sym_list_str, "symbol[,symbol...]", | 740 | OPT_STRING('S', "symbols", &symbol_conf.sym_list_str, "symbol[,symbol...]", |
742 | "only consider these symbols"), | 741 | "only consider these symbols"), |
743 | OPT_STRING('s', "sort", &sort_order, "key[,key2...]", | 742 | OPT_STRING('s', "sort", &sort_order, "key[,key2...]", |
744 | "sort by key(s): pid, comm, dso, symbol, parent"), | 743 | "sort by key(s): pid, comm, dso, symbol, parent, cpu, srcline, ..." |
744 | " Please refer the man page for the complete list."), | ||
745 | OPT_STRING('t', "field-separator", &symbol_conf.field_sep, "separator", | 745 | OPT_STRING('t', "field-separator", &symbol_conf.field_sep, "separator", |
746 | "separator for columns, no spaces will be added between " | 746 | "separator for columns, no spaces will be added between " |
747 | "columns '.' is reserved."), | 747 | "columns '.' is reserved."), |
@@ -1141,7 +1141,6 @@ int cmd_diff(int argc, const char **argv, const char *prefix __maybe_unused) | |||
1141 | { | 1141 | { |
1142 | perf_config(perf_default_config, NULL); | 1142 | perf_config(perf_default_config, NULL); |
1143 | 1143 | ||
1144 | sort_order = diff__default_sort_order; | ||
1145 | argc = parse_options(argc, argv, options, diff_usage, 0); | 1144 | argc = parse_options(argc, argv, options, diff_usage, 0); |
1146 | 1145 | ||
1147 | if (symbol__init() < 0) | 1146 | if (symbol__init() < 0) |
@@ -1152,6 +1151,8 @@ int cmd_diff(int argc, const char **argv, const char *prefix __maybe_unused) | |||
1152 | 1151 | ||
1153 | ui_init(); | 1152 | ui_init(); |
1154 | 1153 | ||
1154 | sort__mode = SORT_MODE__DIFF; | ||
1155 | |||
1155 | if (setup_sorting() < 0) | 1156 | if (setup_sorting() < 0) |
1156 | usage_with_options(diff_usage, options); | 1157 | usage_with_options(diff_usage, options); |
1157 | 1158 | ||