 | pinktrace-0.0.5: Haskell bindings to Pink's Tracing Library | Contents | Index |
|
| System.PinkTrace.Event | | Portability | non-portable, requires linux | | Stability | provisional | | Maintainer | alip@exherbo.org |
|
|
|
| Description |
| Pink's event handling
|
|
| Synopsis |
|
|
|
| Documentation |
|
| data Event |
| Constructors | | SysCall | Child has entered/exited a system call.
| | Fork | Child has called fork().
| | VFork | Child has called vfork().
| | Clone | Child has called clone().
| | VForkDone | Child has exited a vfork() call.
| | Exec | Child has called execve().
| | Exit | Child is exiting. (ptrace way, stopped before exit)
|
| Instances | |
|
|
| data ProcessStatus |
|
|
| getProcessStatus ∷ Bool → Bool → ProcessID → IO (Maybe ProcessStatus) |
getProcessStatus blk stopped pid calls waitpid, returning
Just tc, the ProcessStatus for process pid if it is
available, Nothing otherwise. If blk is False, then
WNOHANG is set in the options for waitpid, otherwise not.
If stopped is True, then WUNTRACED is set in the
options for waitpid, otherwise not.
- Note: Because getProcessStatus of System.Posix.Process module doesn't
give information about ptrace events, this is a re-implementation that
gives information about ptrace events.
- Availability: Linux
|
|
| getGroupProcessStatus ∷ Bool → Bool → ProcessGroupID → IO (Maybe (ProcessID, ProcessStatus)) |
getGroupProcessStatus blk stopped pgid calls waitpid,
returning Just (pid, tc), the ProcessID and
ProcessStatus for any process in group pgid if one is
available, Nothing otherwise. If blk is False, then
WNOHANG is set in the options for waitpid, otherwise not.
If stopped is True, then WUNTRACED is set in the
options for waitpid, otherwise not.
- Note: Because getGroupProcessStatus of System.Posix.Process module
doesn't give information about ptrace events, this is a
re-implementation that gives information about ptrace events.
- Availability: Linux
|
|
| getAnyProcessStatus ∷ Bool → Bool → IO (Maybe (ProcessID, ProcessStatus)) |
getAnyProcessStatus blk stopped calls waitpid, returning
Just (pid, tc), the ProcessID and ProcessStatus for any
child process if one is available, Nothing otherwise. If
blk is False, then WNOHANG is set in the options for
waitpid, otherwise not. If stopped is True, then
WUNTRACED is set in the options for waitpid, otherwise not.
- Note: Because getAnyProcessStatus of System.Posix.Process module
doesn't give information about ptrace events, this is a
re-implementation that gives information about ptrace events.
- Availability: Linux
|
|
| Produced by Haddock version 2.6.1 |