Fix: block instrumentation: < 3.14 don't have bi_iter
[lttng-modules.git] / instrumentation / syscalls / lttng-syscalls-extractor / lttng-syscalls-extractor.c
index 2eb1cda23a9773b35d57952380287f41c7c4fa46..71197468986377b30153683cd7f81bee6f01ee4a 100644 (file)
@@ -1,10 +1,24 @@
 /*
+ * lttng-syscalls-extractor.c
+ *
+ * Dump syscall metadata to console.
+ *
  * Copyright 2011 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  * Copyright 2011 - Julien Desfossez <julien.desfossez@polymtl.ca>
  *
- * Dump syscall metadata to console.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * GPLv2 license.
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 #include <linux/module.h>
 #include <linux/dcache.h>
 #include <linux/ftrace_event.h>
 #include <trace/syscall.h>
+#include <asm/syscall.h>
 
 #ifndef CONFIG_FTRACE_SYSCALLS
 #error "You need to set CONFIG_FTRACE_SYSCALLS=y"
 #endif
 
+#ifndef CONFIG_KALLSYMS_ALL
+#error "You need to set CONFIG_KALLSYMS_ALL=y"
+#endif
+
 static struct syscall_metadata **__start_syscalls_metadata;
 static struct syscall_metadata **__stop_syscalls_metadata;
 
This page took 0.023976 seconds and 4 git commands to generate.