#include <string.h>
#include <unistd.h>
-#include <common/sessiond-comm/sessiond-comm.h>
-#include <common/lttngerr.h>
#include <common/common.h>
#include <common/defaults.h>
+#include <common/sessiond-comm/sessiond-comm.h>
#include <lttng/lttng.h>
/* Socket to session daemon for communication */
switch (src->type) {
case LTTNG_DOMAIN_KERNEL:
case LTTNG_DOMAIN_UST:
+ /*
case LTTNG_DOMAIN_UST_EXEC_NAME:
case LTTNG_DOMAIN_UST_PID:
case LTTNG_DOMAIN_UST_PID_FOLLOW_CHILDREN:
+ */
memcpy(dst, src, sizeof(struct lttng_domain));
break;
default:
/*
* Ask the session daemon a specific command and put the data into buf.
*
- * Return size of data (only payload, not header).
+ * Return size of data (only payload, not header) or a negative error code.
*/
static int ask_sessiond(struct lttcomm_session_msg *lsm, void **buf)
{
/*
* Add context to event or/and channel.
+ *
+ * Returns the size of the returned payload data or a negative error code.
*/
int lttng_add_context(struct lttng_handle *handle,
struct lttng_event_context *ctx, const char *event_name,
}
/*
- * lttng_calibrate
+ * Returns size of returned session payload data or a negative error code.
*/
int lttng_calibrate(struct lttng_handle *handle,
struct lttng_calibrate *calibrate)
attr->output = DEFAULT_KERNEL_CHANNEL_OUTPUT;
break;
case LTTNG_DOMAIN_UST:
+#if 0
case LTTNG_DOMAIN_UST_EXEC_NAME:
case LTTNG_DOMAIN_UST_PID:
case LTTNG_DOMAIN_UST_PID_FOLLOW_CHILDREN:
+#endif
attr->overwrite = DEFAULT_CHANNEL_OVERWRITE;
attr->switch_timer_interval = DEFAULT_CHANNEL_SWITCH_TIMER;
attr->read_timer_interval = DEFAULT_CHANNEL_READ_TIMER;
static void __attribute__((constructor)) init()
{
/* Set default session group */
- lttng_set_tracing_group(LTTNG_DEFAULT_TRACING_GROUP);
+ lttng_set_tracing_group(DEFAULT_TRACING_GROUP);
}