Rename symbols.h to vmalloc.h
[lttng-modules.git] / ltt-ring-buffer-client.h
index c2e53f35c697efc338c26e76d5599de28ba669db..219f69be239e67a41a025a90f80d1b055c7694b5 100644 (file)
@@ -10,7 +10,8 @@
 
 #include <linux/module.h>
 #include <linux/types.h>
-#include <linux/trace-clock.h>
+#include "wrapper/vmalloc.h"   /* for wrapper_vmalloc_sync_all() */
+#include "wrapper/trace-clock.h"
 #include "ltt-events.h"
 #include "ltt-tracer.h"
 
@@ -198,6 +199,11 @@ static struct ltt_transport ltt_relay_transport = {
 
 static int __init ltt_ring_buffer_client_init(void)
 {
+       /*
+        * This vmalloc sync all also takes care of the lib ring buffer
+        * vmalloc'd module pages when it is built as a module into LTTng.
+        */
+       wrapper_vmalloc_sync_all();
        printk(KERN_INFO "LTT : ltt ring buffer client init\n");
        ltt_transport_register(&ltt_relay_transport);
        return 0;
This page took 0.023933 seconds and 4 git commands to generate.