Run clang-format on the whole tree
[lttng-tools.git] / src / common / kernel-consumer / kernel-consumer.hpp
1 /*
2 * Copyright (C) 2011 EfficiOS Inc.
3 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
4 * Copyright (C) 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
5 *
6 * SPDX-License-Identifier: GPL-2.0-only
7 *
8 */
9
10 #ifndef _LTTNG_KCONSUMER_H
11 #define _LTTNG_KCONSUMER_H
12
13 #include <stdbool.h>
14 #include <common/consumer/consumer.hpp>
15
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,
20 unsigned long *pos);
21 int lttng_kconsumer_get_consumed_snapshot(struct lttng_consumer_stream *stream,
22 unsigned long *pos);
23 int lttng_kconsumer_recv_cmd(struct lttng_consumer_local_data *ctx,
24 int sock, struct pollfd *consumer_sockpoll);
25 int lttng_kconsumer_on_recv_stream(struct lttng_consumer_stream *stream);
26 int lttng_kconsumer_data_pending(struct lttng_consumer_stream *stream);
27 enum sync_metadata_status lttng_kconsumer_sync_metadata(
28 struct lttng_consumer_stream *metadata);
29
30 #endif /* _LTTNG_KCONSUMER_H */
This page took 0.032204 seconds and 4 git commands to generate.