Add cpu hotplug support for perf counters
[lttng-modules.git] / ltt-context.c
index 8f00bb1bd0067437170efa7aaecd23df8768212e..634694b968d4c06f6cf5066b684c80efc10d68d9 100644 (file)
@@ -45,6 +45,17 @@ struct lttng_ctx_field *lttng_append_context(struct lttng_ctx **ctx_p)
 }
 EXPORT_SYMBOL_GPL(lttng_append_context);
 
+void lttng_remove_context_field(struct lttng_ctx **ctx_p,
+                               struct lttng_ctx_field *field)
+{
+       struct lttng_ctx *ctx;
+
+       ctx = *ctx_p;
+       ctx->nr_fields--;
+       memset(&ctx->fields[ctx->nr_fields], 0, sizeof(struct lttng_ctx_field));
+}
+EXPORT_SYMBOL_GPL(lttng_remove_context_field);
+
 void lttng_destroy_context(struct lttng_ctx *ctx)
 {
        int i;
This page took 0.022923 seconds and 4 git commands to generate.