X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fcmd.h;h=6a6c87eaa0b6ea303f11afb63e27c8243bc23857;hp=cbb39b6ce84405d7d781c734b253e34df2142362;hb=90936dcf0968343f20b2f6fd365b9c015cdb9717;hpb=56a375637d1034231c65d90078934b8e193b151c diff --git a/src/bin/lttng-sessiond/cmd.h b/src/bin/lttng-sessiond/cmd.h index cbb39b6ce..6a6c87eaa 100644 --- a/src/bin/lttng-sessiond/cmd.h +++ b/src/bin/lttng-sessiond/cmd.h @@ -21,6 +21,8 @@ #include "context.h" #include "session.h" +struct notification_thread_handle; + /* * Init the command subsystem. Must be called before using any of the functions * above. This is called in the main() of the session daemon. @@ -32,7 +34,8 @@ int cmd_create_session_uri(char *name, struct lttng_uri *uris, size_t nb_uri, lttng_sock_cred *creds, unsigned int live_timer); int cmd_create_session_snapshot(char *name, struct lttng_uri *uris, size_t nb_uri, lttng_sock_cred *creds); -int cmd_destroy_session(struct ltt_session *session, int wpipe); +int cmd_destroy_session(struct ltt_session *session, int wpipe, + struct notification_thread_handle *notification_thread_handle); /* Channel commands */ int cmd_disable_channel(struct ltt_session *session, @@ -79,7 +82,7 @@ ssize_t cmd_list_domains(struct ltt_session *session, struct lttng_domain **domains); ssize_t cmd_list_events(enum lttng_domain_type domain, struct ltt_session *session, char *channel_name, - struct lttng_event **events); + struct lttng_event **events, size_t *total_size); ssize_t cmd_list_channels(enum lttng_domain_type domain, struct ltt_session *session, struct lttng_channel **channels); ssize_t cmd_list_domains(struct ltt_session *session, @@ -96,8 +99,6 @@ ssize_t cmd_list_syscalls(struct lttng_event **events); ssize_t cmd_list_tracker_pids(struct ltt_session *session, enum lttng_domain_type domain, int32_t **pids); -int cmd_calibrate(enum lttng_domain_type domain, - struct lttng_calibrate *calibrate); int cmd_data_pending(struct ltt_session *session); /* Snapshot */ @@ -110,5 +111,23 @@ int cmd_snapshot_record(struct ltt_session *session, int cmd_set_session_shm_path(struct ltt_session *session, const char *shm_path); +int cmd_regenerate_metadata(struct ltt_session *session); +int cmd_regenerate_statedump(struct ltt_session *session); + +int cmd_register_trigger(struct command_ctx *cmd_ctx, int sock, + struct notification_thread_handle *notification_thread_handle); +int cmd_unregister_trigger(struct command_ctx *cmd_ctx, int sock, + struct notification_thread_handle *notification_thread_handle); + +int cmd_rotate_session(struct ltt_session *session, + struct lttng_rotate_session_return *rotate_return); +int cmd_rotate_get_info(struct ltt_session *session, + struct lttng_rotation_get_info_return *info_return, + uint64_t rotate_id); +int cmd_session_get_current_output(struct ltt_session *session, + struct lttng_session_get_current_output_return *output_return); +int cmd_rotation_set_schedule(struct ltt_session *session, uint64_t timer_us, + uint64_t size, + struct notification_thread_handle *notification_thread_handle); #endif /* CMD_H */