X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt-events.h;h=0d68e16ae4111c15b190dd75d7360cd34aa01d0e;hb=1c25284c690cd38b71789c4024089d28de21caea;hp=6711341c86f60ac7d13eb952d706a0174b9a062e;hpb=57a13317407af307da09f519799a860f88ae7246;p=lttng-modules.git diff --git a/ltt-events.h b/ltt-events.h index 6711341c..0d68e16a 100644 --- a/ltt-events.h +++ b/ltt-events.h @@ -14,6 +14,7 @@ struct ltt_channel; struct ltt_session; +struct lib_ring_buffer_ctx; /* * ltt_event structure is referred to by the tracing fast path. It must be @@ -38,7 +39,9 @@ struct ltt_channel_ops { unsigned int read_timer_interval); void (*channel_destroy)(struct channel *chan); struct lib_ring_buffer *(*buffer_read_open)(struct channel *chan); - struct lib_ring_buffer *(*buffer_read_close)(struct lib_ring_buffer *buf); + void (*buffer_read_close)(struct lib_ring_buffer *buf); + int (*event_reserve)(struct lib_ring_buffer_ctx *ctx); + void (*event_commit)(struct lib_ring_buffer_ctx *ctx); }; struct ltt_channel { @@ -88,4 +91,7 @@ int _ltt_event_destroy(struct ltt_event *event); void ltt_transport_register(struct ltt_transport *transport); void ltt_transport_unregister(struct ltt_transport *transport); +int ltt_debugfs_abi_init(void); +void ltt_debugfs_abi_exit(void); + #endif /* _LTT_EVENTS_H */