X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=wrapper%2Fvmalloc.h;h=2332439fe34c56515cefcaa4eda787a65ecaf835;hb=e755fa6dfe5943517c02cdfdfe358fd61f462a3d;hp=765f2ad9e22564b18e6d11b1e4dcc824dcf01cdf;hpb=c539a324b020171c10d0fcb100892ac93c17e9e7;p=lttng-modules.git diff --git a/wrapper/vmalloc.h b/wrapper/vmalloc.h index 765f2ad9..2332439f 100644 --- a/wrapper/vmalloc.h +++ b/wrapper/vmalloc.h @@ -1,20 +1,34 @@ -#ifndef _LTT_WRAPPER_VMALLOC_H -#define _LTT_WRAPPER_VMALLOC_H +#ifndef _LTTNG_WRAPPER_VMALLOC_H +#define _LTTNG_WRAPPER_VMALLOC_H /* - * Copyright (C) 2011 Mathieu Desnoyers (mathieu.desnoyers@efficios.com) + * wrapper/vmalloc.h * * wrapper around vmalloc_sync_all. Using KALLSYMS to get its address when * available, else we need to have a kernel that exports this function to GPL * modules. * - * Dual LGPL v2.1/GPL v2 license. + * Copyright (C) 2011-2012 Mathieu Desnoyers + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; only + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifdef CONFIG_KALLSYMS #include -#include "kallsyms.h" +#include static inline void wrapper_vmalloc_sync_all(void) @@ -30,8 +44,8 @@ void wrapper_vmalloc_sync_all(void) * Only x86 needs vmalloc_sync_all to make sure LTTng does not * trigger recursive page faults. */ - printk(KERN_WARNING "LTTng: vmalloc_sync_all symbol lookup failed.\n"); - printk(KERN_WARNING "Page fault handler and NMI tracing might trigger faults.\n"); + printk_once(KERN_WARNING "LTTng: vmalloc_sync_all symbol lookup failed.\n"); + printk_once(KERN_WARNING "Page fault handler and NMI tracing might trigger faults.\n"); #endif } } @@ -46,4 +60,4 @@ void wrapper_vmalloc_sync_all(void) } #endif -#endif /* _LTT_WRAPPER_VMALLOC_H */ +#endif /* _LTTNG_WRAPPER_VMALLOC_H */