update README
[lttng-ust.git] / libustcmd / ustcmd.h
CommitLineData
ab33e65c
PP
1#ifndef _USTCMD_H
2#define _USTCMD_H
3
4#include <stdio.h>
5#include <unistd.h>
6#include <getopt.h>
7#include <stdlib.h>
8#include <fcntl.h>
9
10#include "ustcomm.h"
11#include "ustcmd.h"
12
77957c95
PMF
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 */
ab33e65c 16
77957c95
PMF
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 */
ab33e65c 21
77957c95 22#define USTCMD_SOCK_PATH "/tmp/socks/"
ab33e65c 23
77957c95 24/* Channel/marker/state/format string (cmsf) info. structure */
08230db7
PMF
25struct 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) */
77957c95 28 int state; /* State (0 := marker disabled, 1 := marker enabled) */
08230db7 29 char *fs; /* Format string (end of marker_status array if NULL) */
ab33e65c
PP
30};
31
08230db7
PMF
32extern pid_t *ustcmd_get_online_pids(void);
33extern int ustcmd_set_marker_state(const char *, int, pid_t);
34extern int ustcmd_destroy_trace(pid_t);
35extern int ustcmd_setup_and_start(pid_t);
36extern int ustcmd_stop_trace(pid_t);
37extern int ustcmd_start_trace(pid_t);
38extern int ustcmd_free_cmsf(struct marker_status *);
39extern unsigned int ustcmd_count_nl(const char *);
40extern int ustcmd_send_cmd(const char *, pid_t, char **);
41extern int ustcmd_get_cmsf(struct marker_status **, pid_t);
ab33e65c 42
77957c95 43#endif /* _USTCMD_H */
This page took 0.024675 seconds and 4 git commands to generate.