X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=ltt-ring-buffer-client.h;h=0d8051ece35bd5ec2e42e3641524b1c5c6a993fb;hb=c6485006a92b1b86fbb48c2b277732d3405295c9;hp=1c9308e04f7151e9d38db7aeb83609bdca8c51c3;hpb=7e8557491dbb640a5f2a2bea000f32a0e567b5ee;p=lttng-modules.git diff --git a/ltt-ring-buffer-client.h b/ltt-ring-buffer-client.h index 1c9308e0..0d8051ec 100644 --- a/ltt-ring-buffer-client.h +++ b/ltt-ring-buffer-client.h @@ -455,9 +455,27 @@ void ltt_event_write(struct lib_ring_buffer_ctx *ctx, const void *src, } static -wait_queue_head_t *ltt_get_reader_wait_queue(struct ltt_channel *chan) +wait_queue_head_t *ltt_get_reader_wait_queue(struct channel *chan) { - return &chan->chan->read_wait; + return &chan->read_wait; +} + +static +wait_queue_head_t *ltt_get_hp_wait_queue(struct channel *chan) +{ + return &chan->hp_wait; +} + +static +int ltt_is_finalized(struct channel *chan) +{ + return lib_ring_buffer_channel_is_finalized(chan); +} + +static +int ltt_is_disabled(struct channel *chan) +{ + return lib_ring_buffer_channel_is_disabled(chan); } static struct ltt_transport ltt_relay_transport = { @@ -473,6 +491,9 @@ static struct ltt_transport ltt_relay_transport = { .event_write = ltt_event_write, .packet_avail_size = NULL, /* Would be racy anyway */ .get_reader_wait_queue = ltt_get_reader_wait_queue, + .get_hp_wait_queue = ltt_get_hp_wait_queue, + .is_finalized = ltt_is_finalized, + .is_disabled = ltt_is_disabled, }, };