__event_len += sizeof(_type);
#undef ctf_array_encoded
-#define ctf_array_encoded(_type, _item, _src, _length) \
+#define ctf_array_encoded(_type, _item, _src, _length, _encoding) \
__event_len += lib_ring_buffer_align(__event_len, lttng_alignof(_type)); \
__event_len += sizeof(_type) * (_length);
__event_align = _tp_max_t(size_t, __event_align, lttng_alignof(_type));
#undef ctf_array_encoded
-#define ctf_array_encoded(_type, _item, _src, _length) \
+#define ctf_array_encoded(_type, _item, _src, _length, _encoding) \
__event_align = _tp_max_t(size_t, __event_align, lttng_alignof(_type));
#undef ctf_sequence_encoded
}
#undef ctf_array_encoded
-#define ctf_array_encoded(_type, _item, _src, _length) \
+#define ctf_array_encoded(_type, _item, _src, _length, _encoding) \
lib_ring_buffer_align_ctx(&ctx, lttng_alignof(_type)); \
__chan->ops->event_write(&ctx, _src, _length);
#include <fcntl.h>
#include <signal.h>
-#include "usterr.h"
-#include "tp.h"
+#include "ust_tests_hello.h"
void inthandler(int sig)
{
result = sigemptyset(&act.sa_mask);
if (result == -1) {
- PERROR("sigemptyset");
+ perror("sigemptyset");
return -1;
}
*/
result = sigaction(SIGUSR1, &act, NULL);
if (result == -1) {
- PERROR("sigaction");
+ perror("sigaction");
return -1;
}
*/
#define TRACEPOINT_CREATE_PROBES
-#include "tp.h"
+#include "ust_tests_hello.h"
+++ /dev/null
-#undef TRACEPOINT_SYSTEM
-#define TRACEPOINT_SYSTEM tp
-
-#if !defined(_TRACEPOINT_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
-#define _TRACEPOINT_TP_H
-
-/*
- * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@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 as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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
- */
-
-#include <ust/tracepoint.h>
-
-TRACEPOINT_EVENT(ust_tests_hello_tptest,
- TP_PROTO(int anint),
- TP_ARGS(anint),
- TP_FIELDS(
- ctf_integer(int, intfield, anint)
- ctf_integer_hex(int, intfield, anint)
- ctf_integer_network(int, intfield, anint)
- ctf_integer_network_hex(int, intfield, anint)
- ))
-
-TRACEPOINT_EVENT_NOARGS(ust_tests_hello_tptest_sighandler,
- TP_FIELDS())
-
-#endif /* _TRACEPOINT_TP_H */
-
-#undef TRACEPOINT_INCLUDE_PATH
-#define TRACEPOINT_INCLUDE_PATH .
-#undef TRACEPOINT_INCLUDE_FILE
-#define TRACEPOINT_INCLUDE_FILE tp
-
-/* This part must be outside protection */
-#include <ust/tracepoint-event.h>
--- /dev/null
+#undef TRACEPOINT_SYSTEM
+#define TRACEPOINT_SYSTEM ust_tests_hello
+
+#if !defined(_TRACEPOINT_UST_TESTS_HELLO_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
+#define _TRACEPOINT_UST_TESTS_HELLO_H
+
+/*
+ * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@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 as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * 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
+ */
+
+#include <ust/tracepoint.h>
+
+TRACEPOINT_EVENT(ust_tests_hello_tptest,
+ TP_PROTO(int anint),
+ TP_ARGS(anint),
+ TP_FIELDS(
+ ctf_integer(int, intfield, anint)
+ ctf_integer_hex(int, intfield2, anint)
+ ctf_integer_network(int, intfield3, anint)
+ ctf_integer_network_hex(int, intfield4, anint)
+ ))
+
+TRACEPOINT_EVENT_NOARGS(ust_tests_hello_tptest_sighandler,
+ TP_FIELDS())
+
+#endif /* _TRACEPOINT_TP_H */
+
+#undef TRACEPOINT_INCLUDE_PATH
+#define TRACEPOINT_INCLUDE_PATH .
+#undef TRACEPOINT_INCLUDE_FILE
+#define TRACEPOINT_INCLUDE_FILE ust_tests_hello
+
+/* This part must be outside protection */
+#include <ust/tracepoint-event.h>