Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323787
b: refs/heads/master
c: 8bf98b8
h: refs/heads/master
i:
  323785: 6bc212d
  323783: 72e944a
v: v3
  • Loading branch information
Irina Tirdea authored and Arnaldo Carvalho de Melo committed Sep 8, 2012
1 parent 3703a11 commit 626149f
Show file tree
Hide file tree
Showing 3 changed files with 8 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: ef34eb4da3eb62a1511592adf7c76d74faca0b14
refs/heads/master: 8bf98b89688c3d7ec071bf26d49761e38d846b47
6 changes: 3 additions & 3 deletions trunk/tools/perf/bench/sched-pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ int bench_sched_pipe(int argc, const char **argv,
* causes error in building environment for perf
*/
int __used ret, wait_stat;
pid_t pid, retpid;
pid_t pid, retpid __used;

argc = parse_options(argc, argv, options,
bench_sched_pipe_usage, 0);

assert(!pipe(pipe_1));
assert(!pipe(pipe_2));
BUG_ON(pipe(pipe_1));
BUG_ON(pipe(pipe_2));

pid = fork();
assert(pid >= 0);
Expand Down
4 changes: 4 additions & 0 deletions trunk/tools/perf/util/include/linux/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,12 @@
#endif

#ifndef BUG_ON
#ifdef NDEBUG
#define BUG_ON(cond) do { if (cond) {} } while (0)
#else
#define BUG_ON(cond) assert(!(cond))
#endif
#endif

/*
* Both need more care to handle endianness
Expand Down

0 comments on commit 626149f

Please sign in to comment.