#define TRACEPOINT_DEFINE
#include "ust_tests_hello.h"
-/* Internal header. */
#include <lttng/ust-events.h>
-#include <lttng/ringbuffer-config.h>
+#include <lttng/ringbuffer-context.h>
+/* Internal header. */
#include <ust-context-provider.h>
static __thread unsigned int test_count;
}
static
-size_t test_get_size(struct lttng_ctx_field *field, size_t offset)
+size_t test_get_size(struct lttng_ust_ctx_field *field, size_t offset)
{
int sel = test_count % _NR_LTTNG_UST_DYNAMIC_TYPES;
size_t size = 0;
}
static
-void test_record(struct lttng_ctx_field *field,
+void test_record(struct lttng_ust_ctx_field *field,
struct lttng_ust_lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
}
static
-void test_get_value(struct lttng_ctx_field *field,
- struct lttng_ctx_value *value)
+void test_get_value(struct lttng_ust_ctx_field *field,
+ struct lttng_ust_ctx_value *value)
{
int sel = test_count % _NR_LTTNG_UST_DYNAMIC_TYPES;
}
struct lttng_ust_context_provider myprovider = {
+ .struct_size = sizeof(struct lttng_ust_context_provider),
.name = "$app.myprovider",
.get_size = test_get_size,
.record = test_record,