Commit 179033b
perf: Add PERF_EVENT_STATE_EXIT state for events with exited task
Adding new perf event state to indicate that the monitored task has
exited. In this case the event stays alive until the owner task exits
or close the event fd while providing the last data through the read
syscall and ring buffer.
Instead it needs to propagate the error info (monitored task has died)
via poll and read syscalls by returning POLLHUP and 0 respectively.
Signed-off-by: Jiri Olsa <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Cc: Adrian Hunter <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Corey Ashford <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jean Pihet <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>1 parent 61b6768 commit 179033b
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| 272 | + | |
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3600 | 3600 | | |
3601 | 3601 | | |
3602 | 3602 | | |
3603 | | - | |
| 3603 | + | |
| 3604 | + | |
3604 | 3605 | | |
3605 | 3606 | | |
3606 | 3607 | | |
| |||
3630 | 3631 | | |
3631 | 3632 | | |
3632 | 3633 | | |
| 3634 | + | |
| 3635 | + | |
| 3636 | + | |
| 3637 | + | |
3633 | 3638 | | |
3634 | 3639 | | |
3635 | 3640 | | |
| |||
7588 | 7593 | | |
7589 | 7594 | | |
7590 | 7595 | | |
| 7596 | + | |
| 7597 | + | |
| 7598 | + | |
7591 | 7599 | | |
7592 | 7600 | | |
7593 | 7601 | | |
| |||
0 commit comments