Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155221
b: refs/heads/master
c: 91b4eae
h: refs/heads/master
i:
  155219: 3e47ef3
v: v3
  • Loading branch information
Frederic Weisbecker authored and Ingo Molnar committed Jul 5, 2009
1 parent f238fcf commit 7c6cfcd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a79f0da80a508448434476b77f9d3d1a469eab67
refs/heads/master: 91b4eaea93f5be95f4477554399680a53aff2343
16 changes: 13 additions & 3 deletions trunk/tools/perf/builtin-report.c
Original file line number Diff line number Diff line change
Expand Up @@ -1684,9 +1684,19 @@ static int __cmd_report(void)

sample_type = perf_header__sample_type();

if (sort__has_parent && !(sample_type & PERF_SAMPLE_CALLCHAIN)) {
fprintf(stderr, "selected --sort parent, but no callchain data\n");
exit(-1);
if (!(sample_type & PERF_SAMPLE_CALLCHAIN)) {
if (sort__has_parent) {
fprintf(stderr, "selected --sort parent, but no"
" callchain data. Did you call"
" perf record without -g?\n");
exit(-1);
}
if (callchain) {
fprintf(stderr, "selected -c but no callchain data."
" Did you call perf record without"
" -g?\n");
exit(-1);
}
}

if (load_kernel() < 0) {
Expand Down

0 comments on commit 7c6cfcd

Please sign in to comment.