SoW-2020-0002: Trace Hit Counters: trigger error reporting integration
[lttng-tools.git] / include / lttng / event-internal.h
index 8902a1a08d14233760597fcf9c1a7e854468e60c..01e9b8088db991426b63294b7222efe911c00602 100644 (file)
@@ -3,25 +3,18 @@
  *
  * Linux Trace Toolkit Control Library
  *
- * Copyright (C) 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
+ * Copyright (C) 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
- * This library is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License, version 2.1 only,
- * as published by the Free Software Foundation.
+ * SPDX-License-Identifier: LGPL-2.1-only
  *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this library; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
 #ifndef LTTNG_EVENT_INTERNAL_H
 #define LTTNG_EVENT_INTERNAL_H
 
+#include <common/macros.h>
+#include <lttng/event.h>
+
 struct lttng_userspace_probe_location;
 
 struct lttng_event_extended {
@@ -40,4 +33,22 @@ struct lttng_event_extended {
        struct lttng_userspace_probe_location *probe_location;
 };
 
+LTTNG_HIDDEN
+struct lttng_event *lttng_event_copy(const struct lttng_event *event);
+
+// FIXME: the implementation of these should be moved to some common file,
+// they should not be in the enable_events.c file.
+
+LTTNG_HIDDEN
+int loglevel_str_to_value(const char *inputstr);
+
+LTTNG_HIDDEN
+int loglevel_log4j_str_to_value(const char *inputstr);
+
+LTTNG_HIDDEN
+int loglevel_jul_str_to_value(const char *inputstr);
+
+LTTNG_HIDDEN
+int loglevel_python_str_to_value(const char *inputstr);
+
 #endif /* LTTNG_EVENT_INTERNAL_H */
This page took 0.024509 seconds and 5 git commands to generate.