#include <string.h>
#include <assert.h>
+#include "context-internal.h"
+
/*
* The filter implementation requires that two consecutive "get" for the
* same context performed by the same thread return the same result.
return ret;
}
-int lttng_session_context_init(struct lttng_ctx **ctx)
+int lttng_context_init_all(struct lttng_ctx **ctx)
{
int ret;
WARN("Cannot add context lttng_add_pid_ns_to_ctx");
goto error;
}
+ ret = lttng_add_time_ns_to_ctx(ctx);
+ if (ret) {
+ WARN("Cannot add context lttng_add_time_ns_to_ctx");
+ goto error;
+ }
ret = lttng_add_user_ns_to_ctx(ctx);
if (ret) {
WARN("Cannot add context lttng_add_user_ns_to_ctx");
void lttng_context_exit(void)
{
}
+
+int lttng_session_context_init(struct lttng_ctx **ctx)
+{
+ return 0;
+}