projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Don't notify agent of non-app context addition
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
context.c
diff --git
a/src/bin/lttng-sessiond/context.c
b/src/bin/lttng-sessiond/context.c
index 1725c6a107d429616b09dab83d01623ba722ad2a..9a5738799192a7a26de2cab6e04b361477ac6bd7 100644
(file)
--- 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:
{
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);
if (!agt) {
agt = agent_create(domain);
This page took
0.023438 seconds
and
4
git commands to generate.