X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=lttng-sessiond%2Flttng-ust-ctl.h;h=b8cb965b028f9fabbbcf594d8676863722fb0492;hp=225237a6c18d35b814845ec72a0eccc4b4863ed4;hb=c3fd7e61922ee7d2d340d39868bfbd7c5a2c9b28;hpb=9df8df5ea4a12be72f265c3c0d6911ac4e207bc0 diff --git a/lttng-sessiond/lttng-ust-ctl.h b/lttng-sessiond/lttng-ust-ctl.h index 225237a6c..b8cb965b0 100644 --- a/lttng-sessiond/lttng-ust-ctl.h +++ b/lttng-sessiond/lttng-ust-ctl.h @@ -44,12 +44,22 @@ int ustctl_disable(int sock, struct lttng_ust_object_data *object); int ustctl_start_session(int sock, int handle); int ustctl_stop_session(int sock, int handle); -int ustctl_tracepoint_list(int sock); /* not implemented yet */ +/* + * ustctl_tracepoint_list returns a tracepoint list handle, or negative + * error value. + */ +int ustctl_tracepoint_list(int sock); +/* + * ustctl_tracepoint_list_get is used to iterate on the tp list + * handle. End is iteration is reached when -ENOENT is returned. + */ +int ustctl_tracepoint_list_get(int sock, int tp_list_handle, + struct lttng_ust_tracepoint_iter *iter); + int ustctl_tracer_version(int sock, struct lttng_ust_tracer_version *v); int ustctl_wait_quiescent(int sock); -/* Flush each buffers in this channel */ -int ustctl_flush_buffer(int sock, struct lttng_ust_object_data *channel_data); +int ustctl_sock_flush_buffer(int sock, struct lttng_ust_object_data *object); /* not implemented yet */ struct lttng_ust_calibrate; @@ -117,7 +127,13 @@ int ustctl_get_subbuf(struct lttng_ust_shm_handle *handle, int ustctl_put_subbuf(struct lttng_ust_shm_handle *handle, struct lttng_ust_lib_ring_buffer *buf); +void ustctl_flush_buffer(struct lttng_ust_shm_handle *handle, + struct lttng_ust_lib_ring_buffer *buf, + int producer_active); + /* Release object created by members of this API */ -void release_object(int sock, struct lttng_ust_object_data *data); +int ustctl_release_object(int sock, struct lttng_ust_object_data *data); +/* Release handle returned by create session. */ +int ustctl_release_handle(int sock, int handle); #endif /* _LTTNG_UST_CTL_H */