Commit | Line | Data |
---|---|---|
3bd1e081 | 1 | /* |
21cf9b6b | 2 | * Copyright (C) 2011 EfficiOS Inc. |
ab5be9fa MJ |
3 | * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
4 | * Copyright (C) 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com> | |
3bd1e081 | 5 | * |
ab5be9fa | 6 | * SPDX-License-Identifier: GPL-2.0-only |
3bd1e081 | 7 | * |
3bd1e081 MD |
8 | */ |
9 | ||
10 | #ifndef _LTTNG_KCONSUMER_H | |
11 | #define _LTTNG_KCONSUMER_H | |
12 | ||
c9e313bc | 13 | #include <common/consumer/consumer.hpp> |
3bd1e081 | 14 | |
28f23191 JG |
15 | #include <stdbool.h> |
16 | ||
ffe60014 | 17 | int lttng_kconsumer_take_snapshot(struct lttng_consumer_stream *stream); |
28f23191 JG |
18 | int lttng_kconsumer_sample_snapshot_positions(struct lttng_consumer_stream *stream); |
19 | int lttng_kconsumer_get_produced_snapshot(struct lttng_consumer_stream *stream, unsigned long *pos); | |
20 | int lttng_kconsumer_get_consumed_snapshot(struct lttng_consumer_stream *stream, unsigned long *pos); | |
3bd1e081 | 21 | int lttng_kconsumer_recv_cmd(struct lttng_consumer_local_data *ctx, |
28f23191 JG |
22 | int sock, |
23 | struct pollfd *consumer_sockpoll); | |
d41f73b7 | 24 | int lttng_kconsumer_on_recv_stream(struct lttng_consumer_stream *stream); |
6d805429 | 25 | int lttng_kconsumer_data_pending(struct lttng_consumer_stream *stream); |
28f23191 | 26 | enum sync_metadata_status lttng_kconsumer_sync_metadata(struct lttng_consumer_stream *metadata); |
d41f73b7 | 27 | |
3bd1e081 | 28 | #endif /* _LTTNG_KCONSUMER_H */ |