diff options
Diffstat (limited to 'kernel/trace/trace_events.c')
-rw-r--r-- | kernel/trace/trace_events.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index 1d18315dc836..8ed66e0d476b 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c | |||
@@ -105,6 +105,20 @@ void trace_destroy_fields(struct ftrace_event_call *call) | |||
105 | } | 105 | } |
106 | } | 106 | } |
107 | 107 | ||
108 | int trace_event_raw_init(struct ftrace_event_call *call) | ||
109 | { | ||
110 | int id; | ||
111 | |||
112 | id = register_ftrace_event(call->event); | ||
113 | if (!id) | ||
114 | return -ENODEV; | ||
115 | call->id = id; | ||
116 | INIT_LIST_HEAD(&call->fields); | ||
117 | |||
118 | return 0; | ||
119 | } | ||
120 | EXPORT_SYMBOL_GPL(trace_event_raw_init); | ||
121 | |||
108 | static void ftrace_event_enable_disable(struct ftrace_event_call *call, | 122 | static void ftrace_event_enable_disable(struct ftrace_event_call *call, |
109 | int enable) | 123 | int enable) |
110 | { | 124 | { |