#include <stdlib.h>
#include <stdbool.h>
-#define TRACEPOINT_DEFINE
+#define LTTNG_UST_TRACEPOINT_DEFINE
#include "ust_tests_hello.h"
#include <lttng/ust-events.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
/* Internal header. */
#include <common/ust-context-provider.h>
}
static
-size_t test_get_size(void *priv __attribute__((unused)), size_t offset)
+size_t test_get_size(void *priv __attribute__((unused)),
+ struct lttng_ust_probe_ctx *probe_ctx __attribute__((unused)),
+ size_t offset)
{
int sel = test_count % _NR_LTTNG_UST_DYNAMIC_TYPES;
size_t size = 0;
static
void test_record(void *priv __attribute__((unused)),
+ struct lttng_ust_probe_ctx *probe_ctx __attribute__((unused)),
struct lttng_ust_ring_buffer_ctx *ctx,
struct lttng_ust_channel_buffer *lttng_chan_buf)
{
static
void test_get_value(void *priv __attribute__((unused)),
+ struct lttng_ust_probe_ctx *probe_ctx __attribute__((unused)),
struct lttng_ust_ctx_value *value)
{
int sel = test_count % _NR_LTTNG_UST_DYNAMIC_TYPES;
void inthandler(int sig __attribute__((unused)))
{
printf("in SIGUSR1 handler\n");
- tracepoint(ust_tests_hello, tptest_sighandler);
+ lttng_ust_tracepoint(ust_tests_hello, tptest_sighandler);
}
static
fprintf(stderr, "Tracing... ");
for (i = 0; i < 1000000; i++) {
netint = htonl(i);
- tracepoint(ust_tests_hello, tptest, i, netint, values,
+ lttng_ust_tracepoint(ust_tests_hello, tptest, i, netint, values,
text, strlen(text), dbl, flt, mybool);
test_inc_count();
//usleep(100000);