X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=liblttsessiondcomm%2Fliblttsessiondcomm.h;h=ab9fd7b5a4ee3a578f3cc1e78f1282cd0156ec7f;hb=3000dc785dc25a265485f7b3f7bc3c023d2e67dd;hp=a2185f911559b2a24801780ba88efaed38a32fce;hpb=d65106b1011efccf8fa5f9d7c8f2dfb0de38f5e8;p=lttng-tools.git diff --git a/liblttsessiondcomm/liblttsessiondcomm.h b/liblttsessiondcomm/liblttsessiondcomm.h index a2185f911..ab9fd7b5a 100644 --- a/liblttsessiondcomm/liblttsessiondcomm.h +++ b/liblttsessiondcomm/liblttsessiondcomm.h @@ -4,8 +4,8 @@ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. + * as published by the Free Software Foundation; only version 2 + * of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -43,7 +43,6 @@ enum lttcomm_sessiond_command { /* Tracer context command */ LTTNG_KERNEL_ADD_CONTEXT, - LTTNG_KERNEL_CREATE_CHANNEL, LTTNG_KERNEL_DISABLE_CHANNEL, LTTNG_KERNEL_DISABLE_EVENT, LTTNG_KERNEL_DISABLE_ALL_EVENT, @@ -69,6 +68,8 @@ enum lttcomm_return_code { LTTCOMM_OK = 1000, /* Ok */ LTTCOMM_ERR, /* Unknown Error */ LTTCOMM_UND, /* Undefine command */ + LTTCOMM_NOT_IMPLEMENTED, /* Command not implemented */ + LTTCOMM_UNKNOWN_DOMAIN, /* Tracing domain not known */ LTTCOMM_ALLOC_FAIL, /* Trace allocation fail */ LTTCOMM_NO_SESSION, /* No session found */ LTTCOMM_CREATE_FAIL, /* Create trace fail */ @@ -85,6 +86,7 @@ enum lttcomm_return_code { LTTCOMM_EXIST_SESS, /* Session name already exist */ LTTCOMM_NO_EVENT, /* No event found */ LTTCOMM_KERN_NA, /* Kernel tracer unavalable */ + LTTCOMM_KERN_EVENT_EXIST, /* Kernel event already exists */ LTTCOMM_KERN_SESS_FAIL, /* Kernel create session failed */ LTTCOMM_KERN_CHAN_FAIL, /* Kernel create channel failed */ LTTCOMM_KERN_CHAN_NOT_FOUND, /* Kernel channel not found */ @@ -145,7 +147,7 @@ struct lttcomm_session_msg { struct { char channel_name[NAME_MAX]; char event_name[NAME_MAX]; - struct lttng_kernel_context ctx; + struct lttng_event_context ctx; } context; } u; };