#include <lttng/lttng.h>
#include <bin/lttng-sessiond/lttng-ust-abi.h>
-#include <common/lttng-share.h>
+#include <common/defaults.h>
#include <bin/lttng-sessiond/trace-ust.h>
#include "utils.h"
static void create_ust_context(void)
{
- struct lttng_event_context ctx;
+ struct lttng_event_context ectx;
struct ltt_ust_context *uctx;
+ ectx.ctx = LTTNG_EVENT_CONTEXT_VTID;
+
printf("Creating UST context: ");
- uctx = trace_ust_create_context(&ctx);
+ uctx = trace_ust_create_context(&ectx);
assert(uctx != NULL);
PRINT_OK();
printf("Validating UST context: ");
- assert((int) ctx.ctx == (int)uctx->ctx.ctx);
+ assert((int) uctx->ctx.ctx == LTTNG_UST_CONTEXT_VTID);
PRINT_OK();
}