X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-context-net-ns.c;h=32f0b599cda06c18e55390134ada76fd0f51932b;hb=refs%2Fheads%2Fstable-2.12;hp=6694037fbfbf81da6a58ddf48d6e2a7c1b55a5ce;hpb=7b1edb4cd748bfaac6a321946878ad7aaf7016d8;p=lttng-modules.git diff --git a/lttng-context-net-ns.c b/lttng-context-net-ns.c index 6694037f..32f0b599 100644 --- a/lttng-context-net-ns.c +++ b/lttng-context-net-ns.c @@ -21,7 +21,7 @@ #include #if defined(CONFIG_NET_NS) && \ - (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) + (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,8,0)) static size_t net_ns_get_size(size_t offset) @@ -97,7 +97,7 @@ int lttng_add_net_ns_to_ctx(struct lttng_ctx **ctx) field->record = net_ns_record; field->get_value = net_ns_get_value; lttng_context_update(*ctx); - wrapper_vmalloc_sync_all(); + wrapper_vmalloc_sync_mappings(); return 0; } EXPORT_SYMBOL_GPL(lttng_add_net_ns_to_ctx);