X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fevent.h;h=1c646db37b7d4d7956d1bc50303ed1032415ac3f;hp=45dd1fcbb3e1a6dda40254f008ac4893e9bf1d70;hb=86eff0042bf0b9e6277b281c4f3a680d997790d2;hpb=9550ee81b0277eb873333fc42a9e6ffc2ef00274 diff --git a/src/bin/lttng-sessiond/event.h b/src/bin/lttng-sessiond/event.h index 45dd1fcbb..1c646db37 100644 --- a/src/bin/lttng-sessiond/event.h +++ b/src/bin/lttng-sessiond/event.h @@ -1,18 +1,8 @@ /* - * Copyright (C) 2011 - David Goulet + * Copyright (C) 2011 David Goulet * - * 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_EVENT_H @@ -23,7 +13,7 @@ struct agent; int event_kernel_disable_event(struct ltt_kernel_channel *kchan, - char *event_name, enum lttng_event_type event_type); + const char *event_name, enum lttng_event_type event_type); int event_kernel_enable_event(struct ltt_kernel_channel *kchan, struct lttng_event *event, char *filter_expression, @@ -36,7 +26,7 @@ int event_ust_enable_tracepoint(struct ltt_ust_session *usess, struct lttng_event_exclusion *exclusion, bool internal_event); int event_ust_disable_tracepoint(struct ltt_ust_session *usess, - struct ltt_ust_channel *uchan, char *event_name); + struct ltt_ust_channel *uchan, const char *event_name); int event_ust_disable_all_tracepoints(struct ltt_ust_session *usess, struct ltt_ust_channel *uchan); @@ -49,7 +39,7 @@ int event_agent_enable_all(struct ltt_ust_session *usess, struct agent *agt, char *filter_expression); int event_agent_disable(struct ltt_ust_session *usess, struct agent *agt, - char *event_name); + const char *event_name); int event_agent_disable_all(struct ltt_ust_session *usess, struct agent *agt); const char *event_get_default_agent_ust_name(enum lttng_domain_type domain);