*
* 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
#define LTTCOMM_ERR_INDEX(code) (code - LTTCOMM_OK)
enum lttcomm_sessiond_command {
- /* Tracer context command */
- LTTNG_KERNEL_ADD_CONTEXT,
- LTTNG_KERNEL_DISABLE_CHANNEL,
- LTTNG_KERNEL_DISABLE_EVENT,
- LTTNG_KERNEL_DISABLE_ALL_EVENT,
- LTTNG_KERNEL_ENABLE_CHANNEL,
- LTTNG_KERNEL_ENABLE_EVENT,
- LTTNG_KERNEL_ENABLE_ALL_EVENT,
- LTTNG_KERNEL_LIST_EVENTS,
- /* Session daemon context command */
+ /* Tracer command */
+ LTTNG_ADD_CONTEXT,
+ LTTNG_DISABLE_CHANNEL,
+ LTTNG_DISABLE_EVENT,
+ LTTNG_DISABLE_ALL_EVENT,
+ LTTNG_ENABLE_CHANNEL,
+ LTTNG_ENABLE_EVENT,
+ LTTNG_ENABLE_ALL_EVENT,
+ /* Session daemon command */
LTTNG_CREATE_SESSION,
LTTNG_DESTROY_SESSION,
- LTTNG_LIST_SESSIONS,
- LTTNG_LIST_TRACES,
+ LTTNG_LIST_CHANNELS,
+ LTTNG_LIST_DOMAINS,
LTTNG_LIST_EVENTS,
- LTTNG_LIST_TRACEABLE_APPS,
+ LTTNG_LIST_SESSIONS,
+ LTTNG_LIST_TRACEPOINTS,
LTTNG_START_TRACE,
LTTNG_STOP_TRACE,
};
*/
struct lttcomm_session_msg {
u32 cmd_type; /* enum lttcomm_sessiond_command */
- char session_name[NAME_MAX];
- char path[PATH_MAX];
- pid_t pid;
+ struct lttng_session session;
+ struct lttng_domain domain;
union {
struct {
char channel_name[NAME_MAX];
char event_name[NAME_MAX];
struct lttng_event_context ctx;
} context;
+ /* List */
+ struct {
+ char channel_name[NAME_MAX];
+ } list;
} u;
};