2 * Copyright (C) 2011 Mathieu Desnoyers (mathieu.desnoyers@efficios.com)
4 * wrapper around vmalloc_sync_all. Using KALLSYMS to get its address when
5 * available, else we need to have a kernel that exports this function to GPL
8 * Dual LGPL v2.1/GPL v2 license.
11 #ifdef CONFIG_KALLSYMS
13 #include <linux/kallsyms.h>
16 void wrapper_vmalloc_sync_all(void)
18 void (*vmalloc_sync_all_sym
)(void);
20 vmalloc_sync_all_sym
= (void *) kallsyms_lookup_name("vmalloc_sync_all");
21 if (vmalloc_sync_all_sym
) {
22 vmalloc_sync_all_sym();
26 * Only x86 needs vmalloc_sync_all to make sure LTTng does not
27 * trigger recursive page faults.
29 printk(KERN_WARNING
"LTTng: vmalloc_sync_all symbol lookup failed.\n");
30 printk(KERN_WARNING
"Page fault handler and NMI tracing might trigger faults.\n");
36 #include <linux/vmalloc.h>
39 void wrapper_vmalloc_sync_all(void)
41 return vmalloc_sync_all();
This page took 0.031597 seconds and 4 git commands to generate.