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_destroy_trace(pid_t
);
35 extern int ustcmd_setup_and_start(pid_t
);
36 extern int ustcmd_stop_trace(pid_t
);
37 extern int ustcmd_start_trace(pid_t
);
38 extern int ustcmd_free_cmsf(struct marker_status
*);
39 extern unsigned int ustcmd_count_nl(const char *);
40 extern int ustcmd_send_cmd(const char *, pid_t
, char **);
41 extern int ustcmd_get_cmsf(struct marker_status
**, pid_t
);
43 #endif /* _USTCMD_H */
This page took 0.029709 seconds and 4 git commands to generate.