Move lttng_ust_object_data et lttng_ust_channel_attr to -abi.h
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 2 Nov 2011 17:33:03 +0000 (13:33 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 2 Nov 2011 17:33:03 +0000 (13:33 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/ust/lttng-ust-abi.h
include/ust/lttng-ust-ctl.h
tests/ust-basic-tracing/ust-basic-tracing.c
tests/ust-multi-test/ust-multi-test.c

index da2bfb942a111844379bad1ff7d6b8b5eed55238..5b025aeac5b30e6e7a514b9cbe7ffc1f4d99f58f 100644 (file)
@@ -78,6 +78,25 @@ struct lttng_ust_context {
        } u;
 };
 
+/*
+ * Tracer channel attributes.
+ */
+struct lttng_ust_channel_attr {
+       int overwrite;                          /* 1: overwrite, 0: discard */
+       uint64_t subbuf_size;                   /* bytes */
+       uint64_t num_subbuf;                    /* power of 2 */
+       unsigned int switch_timer_interval;     /* usec */
+       unsigned int read_timer_interval;       /* usec */
+       enum lttng_ust_output output;           /* splice, mmap */
+};
+
+struct lttng_ust_object_data {
+       int handle;
+       int shm_fd;
+       int wait_fd;
+       uint64_t memory_map_size;
+};
+
 #define _UST_CMD(minor)                                (minor)
 #define _UST_CMDR(minor, type)                 (minor)
 #define _UST_CMDW(minor, type)                 (minor)
index c37aa008d7a069c2684a3c3bc4a8894b860d4ed8..bba594594cfd07f88b13cf52bd30fc8c9f53561c 100644 (file)
 
 #include <ust/lttng-ust-abi.h>
 
-/*
- * Tracer channel attributes.
- */
-struct lttng_ust_channel_attr {
-       int overwrite;                          /* 1: overwrite, 0: discard */
-       uint64_t subbuf_size;                   /* bytes */
-       uint64_t num_subbuf;                    /* power of 2 */
-       unsigned int switch_timer_interval;     /* usec */
-       unsigned int read_timer_interval;       /* usec */
-       enum lttng_ust_output output;           /* splice, mmap */
-};
-
-struct lttng_ust_object_data {
-       int handle;
-       int shm_fd;
-       int wait_fd;
-       uint64_t memory_map_size;
-};
-
 int ustctl_register_done(int sock);
 int ustctl_create_session(int sock);
 int ustctl_open_metadata(int sock, int session_handle,
index d9339e91cd958135cd3fc83c2dcd3ae1a1f7d12d..386b755905a3deb7389887c541368dfa70db487f 100644 (file)
 #define MAX_NR_STREAMS 64
 #define MAX_NR_EVENTS  128
 
-struct lttng_ust_object_data {
-       int handle;
-       int shm_fd;
-       int wait_fd;
-       uint64_t memory_map_size;
-};
-
 static int session_handle;
 static struct lttng_ust_object_data metadata_stream_data;
 static struct lttng_ust_object_data metadata_data;
index 130da70450637d3d689260a0d02e8df21f5262b6..2869b0e0c13d30f3d75d6900cb4762c2b5f15170 100644 (file)
@@ -51,13 +51,6 @@ const char *evname[] = {
        "ust_tests_hello_dontexist",
 };
 
-struct lttng_ust_object_data {
-       int handle;
-       int shm_fd;
-       int wait_fd;
-       uint64_t memory_map_size;
-};
-
 static int session_handle[NR_SESSIONS];
 static struct lttng_ust_object_data metadata_stream_data[NR_SESSIONS];
 static struct lttng_ust_object_data metadata_data[NR_SESSIONS];
This page took 0.027966 seconds and 4 git commands to generate.