Compare provider and context names in trace_ust_match_context
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 3 Feb 2016 23:51:29 +0000 (18:51 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 12 Feb 2016 22:54:03 +0000 (17:54 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/trace-ust.c

index 4ed8fb1a554868c10fa17f150f561f3eae808ee9..1c325fb259b24ca497618dbe1ba309052be8266b 100644 (file)
@@ -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;
 
This page took 0.026064 seconds and 4 git commands to generate.