2 * Copyright (c) 2017-2018 The strace developers.
5 * SPDX-License-Identifier: LGPL-2.1-or-later
8 #ifndef STRACE_TRACE_EVENT_H
9 # define STRACE_TRACE_EVENT_H
11 /* Possible trace event loop states. Returned by next_event() and dispatched by
12 * dispatch_event(). */
14 /* Break the main loop. */
17 /* Call next_event() again. */
20 /* Restart the tracee with signal 0 and call next_event() again. */
24 * For all the events below, current_tcp is set to current tracee's
25 * tcb. All the suggested actions imply that you want to continue
26 * tracing of the current tracee; alternatively, you can detach it.
30 * Syscall entry or exit.
31 * Restart the tracee with signal 0, or with an injected signal number.
36 * Tracee received signal with number WSTOPSIG(*pstatus); signal info
37 * is written to *si. Restart the tracee (with that signal number
38 * if you want to deliver it).
40 TE_SIGNAL_DELIVERY_STOP,
43 * Tracee was killed by a signal with number WTERMSIG(*pstatus).
48 * Tracee was stopped by a signal with number WSTOPSIG(*pstatus).
49 * Restart the tracee with that signal number.
54 * Tracee exited with status WEXITSTATUS(*pstatus).
59 * Tracee is going to perform execve().
60 * Restart the tracee with signal 0.
62 TE_STOP_BEFORE_EXECVE,
65 * Tracee is going to terminate.
66 * Restart the tracee with signal 0.
71 #endif /* !STRACE_TRACE_EVENT_H */