Fix: file-descriptor: missing include guards
[lttng-tools.git] / src / bin / lttng-sessiond / channel.hpp
CommitLineData
54d01ffb 1/*
21cf9b6b 2 * Copyright (C) 2011 EfficiOS Inc.
54d01ffb 3 *
ab5be9fa 4 * SPDX-License-Identifier: GPL-2.0-only
54d01ffb 5 *
54d01ffb
DG
6 */
7
8#ifndef _LTT_CHANNEL_H
9#define _LTT_CHANNEL_H
10
11#include <lttng/lttng.h>
12
c9e313bc
SM
13#include "trace-kernel.hpp"
14#include "trace-ust.hpp"
54d01ffb
DG
15
16int channel_kernel_disable(struct ltt_kernel_session *ksession,
17 char *channel_name);
4878de5c 18enum lttng_error_code channel_kernel_enable(struct ltt_kernel_session *ksession,
54d01ffb 19 struct ltt_kernel_channel *kchan);
4878de5c
JG
20enum lttng_error_code channel_kernel_create(struct ltt_kernel_session *ksession,
21 struct lttng_channel *chan,
22 int kernel_pipe);
44d3bd01 23
0a9c6494
DG
24struct lttng_channel *channel_new_default_attr(int domain,
25 enum lttng_buffer_type type);
e9404c27 26void channel_attr_destroy(struct lttng_channel *channel);
f6cd6b0f 27
4878de5c 28enum lttng_error_code channel_ust_create(struct ltt_ust_session *usess,
7972aab2 29 struct lttng_channel *attr, enum lttng_buffer_type type);
4878de5c 30enum lttng_error_code channel_ust_enable(struct ltt_ust_session *usess,
7885e399 31 struct ltt_ust_channel *uchan);
7972aab2 32int channel_ust_disable(struct ltt_ust_session *usess,
7885e399
DG
33 struct ltt_ust_channel *uchan);
34
999af9c1
JR
35struct lttng_channel *trace_ust_channel_to_lttng_channel(
36 const struct ltt_ust_channel *uchan);
37
54d01ffb 38#endif /* _LTT_CHANNEL_H */
This page took 0.102978 seconds and 4 git commands to generate.