71a33b73f42316799623bd70cdec35eabff73f06
[lttng-tools.git] / src / common / kernel-consumer / kernel-consumer.h
1 /*
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>
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.h>
15
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19
20 int lttng_kconsumer_take_snapshot(struct lttng_consumer_stream *stream);
21 int lttng_kconsumer_sample_snapshot_positions(
22 struct lttng_consumer_stream *stream);
23 int lttng_kconsumer_get_produced_snapshot(struct lttng_consumer_stream *stream,
24 unsigned long *pos);
25 int lttng_kconsumer_get_consumed_snapshot(struct lttng_consumer_stream *stream,
26 unsigned long *pos);
27 int lttng_kconsumer_recv_cmd(struct lttng_consumer_local_data *ctx,
28 int sock, struct pollfd *consumer_sockpoll);
29 int lttng_kconsumer_on_recv_stream(struct lttng_consumer_stream *stream);
30 int lttng_kconsumer_data_pending(struct lttng_consumer_stream *stream);
31 enum sync_metadata_status lttng_kconsumer_sync_metadata(
32 struct lttng_consumer_stream *metadata);
33
34 #ifdef __cplusplus
35 }
36 #endif
37
38 #endif /* _LTTNG_KCONSUMER_H */
This page took 0.028714 seconds and 3 git commands to generate.