X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fcmd.h;h=5312eca61714b02d73cca5d2a5d0ff4a4056080f;hb=6e911cad03751b6814fddd65b19a592acdc2b7b7;hp=d997f85cddbcb634e3511b9418df7492ac7d8fbb;hpb=7972aab22f74b18faa168c0482216a3dd711a075;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/cmd.h b/src/bin/lttng-sessiond/cmd.h index d997f85cd..5312eca61 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,11 @@ 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); + char *channel_name, + struct lttng_event *event); 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,9 +55,13 @@ 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); + char *filter_expression, + struct lttng_filter_bytecode *filter, + struct lttng_event_exclusion *exclusion, + int wpipe); int cmd_enable_event_all(struct ltt_session *session, struct lttng_domain *domain, char *channel_name, int event_type, + char *filter_expression, struct lttng_filter_bytecode *filter, int wpipe); /* Trace session action commands */ @@ -81,8 +89,18 @@ void cmd_list_lttng_sessions(struct lttng_session *sessions, uid_t uid, ssize_t cmd_list_tracepoint_fields(int domain, struct lttng_event_field **fields); 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); int cmd_calibrate(int domain, struct lttng_calibrate *calibrate); int cmd_data_pending(struct ltt_session *session); +/* Snapshot */ +int cmd_snapshot_add_output(struct ltt_session *session, + struct lttng_snapshot_output *output, uint32_t *id); +int cmd_snapshot_del_output(struct ltt_session *session, + struct lttng_snapshot_output *output); +int cmd_snapshot_record(struct ltt_session *session, + struct lttng_snapshot_output *output, int wait); + #endif /* CMD_H */