|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.sys.ptrace.Ptrace
public class Ptrace
Trace a process.
Field Summary | |
---|---|
static long |
OPTION_CLONE
Return the bitmask for enabling clone tracing. |
static long |
OPTION_EXEC
Return the bitmask for enabling exec tracing. |
static long |
OPTION_EXIT
Return the bitmask for enabling exit tracing. |
static long |
OPTION_FORK
Return the bitmask for enabling fork tracing. |
static long |
OPTION_SYSGOOD
Return the bitmask for enabling SYSGOOD(?} tracing. |
Constructor Summary | |
---|---|
Ptrace()
|
Method Summary | |
---|---|
static void |
attach(ProcessIdentifier pid)
Attach to the process specified by PID. |
static void |
cont(ProcessIdentifier pid,
Signal signal)
Continue the process specified by PID, if SIG is non-zero, deliver the signal. |
static void |
detach(ProcessIdentifier pid,
Signal signal)
Detach from the process specified by PID. |
static long |
getEventMsg(ProcessIdentifier pid)
Fetch the auxilary information associated with PID's last WAIT event. |
static void |
setOptions(ProcessIdentifier pid,
long options)
Set PID's trace options. |
static void |
singleStep(ProcessIdentifier pid,
Signal signal)
Single-step (instruction step) the process specified by PID, if SIG is non-zero, deliver the signal. |
static void |
sysCall(ProcessIdentifier pid,
Signal signal)
Continue the process specified by PID, stopping when there is a system-call; if SIG is non-zero deliver the signal. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long OPTION_CLONE
public static final long OPTION_FORK
public static final long OPTION_EXIT
public static final long OPTION_SYSGOOD
public static final long OPTION_EXEC
Constructor Detail |
---|
public Ptrace()
Method Detail |
---|
public static void attach(ProcessIdentifier pid)
public static void detach(ProcessIdentifier pid, Signal signal)
public static void singleStep(ProcessIdentifier pid, Signal signal)
public static void cont(ProcessIdentifier pid, Signal signal)
public static void sysCall(ProcessIdentifier pid, Signal signal)
public static long getEventMsg(ProcessIdentifier pid)
public static void setOptions(ProcessIdentifier pid, long options)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |