X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fchannel.h;h=fcc4d6b6366819d1c9148b61c41d3c8a4dd0bd7a;hb=4878de5c7deb512bbdac4fdfc498907efa06fb7c;hp=9b736fc6614a27ab0179ced5373d833564a795a2;hpb=e9404c27e7cc9d841785e6c4292c1add19fbc1cc;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/channel.h b/src/bin/lttng-sessiond/channel.h index 9b736fc66..fcc4d6b63 100644 --- a/src/bin/lttng-sessiond/channel.h +++ b/src/bin/lttng-sessiond/channel.h @@ -1,18 +1,8 @@ /* - * Copyright (C) 2011 - David Goulet + * Copyright (C) 2011 EfficiOS Inc. * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License, version 2 only, - * as published by the Free Software Foundation. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef _LTT_CHANNEL_H @@ -25,20 +15,24 @@ int channel_kernel_disable(struct ltt_kernel_session *ksession, char *channel_name); -int channel_kernel_enable(struct ltt_kernel_session *ksession, +enum lttng_error_code channel_kernel_enable(struct ltt_kernel_session *ksession, struct ltt_kernel_channel *kchan); -int channel_kernel_create(struct ltt_kernel_session *ksession, - struct lttng_channel *chan, int kernel_pipe); +enum lttng_error_code channel_kernel_create(struct ltt_kernel_session *ksession, + struct lttng_channel *chan, + int kernel_pipe); struct lttng_channel *channel_new_default_attr(int domain, enum lttng_buffer_type type); void channel_attr_destroy(struct lttng_channel *channel); -int channel_ust_create(struct ltt_ust_session *usess, +enum lttng_error_code channel_ust_create(struct ltt_ust_session *usess, struct lttng_channel *attr, enum lttng_buffer_type type); -int channel_ust_enable(struct ltt_ust_session *usess, +enum lttng_error_code channel_ust_enable(struct ltt_ust_session *usess, struct ltt_ust_channel *uchan); int channel_ust_disable(struct ltt_ust_session *usess, struct ltt_ust_channel *uchan); +struct lttng_channel *trace_ust_channel_to_lttng_channel( + const struct ltt_ust_channel *uchan); + #endif /* _LTT_CHANNEL_H */