Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323751
b: refs/heads/master
c: fceda7f
h: refs/heads/master
i:
  323749: d602415
  323747: 759bc93
  323743: 3356d7f
v: v3
  • Loading branch information
David Ahern authored and Arnaldo Carvalho de Melo committed Sep 5, 2012
1 parent cb08309 commit 1718fa1
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 33d6aef5136075930f7e9a05175bf4f772d8428e
refs/heads/master: fceda7feb4a7822feee9662bc64968230d8f37bf
7 changes: 4 additions & 3 deletions trunk/tools/perf/builtin-stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ static int run_perf_stat(int argc __used, const char **argv)

if (forks && (pipe(child_ready_pipe) < 0 || pipe(go_pipe) < 0)) {
perror("failed to create pipes");
exit(1);
return -1;
}

if (forks) {
Expand Down Expand Up @@ -510,7 +510,8 @@ static int run_perf_stat(int argc __used, const char **argv)
}
if (child_pid != -1)
kill(child_pid, SIGTERM);
die("Not all events could be opened.\n");

pr_err("Not all events could be opened.\n");
return -1;
}
counter->supported = true;
Expand Down Expand Up @@ -1189,7 +1190,7 @@ int cmd_stat(int argc, const char **argv, const char *prefix __used)
output = fopen(output_name, mode);
if (!output) {
perror("failed to create output file");
exit(-1);
return -1;
}
clock_gettime(CLOCK_REALTIME, &tm);
fprintf(output, "# started on %s\n", ctime(&tm.tv_sec));
Expand Down

0 comments on commit 1718fa1

Please sign in to comment.