Move libconsumer under common/consumer/
[lttng-tools.git] / src / common / kernel-consumer / kernel-consumer.h
CommitLineData
3bd1e081
MD
1/*
2 * Copyright (C) 2011 - Julien Desfossez <julien.desfossez@polymtl.ca>
3 * Copyright (C) 2011 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
4 *
d14d33bf
AM
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License, version 2 only,
7 * as published by the Free Software Foundation.
3bd1e081
MD
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
d14d33bf 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3bd1e081
MD
12 * GNU General Public License for more details.
13 *
d14d33bf
AM
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
3bd1e081
MD
17 */
18
19#ifndef _LTTNG_KCONSUMER_H
20#define _LTTNG_KCONSUMER_H
21
c8fea79c 22#include <common/consumer/consumer.h>
3bd1e081 23
ffe60014
DG
24int lttng_kconsumer_take_snapshot(struct lttng_consumer_stream *stream);
25int lttng_kconsumer_get_produced_snapshot(struct lttng_consumer_stream *stream,
3bd1e081 26 unsigned long *pos);
d3e2ba59
JD
27int lttng_kconsumer_get_consumed_snapshot(struct lttng_consumer_stream *stream,
28 unsigned long *pos);
3bd1e081
MD
29int lttng_kconsumer_recv_cmd(struct lttng_consumer_local_data *ctx,
30 int sock, struct pollfd *consumer_sockpoll);
4078b776 31ssize_t lttng_kconsumer_read_subbuffer(struct lttng_consumer_stream *stream,
d41f73b7
MD
32 struct lttng_consumer_local_data *ctx);
33int lttng_kconsumer_on_recv_stream(struct lttng_consumer_stream *stream);
6d805429 34int lttng_kconsumer_data_pending(struct lttng_consumer_stream *stream);
94d49140 35int lttng_kconsumer_sync_metadata(struct lttng_consumer_stream *metadata);
d41f73b7 36
3bd1e081 37#endif /* _LTTNG_KCONSUMER_H */
This page took 0.052234 seconds and 5 git commands to generate.