summaryrefslogtreecommitdiff
path: root/tools/perf
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/builtin-record.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c
index e382d93d369..ac989e9ba8f 100644
--- a/tools/perf/builtin-record.c
+++ b/tools/perf/builtin-record.c
@@ -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);