13 #define USTCMD_ERR_CONN 1 /* Process connection error */
14 #define USTCMD_ERR_ARG 2 /* Invalid function argument */
15 #define USTCMD_ERR_GEN 3 /* General ustcmd error */
17 #define USTCMD_MS_CHR_OFF '0' /* Marker state 'on' character */
18 #define USTCMD_MS_CHR_ON '1' /* Marker state 'on' character */
19 #define USTCMD_MS_OFF 0 /* Marker state 'on' value */
20 #define USTCMD_MS_ON 1 /* Marker state 'on' value */
22 #define USTCMD_SOCK_PATH "/tmp/socks/"
24 /* Channel/marker/state/format string (cmsf) info. structure */
25 struct marker_status
{
26 char *channel
; /* Channel name (end of marker_status array if NULL) */
27 char *marker
; /* Marker name (end of marker_status array if NULL) */
28 int state
; /* State (0 := marker disabled, 1 := marker enabled) */
29 char *fs
; /* Format string (end of marker_status array if NULL) */
32 extern pid_t
*ustcmd_get_online_pids(void);
33 extern int ustcmd_set_marker_state(const char *, int, pid_t
);
34 extern int ustcmd_set_subbuf_size(const char *, pid_t
);
35 extern int ustcmd_set_subbuf_num(const char *, pid_t
);
36 extern int ustcmd_destroy_trace(pid_t
);
37 extern int ustcmd_setup_and_start(pid_t
);
38 extern int ustcmd_stop_trace(pid_t
);
39 extern int ustcmd_create_trace(pid_t
);
40 extern int ustcmd_start_trace(pid_t
);
41 extern int ustcmd_alloc_trace(pid_t
);
42 extern int ustcmd_free_cmsf(struct marker_status
*);
43 extern unsigned int ustcmd_count_nl(const char *);
44 extern int ustcmd_send_cmd(const char *, pid_t
, char **);
45 extern int ustcmd_get_cmsf(struct marker_status
**, pid_t
);
47 #endif /* _USTCMD_H */
This page took 0.031979 seconds and 5 git commands to generate.