Fix: consumerd: type confusion in lttng_consumer_send_error
[lttng-tools.git] / src / bin / lttng-sessiond / channel.hpp
... / ...
CommitLineData
1/*
2 * Copyright (C) 2011 EfficiOS Inc.
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 */
7
8#ifndef _LTT_CHANNEL_H
9#define _LTT_CHANNEL_H
10
11#include "trace-kernel.hpp"
12#include "trace-ust.hpp"
13
14#include <lttng/lttng.h>
15
16int channel_kernel_disable(struct ltt_kernel_session *ksession, char *channel_name);
17enum lttng_error_code channel_kernel_enable(struct ltt_kernel_session *ksession,
18 struct ltt_kernel_channel *kchan);
19enum lttng_error_code channel_kernel_create(struct ltt_kernel_session *ksession,
20 struct lttng_channel *chan,
21 int kernel_pipe);
22
23struct lttng_channel *channel_new_default_attr(int domain, enum lttng_buffer_type type);
24void channel_attr_destroy(struct lttng_channel *channel);
25
26enum lttng_error_code channel_ust_create(struct ltt_ust_session *usess,
27 struct lttng_channel *attr,
28 enum lttng_buffer_type type);
29enum lttng_error_code channel_ust_enable(struct ltt_ust_session *usess,
30 struct ltt_ust_channel *uchan);
31int channel_ust_disable(struct ltt_ust_session *usess, struct ltt_ust_channel *uchan);
32
33struct lttng_channel *trace_ust_channel_to_lttng_channel(const struct ltt_ust_channel *uchan);
34
35#endif /* _LTT_CHANNEL_H */
This page took 0.024409 seconds and 4 git commands to generate.