[lttng-dev] [PATCH 01/11] mm: export vmalloc_sync_all symbol to GPL modules

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Thu Dec 1 16:41:13 EST 2011


LTTng needs this symbol exported. It calls it to ensure its tracing
buffers and allocated data structures never trigger a page fault. This
is required to handle page fault handler tracing and NMI tracing
gracefully.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
CC: Linus Torvalds <torvalds at linux-foundation.org>
CC: Christoph Hellwig <hch at infradead.org>
CC: Christoph Lameter <cl at linux-foundation.org>
CC: Tejun Heo <tj at kernel.org>
CC: David Howells <dhowells at redhat.com>
CC: David McCullough <davidm at snapgear.com>
CC: D Jeff Dionne <jeff at uClinux.org>
CC: Greg Ungerer <gerg at snapgear.com>
CC: Paul Mundt <lethal at linux-sh.org>
CC: linux-mm at kvack.org
CC: linux-kernel at vger.kernel.org
CC: Greg KH <greg at kroah.com>
---
 mm/nommu.c   |    1 +
 mm/vmalloc.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/mm/nommu.c b/mm/nommu.c
index b982290..b22a0d9 100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
@@ -441,6 +441,7 @@ EXPORT_SYMBOL_GPL(vm_unmap_aliases);
 void  __attribute__((weak)) vmalloc_sync_all(void)
 {
 }
+EXPORT_SYMBOL_GPL(vmalloc_sync_all);
 
 /**
  *	alloc_vm_area - allocate a range of kernel address space
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 3231bf3..37ddce5 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -2137,6 +2137,7 @@ EXPORT_SYMBOL(remap_vmalloc_range);
 void  __attribute__((weak)) vmalloc_sync_all(void)
 {
 }
+EXPORT_SYMBOL_GPL(vmalloc_sync_all);
 
 
 static int f(pte_t *pte, pgtable_t table, unsigned long addr, void *data)
-- 
1.7.5.4




More information about the lttng-dev mailing list