Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205268
b: refs/heads/master
c: 0f2c3de
h: refs/heads/master
v: v3
  • Loading branch information
Andy Isaacson authored and Arnaldo Carvalho de Melo committed Jun 17, 2010
1 parent f8d3f83 commit 71bbf69
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: 84c104ad429c8a474b93dd374815d1c238032fa8
refs/heads/master: 0f2c3de2ba110626515234d5d584fb1b0c0749a2
6 changes: 4 additions & 2 deletions trunk/tools/perf/util/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ static int perf_session__open(struct perf_session *self, bool force)

self->fd = open(self->filename, O_RDONLY);
if (self->fd < 0) {
pr_err("failed to open file: %s", self->filename);
if (!strcmp(self->filename, "perf.data"))
int err = errno;

pr_err("failed to open %s: %s", self->filename, strerror(err));
if (err == ENOENT && !strcmp(self->filename, "perf.data"))
pr_err(" (try 'perf record' first)");
pr_err("\n");
return -errno;
Expand Down

0 comments on commit 71bbf69

Please sign in to comment.