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 06/12] tracing: declare __{start,stop}_ftrace_events as external array
Date
Cc: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
---
kernel/trace/trace_events.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
index 03c0a48..400162f 100644
--- a/kernel/trace/trace_events.c
+++ b/kernel/trace/trace_events.c
@@ -10,6 +10,7 @@

#define pr_fmt(fmt) fmt

+#include <linux/extarray.h>
#include <linux/workqueue.h>
#include <linux/spinlock.h>
#include <linux/kthread.h>
@@ -2808,8 +2809,7 @@ static void __add_event_to_tracers(struct trace_event_call *call)
__trace_add_new_event(call, tr);
}

-extern struct trace_event_call *__start_ftrace_events[];
-extern struct trace_event_call *__stop_ftrace_events[];
+DECLARE_EXTARRAY(struct trace_event_call *, ftrace_events)

static char bootup_event_buf[COMMAND_LINE_SIZE] __initdata;

@@ -2992,8 +2992,7 @@ static __init int event_trace_enable(void)
if (!tr)
return -ENODEV;

- for_each_event(iter, __start_ftrace_events, __stop_ftrace_events) {
-
+ ext_for_each(iter, ftrace_events) {
call = *iter;
ret = event_init(call);
if (!ret)
--
2.10.0.479.g221bd91
\
 
 \ /
  Last update: 2016-10-16 17:19    [W:0.123 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site