Use iterator on tracepoint probes instead of tracepoints per se
[lttng-ust.git] / include / lttng / ust-events.h
index 45358d422ec9c54d972c5e16c5379790b97d9855..0a03193920229cc6406f51b0752b4744309f587c 100644 (file)
@@ -206,9 +206,14 @@ struct lttng_probe_desc {
        struct cds_list_head head;              /* chain registered probes */
 };
 
-struct tp_loglevel_iter {
-       struct lttng_probe_desc *desc;
-       const struct tracepoint_loglevel_entry *loglevel;
+struct tp_list_entry {
+       struct lttng_ust_tracepoint_iter tp;
+       struct cds_list_head head;
+};
+
+struct lttng_ust_tracepoint_list {
+       struct tp_list_entry *iter;
+       struct cds_list_head head;
 };
 
 struct ust_pending_probe;
@@ -378,4 +383,9 @@ const struct lttng_ust_lib_ring_buffer_client_cb *lttng_client_callbacks_overwri
 
 struct ltt_transport *ltt_transport_find(const char *name);
 
+int ltt_probes_get_event_list(struct lttng_ust_tracepoint_list *list);
+void ltt_probes_prune_event_list(struct lttng_ust_tracepoint_list *list);
+struct lttng_ust_tracepoint_iter *
+       lttng_ust_tracepoint_list_get_iter_next(struct lttng_ust_tracepoint_list *list);
+
 #endif /* _LTTNG_UST_EVENTS_H */
This page took 0.023198 seconds and 4 git commands to generate.