Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191267
b: refs/heads/master
c: 2c9faa0
h: refs/heads/master
i:
  191265: d17b7b5
  191263: 81def82
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed May 2, 2010
1 parent 7fdb21d commit 1d17ced
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 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: 454c407ec17a0c63e4023ac0877d687945a7df4a
refs/heads/master: 2c9faa060064343a4a0b16f5b77f3c61d1d17e23
15 changes: 9 additions & 6 deletions trunk/tools/perf/builtin-record.c
Original file line number Diff line number Diff line change
Expand Up @@ -666,12 +666,15 @@ static int __cmd_record(int argc, const char **argv)
nr_counters,
process_synthesized_event,
session);
if (err <= 0) {
pr_err("Couldn't record tracing data.\n");
return err;
}

advance_output(err);
/*
* FIXME err <= 0 here actually means that there were no tracepoints
* so its not really an error, just that we don't need to synthesize
* anything.
* We really have to return this more properly and also propagate
* errors that now are calling die()
*/
if (err > 0)
advance_output(err);
}

machine = perf_session__find_host_machine(session);
Expand Down

0 comments on commit 1d17ced

Please sign in to comment.