diff options
author | Jiri Olsa <[email protected]> | 2014-09-12 13:18:26 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2014-09-24 14:48:11 +0200 |
commit | dc633982ff3f4fd74cdc11b5a6ae53d39a0b2451 (patch) | |
tree | 756b335d9cdf75ee9e3f4dd4bdfc21e05518f361 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 4f7cf3a992cc0c15c97d2e34ea08a1cb7faace39 (diff) |
perf: Do not POLLHUP event if it has children
Currently we return POLLHUP in event polling if the monitored
process is done, but we didn't consider possible children,
that might be still running and producing data.
Before returning POLLHUP making sure that:
1) the monitored task has exited and that
2) we don't have any children to monitor
Also adding parent wakeup when the child event is gone.
Suggested-by: Peter Zijlstra <[email protected]>
Signed-off-by: Jiri Olsa <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Linus Torvalds <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions