X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttng-sessiond%2Flttng-ust-ctl.h;h=687379448d11511d6c86af243b1f88d8202d129c;hb=7f79d3a151871c5bab5bf47aae4eec5f9da1eab7;hp=de5eeafeeb858abacc50e2767cdd40e9e910fe1e;hpb=322585731ced1adba36cddcb8bdd5d997d1b2e3e;p=lttng-tools.git diff --git a/lttng-sessiond/lttng-ust-ctl.h b/lttng-sessiond/lttng-ust-ctl.h index de5eeafee..687379448 100644 --- a/lttng-sessiond/lttng-ust-ctl.h +++ b/lttng-sessiond/lttng-ust-ctl.h @@ -20,7 +20,7 @@ #ifndef _LTTNG_UST_CTL_H #define _LTTNG_UST_CTL_H -#include +#include "lttng-ust-abi.h" int ustctl_register_done(int sock); int ustctl_create_session(int sock); @@ -44,13 +44,21 @@ 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); - /* not implemented yet */ struct lttng_ust_calibrate; int ustctl_calibrate(int sock, struct lttng_ust_calibrate *calibrate); @@ -117,7 +125,11 @@ 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); #endif /* _LTTNG_UST_CTL_H */