From: Jérémie Galarneau Date: Tue, 9 Feb 2016 20:16:49 +0000 (-0500) Subject: Fix: Don't notify agent of non-app context addition X-Git-Tag: v2.8.0-rc1~168 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=442f8c07a767f26de60946a469e0c028cc7d17cb;ds=sidebyside Fix: Don't notify agent of non-app context addition Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/context.c b/src/bin/lttng-sessiond/context.c index 1725c6a10..9a5738799 100644 --- a/src/bin/lttng-sessiond/context.c +++ b/src/bin/lttng-sessiond/context.c @@ -113,7 +113,13 @@ static int add_uctx_to_channel(struct ltt_ust_session *usess, case LTTNG_DOMAIN_JUL: case LTTNG_DOMAIN_LOG4J: { - struct agent *agt = trace_ust_find_agent(usess, domain); + struct agent *agt; + + if (ctx->ctx != LTTNG_EVENT_CONTEXT_APP_CONTEXT) { + /* Other contexts are not needed by the agent. */ + break; + } + agt = trace_ust_find_agent(usess, domain); if (!agt) { agt = agent_create(domain);