lttng-ctl: add an lttng_event_extended distinct from communication structures
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 15 Oct 2017 20:12:35 +0000 (16:12 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 24 Aug 2018 18:38:20 +0000 (14:38 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/Makefile.am
include/lttng/event-internal.h [new file with mode: 0644]

index 2da03f493b4eef18eecda6681b101195ebd2348f..25d0dc8dd15c37481183aa0497b49a1b234c1a41 100644 (file)
@@ -119,6 +119,7 @@ noinst_HEADERS = \
        lttng/endpoint-internal.h \
        lttng/notification/channel-internal.h \
        lttng/channel-internal.h \
+       lttng/event-internal.h \
        lttng/rotate-internal.h \
        lttng/ref-internal.h \
        lttng/location-internal.h \
diff --git a/include/lttng/event-internal.h b/include/lttng/event-internal.h
new file mode 100644 (file)
index 0000000..8902a1a
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * event-internal.h
+ *
+ * Linux Trace Toolkit Control Library
+ *
+ * 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.
+ *
+ * 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
+
+struct lttng_userspace_probe_location;
+
+struct lttng_event_extended {
+       /*
+        * exclusions and filter_expression are only set when the lttng_event
+        * was created/allocated by a list operation. These two elements must
+        * not be free'd as they are part of the same contiguous buffer that
+        * contains all events returned by the listing.
+        */
+       char *filter_expression;
+       struct {
+               unsigned int count;
+               /* Array of strings of fixed LTTNG_SYMBOL_NAME_LEN length. */
+               char *strings;
+       } exclusions;
+       struct lttng_userspace_probe_location *probe_location;
+};
+
+#endif /* LTTNG_EVENT_INTERNAL_H */
This page took 0.026249 seconds and 4 git commands to generate.