1 typedef enum Event_type Event_type;
16 EVENT_NEW, /* in this case, proc is NULL */
20 typedef struct Process Process;
21 typedef struct Event Event;
26 int ret_val; /* EVENT_EXIT */
27 int signum; /* EVENT_SIGNAL, EVENT_EXIT_SIGNAL */
28 int sysnum; /* EVENT_SYSCALL, EVENT_SYSRET */
29 void * brk_addr; /* EVENT_BREAKPOINT */
30 int newpid; /* EVENT_CLONE, EVENT_NEW */
34 typedef void (*callback_func) (Event *);
36 extern void ltrace_init(int argc, char **argv);
37 extern void ltrace_add_callback(callback_func f, Event_type type);
38 extern void ltrace_main(void);