2 * Copyright (C) 2011 Julien Desfossez <julien.desfossez@polymtl.ca>
3 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
4 * Copyright (C) 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 * SPDX-License-Identifier: GPL-2.0-only
10 #ifndef _LTTNG_KCONSUMER_H
11 #define _LTTNG_KCONSUMER_H
14 #include <common/consumer/consumer.h>
16 int lttng_kconsumer_take_snapshot(struct lttng_consumer_stream
*stream
);
17 int lttng_kconsumer_sample_snapshot_positions(
18 struct lttng_consumer_stream
*stream
);
19 int lttng_kconsumer_get_produced_snapshot(struct lttng_consumer_stream
*stream
,
21 int lttng_kconsumer_get_consumed_snapshot(struct lttng_consumer_stream
*stream
,
23 int lttng_kconsumer_recv_cmd(struct lttng_consumer_local_data
*ctx
,
24 int sock
, struct pollfd
*consumer_sockpoll
);
25 ssize_t
lttng_kconsumer_read_subbuffer(struct lttng_consumer_stream
*stream
,
26 struct lttng_consumer_local_data
*ctx
);
27 int lttng_kconsumer_on_recv_stream(struct lttng_consumer_stream
*stream
);
28 int lttng_kconsumer_data_pending(struct lttng_consumer_stream
*stream
);
29 int lttng_kconsumer_sync_metadata(struct lttng_consumer_stream
*metadata
);
31 #endif /* _LTTNG_KCONSUMER_H */