X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fcmd.h;h=7144690ca5f5d2eb96f0c0191ee15ecd584dc747;hp=5be1688c9c97b502bd3292820741a618eb3afa61;hb=d7ba13889c8692b14f99238ddf2721ed78df89d2;hpb=6dc3064a30b0cc7cfa9fdd22da1963525dfb7388 diff --git a/src/bin/lttng-sessiond/cmd.h b/src/bin/lttng-sessiond/cmd.h index 5be1688c9..7144690ca 100644 --- a/src/bin/lttng-sessiond/cmd.h +++ b/src/bin/lttng-sessiond/cmd.h @@ -29,6 +29,8 @@ void cmd_init(void); /* Session commands */ 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); @@ -41,9 +43,8 @@ int cmd_enable_channel(struct ltt_session *session, /* Event commands */ int cmd_disable_event(struct ltt_session *session, int domain, - char *channel_name, char *event_name); -int cmd_disable_event_all(struct ltt_session *session, int domain, - char *channel_name); + char *channel_name, + struct lttng_event *event); int cmd_add_context(struct ltt_session *session, int domain, char *channel_name, struct lttng_event_context *ctx, int kwpipe); int cmd_set_filter(struct ltt_session *session, int domain, @@ -51,10 +52,10 @@ int cmd_set_filter(struct ltt_session *session, int domain, struct lttng_filter_bytecode *bytecode); int cmd_enable_event(struct ltt_session *session, struct lttng_domain *domain, char *channel_name, struct lttng_event *event, - struct lttng_filter_bytecode *filter, int wpipe); -int cmd_enable_event_all(struct ltt_session *session, - struct lttng_domain *domain, char *channel_name, int event_type, - struct lttng_filter_bytecode *filter, int wpipe); + char *filter_expression, + struct lttng_filter_bytecode *filter, + struct lttng_event_exclusion *exclusion, + int wpipe); /* Trace session action commands */ int cmd_start_trace(struct ltt_session *session); @@ -63,8 +64,8 @@ int cmd_stop_trace(struct ltt_session *session); /* Consumer commands */ int cmd_register_consumer(struct ltt_session *session, int domain, const char *sock_path, struct consumer_data *cdata); -int cmd_set_consumer_uri(int domain, struct ltt_session *session, - size_t nb_uri, struct lttng_uri *uris); +int cmd_set_consumer_uri(struct ltt_session *session, size_t nb_uri, + struct lttng_uri *uris); int cmd_setup_relayd(struct ltt_session *session); /* Listing commands */ @@ -83,6 +84,7 @@ ssize_t cmd_list_tracepoint_fields(int domain, ssize_t cmd_list_tracepoints(int domain, struct lttng_event **events); ssize_t cmd_snapshot_list_outputs(struct ltt_session *session, struct lttng_snapshot_output **outputs); +ssize_t cmd_list_syscalls(struct lttng_event **events); int cmd_calibrate(int domain, struct lttng_calibrate *calibrate); int cmd_data_pending(struct ltt_session *session); @@ -95,4 +97,7 @@ int cmd_snapshot_del_output(struct ltt_session *session, int cmd_snapshot_record(struct ltt_session *session, struct lttng_snapshot_output *output, int wait); +int cmd_set_session_shm_path(struct ltt_session *session, + const char *shm_path); + #endif /* CMD_H */