|
@@ -279,10 +279,11 @@ static int report__setup_sample_type(struct report *rep)
|
|
|
"'perf record' without -g?\n");
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
- if (symbol_conf.use_callchain) {
|
|
|
- ui__error("Selected -g or --branch-history but no "
|
|
|
- "callchain data. Did\n"
|
|
|
- "you call 'perf record' without -g?\n");
|
|
|
+ if (symbol_conf.use_callchain &&
|
|
|
+ !symbol_conf.show_branchflag_count) {
|
|
|
+ ui__error("Selected -g or --branch-history.\n"
|
|
|
+ "But no callchain or branch data.\n"
|
|
|
+ "Did you call 'perf record' without -g or -b?\n");
|
|
|
return -1;
|
|
|
}
|
|
|
} else if (!callchain_param.enabled &&
|
|
@@ -417,7 +418,8 @@ static int perf_evlist__tty_browse_hists(struct perf_evlist *evlist,
|
|
|
|
|
|
hists__fprintf_nr_sample_events(hists, rep, evname, stdout);
|
|
|
hists__fprintf(hists, !quiet, 0, 0, rep->min_percent, stdout,
|
|
|
- symbol_conf.use_callchain);
|
|
|
+ symbol_conf.use_callchain ||
|
|
|
+ symbol_conf.show_branchflag_count);
|
|
|
fprintf(stdout, "\n\n");
|
|
|
}
|
|
|
|