lkml.org 
[lkml]   [2016]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 09/12] tracing: declare __{start,stop}_syscalls_metadata as external array
Date
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.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
\
 
 \ /
  Last update: 2016-10-16 18:13    [W:0.155 / U:2.052 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site