diff options
Diffstat (limited to 'tools/perf/builtin-diff.c')
| -rw-r--r-- | tools/perf/builtin-diff.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/perf/builtin-diff.c b/tools/perf/builtin-diff.c index 0d528018ffb8..67328d106994 100644 --- a/tools/perf/builtin-diff.c +++ b/tools/perf/builtin-diff.c | |||
| @@ -21,8 +21,6 @@ static char const *input_old = "perf.data.old", | |||
| 21 | static int force; | 21 | static int force; |
| 22 | static bool show_percent; | 22 | static bool show_percent; |
| 23 | 23 | ||
| 24 | struct symbol_conf symbol_conf; | ||
| 25 | |||
| 26 | static int perf_session__add_hist_entry(struct perf_session *self, | 24 | static int perf_session__add_hist_entry(struct perf_session *self, |
| 27 | struct addr_location *al, u64 count) | 25 | struct addr_location *al, u64 count) |
| 28 | { | 26 | { |
| @@ -226,8 +224,8 @@ static int __cmd_diff(void) | |||
| 226 | int ret, i; | 224 | int ret, i; |
| 227 | struct perf_session *session[2]; | 225 | struct perf_session *session[2]; |
| 228 | 226 | ||
| 229 | session[0] = perf_session__new(input_old, O_RDONLY, force, &symbol_conf); | 227 | session[0] = perf_session__new(input_old, O_RDONLY, force); |
| 230 | session[1] = perf_session__new(input_new, O_RDONLY, force, &symbol_conf); | 228 | session[1] = perf_session__new(input_new, O_RDONLY, force); |
| 231 | if (session[0] == NULL || session[1] == NULL) | 229 | if (session[0] == NULL || session[1] == NULL) |
| 232 | return -ENOMEM; | 230 | return -ENOMEM; |
| 233 | 231 | ||
| @@ -267,7 +265,7 @@ static const struct option options[] = { | |||
| 267 | 265 | ||
| 268 | int cmd_diff(int argc, const char **argv, const char *prefix __used) | 266 | int cmd_diff(int argc, const char **argv, const char *prefix __used) |
| 269 | { | 267 | { |
| 270 | if (symbol__init(&symbol_conf) < 0) | 268 | if (symbol__init() < 0) |
| 271 | return -1; | 269 | return -1; |
| 272 | 270 | ||
| 273 | setup_sorting(diff_usage, options); | 271 | setup_sorting(diff_usage, options); |
