#include "context.h"
#include "session.h"
+#include "lttng-sessiond.h"
struct notification_thread_handle;
int cmd_disable_channel(struct ltt_session *session,
enum lttng_domain_type domain, char *channel_name);
int cmd_enable_channel(struct ltt_session *session,
- struct lttng_domain *domain, struct lttng_channel *attr,
+ const struct lttng_domain *domain, const struct lttng_channel *attr,
int wpipe);
int cmd_track_pid(struct ltt_session *session, enum lttng_domain_type domain,
int pid);
/* Event commands */
int cmd_disable_event(struct ltt_session *session,
enum lttng_domain_type domain,
- char *channel_name,
- struct lttng_event *event);
+ const char *channel_name,
+ const struct lttng_event *event);
int cmd_add_context(struct ltt_session *session, enum lttng_domain_type domain,
- char *channel_name, struct lttng_event_context *ctx, int kwpipe);
+ char *channel_name, const struct lttng_event_context *ctx, int kwpipe);
int cmd_set_filter(struct ltt_session *session, enum lttng_domain_type domain,
char *channel_name, struct lttng_event *event,
struct lttng_filter_bytecode *bytecode);
-int cmd_enable_event(struct ltt_session *session, struct lttng_domain *domain,
+int cmd_enable_event(struct ltt_session *session, const struct lttng_domain *domain,
char *channel_name, struct lttng_event *event,
char *filter_expression,
struct lttng_filter_bytecode *filter,
/* Snapshot */
int cmd_snapshot_add_output(struct ltt_session *session,
- struct lttng_snapshot_output *output, uint32_t *id);
+ const struct lttng_snapshot_output *output, uint32_t *id);
int cmd_snapshot_del_output(struct ltt_session *session,
- struct lttng_snapshot_output *output);
+ const struct lttng_snapshot_output *output);
int cmd_snapshot_record(struct ltt_session *session,
- struct lttng_snapshot_output *output, int wait);
+ const struct lttng_snapshot_output *output, int wait);
int cmd_set_session_shm_path(struct ltt_session *session,
const char *shm_path);
struct notification_thread_handle *notification_thread_handle);
const struct cmd_completion_handler *cmd_pop_completion_handler(void);
+int start_kernel_session(struct ltt_kernel_session *ksess);
+int stop_kernel_session(struct ltt_kernel_session *ksess);
#endif /* CMD_H */