projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add userspace time namespace context
[lttng-ust.git]
/
liblttng-ust
/
lttng-events.c
diff --git
a/liblttng-ust/lttng-events.c
b/liblttng-ust/lttng-events.c
index 825cd60ee21b0b58340f7358a8f52afdb8e1b64f..627cd4e101df4280b5a44b96f4719301c265df9b 100644
(file)
--- a/
liblttng-ust/lttng-events.c
+++ b/
liblttng-ust/lttng-events.c
@@
-920,6
+920,9
@@
int lttng_enabler_ref_events(struct lttng_enabler *enabler)
struct lttng_session *session = enabler->chan->session;
struct lttng_event *event;
struct lttng_session *session = enabler->chan->session;
struct lttng_event *event;
+ if (!enabler->enabled)
+ goto end;
+
/* First ensure that probe events are created for this enabler. */
lttng_create_event_if_missing(enabler);
/* First ensure that probe events are created for this enabler. */
lttng_create_event_if_missing(enabler);
@@
-951,6
+954,7
@@
int lttng_enabler_ref_events(struct lttng_enabler *enabler)
/* TODO: merge event context. */
}
/* TODO: merge event context. */
}
+end:
return 0;
}
return 0;
}
@@
-1141,6
+1145,8
@@
int lttng_attach_context(struct lttng_ust_context *context_param,
return lttng_add_net_ns_to_ctx(ctx);
case LTTNG_UST_CONTEXT_PID_NS:
return lttng_add_pid_ns_to_ctx(ctx);
return lttng_add_net_ns_to_ctx(ctx);
case LTTNG_UST_CONTEXT_PID_NS:
return lttng_add_pid_ns_to_ctx(ctx);
+ case LTTNG_UST_CONTEXT_TIME_NS:
+ return lttng_add_time_ns_to_ctx(ctx);
case LTTNG_UST_CONTEXT_USER_NS:
return lttng_add_user_ns_to_ctx(ctx);
case LTTNG_UST_CONTEXT_UTS_NS:
case LTTNG_UST_CONTEXT_USER_NS:
return lttng_add_user_ns_to_ctx(ctx);
case LTTNG_UST_CONTEXT_UTS_NS:
This page took
0.023096 seconds
and
4
git commands to generate.