X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Flib%2Flttng-ctl%2Flttng-ctl.c;h=6cc04efc939359a139c900867a71778db776bd77;hb=99bab54fa13c66d7237f03d899650ad73e49c230;hp=0858c1a74ef6ce1f2c312e832e0d1b43cc6aac2f;hpb=d78d661021eb1c5761c631dbd525697769fe638b;p=lttng-tools.git diff --git a/src/lib/lttng-ctl/lttng-ctl.c b/src/lib/lttng-ctl/lttng-ctl.c index 0858c1a74..6cc04efc9 100644 --- a/src/lib/lttng-ctl/lttng-ctl.c +++ b/src/lib/lttng-ctl/lttng-ctl.c @@ -302,7 +302,7 @@ static int disconnect_sessiond(void) /* * 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) { @@ -462,6 +462,8 @@ int lttng_stop_tracing(const char *session_name) /* * 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, @@ -807,7 +809,7 @@ int lttng_set_tracing_group(const char *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) @@ -906,5 +908,5 @@ int lttng_session_daemon_alive(void) static void __attribute__((constructor)) init() { /* Set default session group */ - lttng_set_tracing_group(LTTNG_DEFAULT_TRACING_GROUP); + lttng_set_tracing_group(DEFAULT_TRACING_GROUP); }