From: Jérémie Galarneau Date: Wed, 3 Feb 2016 23:51:29 +0000 (-0500) Subject: Compare provider and context names in trace_ust_match_context X-Git-Tag: v2.8.0-rc1~173 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=54fb33cfaf7d29a831d32f4f81323119ca0499e7;p=lttng-tools.git Compare provider and context names in trace_ust_match_context Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/trace-ust.c b/src/bin/lttng-sessiond/trace-ust.c index 4ed8fb1a5..1c325fb25 100644 --- a/src/bin/lttng-sessiond/trace-ust.c +++ b/src/bin/lttng-sessiond/trace-ust.c @@ -589,6 +589,15 @@ int trace_ust_match_context(struct ltt_ust_context *uctx, return 0; } break; + case LTTNG_UST_CONTEXT_APP_CONTEXT: + assert(uctx->ctx.u.app_ctx.provider_name); + assert(uctx->ctx.u.app_ctx.ctx_name); + if (strcmp(uctx->ctx.u.app_ctx.provider_name, + ctx->u.app_ctx.provider_name) || + strcmp(uctx->ctx.u.app_ctx.ctx_name, + ctx->u.app_ctx.ctx_name)) { + return 0; + } default: break;