Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312289
b: refs/heads/master
c: 300aa94
h: refs/heads/master
i:
  312287: 65c7439
v: v3
  • Loading branch information
David Ahern authored and Arnaldo Carvalho de Melo committed Jun 27, 2012
1 parent f6c63cf commit 9bf2c58
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 08942f6d5d992e9486b07653fd87ea8182a22fa0
refs/heads/master: 300aa941650e98966ad85847527537df5b11a87e
6 changes: 4 additions & 2 deletions trunk/tools/perf/builtin-report.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,12 @@ static int process_read_event(struct perf_tool *tool,
return 0;
}

/* For pipe mode, sample_type is not currently set */
static int perf_report__setup_sample_type(struct perf_report *rep)
{
struct perf_session *self = rep->session;

if (!(self->sample_type & PERF_SAMPLE_CALLCHAIN)) {
if (!self->fd_pipe && !(self->sample_type & PERF_SAMPLE_CALLCHAIN)) {
if (sort__has_parent) {
ui__error("Selected --sort parent, but no "
"callchain data. Did you call "
Expand All @@ -272,7 +273,8 @@ static int perf_report__setup_sample_type(struct perf_report *rep)
}

if (sort__branch_mode == 1) {
if (!(self->sample_type & PERF_SAMPLE_BRANCH_STACK)) {
if (!self->fd_pipe &&
!(self->sample_type & PERF_SAMPLE_BRANCH_STACK)) {
ui__error("Selected -b but no branch data. "
"Did you call perf record without -b?\n");
return -1;
Expand Down

0 comments on commit 9bf2c58

Please sign in to comment.