#ifndef _LTTNG_H
#define _LTTNG_H
-#include <asm/types.h>
-#include <sys/types.h>
-#include <stdint.h>
#include <limits.h>
+#include <stdint.h>
+#include <sys/types.h>
/* Default unix group name for tracing. */
#define LTTNG_DEFAULT_TRACING_GROUP "tracing"
LTTNG_EVENT_PROBE,
LTTNG_EVENT_FUNCTION,
LTTNG_EVENT_FUNCTION_ENTRY,
+ LTTNG_EVENT_NOOP,
+ LTTNG_EVENT_SYSCALLS,
};
/*
*/
extern const char *lttng_get_readable_code(int code);
+/*
+ * This call permits to register an "outside consumer" to a session and a lttng
+ * domain. No consumer will be spawned and all fds/commands will go through the
+ * socket path given (socket_path).
+ *
+ * NOTE: At the moment, if you use the liblttngkconsumerd, you can only use the
+ * command socket. The error socket is not supported yet for roaming consumers.
+ */
+extern int lttng_register_consumer(struct lttng_handle *handle,
+ const char *socket_path);
+
/*
* Start tracing for *all* registered trace (kernel and user-space).
*/