Skip to content

Commit e53f612

Browse files
author
Ingo Molnar
committed
Merge tag 'perf-urgent-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
Pull perf/urgent fix from Arnaldo Carvalho de Melo: - Fix 'perf diff' initialization, calling the recently added hists__init() function so that extra space is allocated per perf_evsel for the hists storage that it also uses, just like report and top. (Kan Liang) Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
2 parents f114040 + 9ab1f50 commit e53f612

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/perf/builtin-diff.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,6 +1142,11 @@ static int data_init(int argc, const char **argv)
11421142

11431143
int cmd_diff(int argc, const char **argv, const char *prefix __maybe_unused)
11441144
{
1145+
int ret = hists__init();
1146+
1147+
if (ret < 0)
1148+
return ret;
1149+
11451150
perf_config(perf_default_config, NULL);
11461151

11471152
argc = parse_options(argc, argv, options, diff_usage, 0);

0 commit comments

Comments
 (0)