Add kconsumerd thread function and sockets
[lttng-tools.git] / liblttsessiondcomm / liblttsessiondcomm.h
index ce85e8292130e34dcb0c0a0fcc1dac016acc93e8..967c77c206c24c400feb090d37da7c108c96dc3f 100644 (file)
 #include <limits.h>
 #include <uuid/uuid.h>
 
+#define LTTNG_RUNDIR                                           "/var/run/lttng"
+
 /* Default unix socket path */
-#define DEFAULT_GLOBAL_CLIENT_UNIX_SOCK                "/tmp/client-ltt-sessiond"
-#define DEFAULT_GLOBAL_APPS_UNIX_SOCK          "/tmp/apps-ltt-sessiond"
+#define DEFAULT_GLOBAL_CLIENT_UNIX_SOCK                LTTNG_RUNDIR "/client-ltt-sessiond"
+#define DEFAULT_GLOBAL_APPS_UNIX_SOCK          LTTNG_RUNDIR "/apps-ltt-sessiond"
 #define DEFAULT_HOME_APPS_UNIX_SOCK                    "%s/.apps-ltt-sessiond"
 #define DEFAULT_HOME_CLIENT_UNIX_SOCK          "%s/.client-ltt-sessiond"
 
+/* Kernel consumer path */
+#define KCONSUMERD_PATH                                                LTTNG_RUNDIR "/kconsumerd"
+#define KCONSUMERD_CMD_SOCK_PATH                       KCONSUMERD_PATH "/command"
+#define KCONSUMERD_ERR_SOCK_PATH                       KCONSUMERD_PATH "/error"
+
 /* Queue size of listen(2) */
 #define MAX_LISTEN 10
 
@@ -45,6 +52,7 @@ enum lttcomm_command_type {
        LTTNG_GET_SUBBUF_NUM_SIZE,
        LTTNG_LIST_MARKERS,
        LTTNG_LIST_SESSIONS,
+       LTTNG_LIST_TRACES,
        LTTNG_LIST_TRACE_EVENTS,
        LTTNG_SETUP_TRACE,
        LTTNG_SET_SOCK_PATH,
@@ -72,6 +80,7 @@ enum lttcomm_return_code {
        LTTCOMM_CREATE_FAIL,    /* Create trace fail */
        LTTCOMM_SESSION_FAIL,   /* Create session fail */
        LTTCOMM_START_FAIL,             /* Start tracing fail */
+       LTTCOMM_STOP_FAIL,              /* Stop tracing fail */
        LTTCOMM_LIST_FAIL,              /* Listing apps fail */
        LTTCOMM_NO_APPS,                /* No traceable application */
        LTTCOMM_NO_SESS,                /* No sessions available */
This page took 0.026135 seconds and 5 git commands to generate.