consumerd: pass channel instance to stream creation function
[lttng-tools.git] / src / common / kernel-consumer / kernel-consumer.h
CommitLineData
3bd1e081 1/*
ab5be9fa
MJ
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>
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
02d02e31 13#include <stdbool.h>
c8fea79c 14#include <common/consumer/consumer.h>
3bd1e081 15
ffe60014 16int lttng_kconsumer_take_snapshot(struct lttng_consumer_stream *stream);
e9404c27
JG
17int lttng_kconsumer_sample_snapshot_positions(
18 struct lttng_consumer_stream *stream);
ffe60014 19int lttng_kconsumer_get_produced_snapshot(struct lttng_consumer_stream *stream,
3bd1e081 20 unsigned long *pos);
d3e2ba59
JD
21int lttng_kconsumer_get_consumed_snapshot(struct lttng_consumer_stream *stream,
22 unsigned long *pos);
3bd1e081
MD
23int lttng_kconsumer_recv_cmd(struct lttng_consumer_local_data *ctx,
24 int sock, struct pollfd *consumer_sockpoll);
4078b776 25ssize_t lttng_kconsumer_read_subbuffer(struct lttng_consumer_stream *stream,
d2956687 26 struct lttng_consumer_local_data *ctx);
d41f73b7 27int lttng_kconsumer_on_recv_stream(struct lttng_consumer_stream *stream);
6d805429 28int lttng_kconsumer_data_pending(struct lttng_consumer_stream *stream);
94d49140 29int lttng_kconsumer_sync_metadata(struct lttng_consumer_stream *metadata);
d41f73b7 30
3bd1e081 31#endif /* _LTTNG_KCONSUMER_H */
This page took 0.074295 seconds and 4 git commands to generate.