X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Fust-events.h;h=0a03193920229cc6406f51b0752b4744309f587c;hb=c8fcf224e283ed7679c84cbcccf70ac65ca7e41d;hp=6b4863fd494540b921c6158544b94a8d3ebf3929;hpb=df854e41ded4203a5b86bac062b8604bb038759a;p=lttng-ust.git diff --git a/include/lttng/ust-events.h b/include/lttng/ust-events.h index 6b4863fd..0a031939 100644 --- a/include/lttng/ust-events.h +++ b/include/lttng/ust-events.h @@ -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; @@ -229,7 +234,7 @@ struct ltt_event { } u; struct cds_list_head list; /* Event list */ struct ust_pending_probe *pending_probe; - int metadata_dumped:1; + unsigned int metadata_dumped:1; }; struct channel; @@ -289,7 +294,7 @@ struct ltt_channel { struct ltt_channel_ops *ops; int header_type; /* 0: unset, 1: compact, 2: large */ struct lttng_ust_shm_handle *handle; /* shared-memory handle */ - int metadata_dumped:1; + unsigned int metadata_dumped:1; /* Channel ID, available for consumer too */ unsigned int id; @@ -307,7 +312,7 @@ struct ltt_session { struct cds_list_head list; /* Session list */ unsigned int free_chan_id; /* Next chan ID to allocate */ uuid_t uuid; /* Trace session unique ID */ - int metadata_dumped:1; + unsigned int metadata_dumped:1; }; struct ltt_transport { @@ -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 */