diff options
author | Hitoshi Mitake <[email protected]> | 2009-11-09 12:31:05 +0900 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-11-09 08:14:30 +0100 |
commit | 5ff0cfc67f00fe0feaa1da0b2359232ea4aa0ee7 (patch) | |
tree | f432370dfa63a7a3b63354d670128764eff534a1 /tools/perf/scripts/python/check-perf-trace.py | |
parent | bfde82ef51e3ea6ab8634d0fdbf5adcdd1b429cb (diff) |
perf bench: Fix bench/sched-pipe.c to wait for child process
Ingo reported this small 'perf bench sched pipe' output problem:
| $ ./perf bench sched pipe
| (executing 1000000 pipe operations between two tasks)
|
| Total time:4.898 sec
| $ 4.898586 usecs/op
| 204140 ops/sec
|
| the shell prompt came back before the usecs/op and ops/sec line
| was printed. Process teardown race, lack of wait() or so?
This caused by lack of calling waitpid() by parent process,
so I added it.
Signed-off-by: Hitoshi Mitake <[email protected]>
Cc: Rusty Russell <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Jiri Kosina <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions