fix: net: skb: introduce kfree_skb_reason() (v5.15.58..v5.16)
[lttng-modules.git] / lttng-context-migratable.c
index bb44c653b4eaeec3164e7913ac4c75b1c4bb82ad..65154b8b0d0b73f00ac1fcc1934c87855ce7141d 100644 (file)
@@ -31,7 +31,7 @@ void migratable_record(struct lttng_ctx_field *field,
                struct lib_ring_buffer_ctx *ctx,
                struct lttng_channel *chan)
 {
-       uint8_t migratable = !__migrate_disabled(current);
+       uint8_t migratable = !current->migrate_disable;
 
        lib_ring_buffer_align_ctx(ctx, lttng_alignof(migratable));
        chan->ops->event_write(ctx, &migratable, sizeof(migratable));
@@ -42,7 +42,7 @@ void migratable_get_value(struct lttng_ctx_field *field,
                struct lttng_probe_ctx *lttng_probe_ctx,
                union lttng_ctx_value *value)
 {
-       value->s64 = !__migrate_disabled(current);
+       value->s64 = !current->migrate_disable;
 }
 
 int lttng_add_migratable_to_ctx(struct lttng_ctx **ctx)
@@ -68,7 +68,7 @@ int lttng_add_migratable_to_ctx(struct lttng_ctx **ctx)
        field->record = migratable_record;
        field->get_value = migratable_get_value;
        lttng_context_update(*ctx);
-       wrapper_vmalloc_sync_all();
+       wrapper_vmalloc_sync_mappings();
        return 0;
 }
 EXPORT_SYMBOL_GPL(lttng_add_migratable_to_ctx);
This page took 0.023348 seconds and 4 git commands to generate.