Commit | Line | Data |
---|---|---|
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 | ||
c9e313bc SM |
11 | #include "trace-kernel.hpp" |
12 | #include "trace-ust.hpp" | |
54d01ffb | 13 | |
28f23191 JG |
14 | #include <lttng/lttng.h> |
15 | ||
16 | int channel_kernel_disable(struct ltt_kernel_session *ksession, char *channel_name); | |
4878de5c | 17 | enum lttng_error_code channel_kernel_enable(struct ltt_kernel_session *ksession, |
28f23191 | 18 | struct ltt_kernel_channel *kchan); |
4878de5c | 19 | enum lttng_error_code channel_kernel_create(struct ltt_kernel_session *ksession, |
28f23191 JG |
20 | struct lttng_channel *chan, |
21 | int kernel_pipe); | |
44d3bd01 | 22 | |
28f23191 | 23 | struct lttng_channel *channel_new_default_attr(int domain, enum lttng_buffer_type type); |
e9404c27 | 24 | void channel_attr_destroy(struct lttng_channel *channel); |
f6cd6b0f | 25 | |
4878de5c | 26 | enum lttng_error_code channel_ust_create(struct ltt_ust_session *usess, |
28f23191 JG |
27 | struct lttng_channel *attr, |
28 | enum lttng_buffer_type type); | |
4878de5c | 29 | enum lttng_error_code channel_ust_enable(struct ltt_ust_session *usess, |
28f23191 JG |
30 | struct ltt_ust_channel *uchan); |
31 | int channel_ust_disable(struct ltt_ust_session *usess, struct ltt_ust_channel *uchan); | |
7885e399 | 32 | |
28f23191 | 33 | struct lttng_channel *trace_ust_channel_to_lttng_channel(const struct ltt_ust_channel *uchan); |
999af9c1 | 34 | |
54d01ffb | 35 | #endif /* _LTT_CHANNEL_H */ |