[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20161016151616.31451-10-vegard.nossum@oracle.com>
Date: Sun, 16 Oct 2016 17:16:13 +0200
From: Vegard Nossum <vegard.nossum@...cle.com>
To: linux-kernel@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Jiri Slaby <jslaby@...e.cz>,
Linus Torvalds <torvalds@...ux-foundation.org>,
"Luis R . Rodriguez" <mcgrof@...nel.org>,
Vegard Nossum <vegard.nossum@...cle.com>,
Steven Rostedt <rostedt@...dmis.org>
Subject: [PATCH 09/12] tracing: declare __{start,stop}_syscalls_metadata as external array
Cc: Steven Rostedt <rostedt@...dmis.org>
Signed-off-by: Vegard Nossum <vegard.nossum@...cle.com>
---
kernel/trace/trace_syscalls.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c
index 5e10395..2b1c1c3 100644
--- a/kernel/trace/trace_syscalls.c
+++ b/kernel/trace/trace_syscalls.c
@@ -1,5 +1,6 @@
#include <trace/syscall.h>
#include <trace/events/syscalls.h>
+#include <linux/extarray.h>
#include <linux/syscalls.h>
#include <linux/slab.h>
#include <linux/kernel.h>
@@ -26,8 +27,7 @@ syscall_get_enter_fields(struct trace_event_call *call)
return &entry->enter_fields;
}
-extern struct syscall_metadata *__start_syscalls_metadata[];
-extern struct syscall_metadata *__stop_syscalls_metadata[];
+DECLARE_EXTARRAY(struct syscall_metadata *, syscalls_metadata);
static struct syscall_metadata **syscalls_metadata;
@@ -84,8 +84,8 @@ find_syscall_meta(unsigned long syscall)
char str[KSYM_SYMBOL_LEN];
- start = __start_syscalls_metadata;
- stop = __stop_syscalls_metadata;
+ start = ext_start(syscalls_metadata);
+ stop = ext_end(syscalls_metadata);
kallsyms_lookup(syscall, NULL, NULL, NULL, str);
if (arch_syscall_match_sym_name(str, "sys_ni_syscall"))
--
2.10.0.479.g221bd91
Powered by blists - more mailing lists