X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttng-syscalls.c;h=a1bc9d422a1fd1d23b67b96827c7dc5eaba8544b;hb=73e8ba371039bc05745a739db4d69b4220a1c03e;hp=b8a1813c7c5f3506d1dd8fdd12b334863d7134de;hpb=f8695253467b480087663426f4b97c02c443f08c;p=lttng-modules.git diff --git a/lttng-syscalls.c b/lttng-syscalls.c index b8a1813c..a1bc9d42 100644 --- a/lttng-syscalls.c +++ b/lttng-syscalls.c @@ -1,11 +1,23 @@ /* * lttng-syscalls.c * - * Copyright 2010-2011 (c) - Mathieu Desnoyers - * * LTTng syscall probes. * - * Dual LGPL v2.1/GPL v2 license. + * Copyright (C) 2010-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 */ #include @@ -17,10 +29,9 @@ #include "lttng-events.h" #ifndef CONFIG_COMPAT -static inline int is_compat_task(void) -{ - return 0; -} +# ifndef is_compat_task +# define is_compat_task() (0) +# endif #endif static @@ -38,7 +49,7 @@ void syscall_entry_probe(void *__data, struct pt_regs *regs, long id); */ #define LTTNG_PACKAGE_BUILD #define CREATE_TRACE_POINTS -#define TP_MODULE_OVERRIDE +#define TP_MODULE_NOINIT #define TRACE_INCLUDE_PATH ../instrumentation/syscalls/headers #define PARAMS(args...) args @@ -96,7 +107,7 @@ void syscall_entry_probe(void *__data, struct pt_regs *regs, long id); #undef SC_DEFINE_EVENT_NOARGS #undef TP_PROBE_CB -#undef TP_MODULE_OVERRIDE +#undef TP_MODULE_NOINIT #undef LTTNG_PACKAGE_BUILD #undef CREATE_TRACE_POINTS