aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2015-05-05 13:18:46 -0400
committerSteven Rostedt <rostedt@goodmis.org>2015-05-13 14:06:36 -0400
commit3f795dcfc7364cd811c3f6f03d115fcefbbdc1ca (patch)
treefd52b094781b8b852227dad616a17a110772fd68
parent2425bcb9240f8c97d793cb31c8e8d8d0a843fa29 (diff)
tracing: Rename ftrace_event_buffer to trace_event_buffer.
The name "ftrace" really refers to the function hook infrastructure. It is not about the trace_events. The ftrace_event_buffer functions and data structures are for trace_events and not for function hooks. Rename them to trace_event_buffer*. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--include/linux/trace_events.h6
-rw-r--r--include/trace/perf.h6
-rw-r--r--kernel/trace/trace_events.c14
3 files changed, 13 insertions, 13 deletions
diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h
index d10ab04a17b2..a1fa8ebaf684 100644
--- a/include/linux/trace_events.h
+++ b/include/linux/trace_events.h
@@ -219,7 +219,7 @@ struct trace_event_class {
219extern int trace_event_reg(struct trace_event_call *event, 219extern int trace_event_reg(struct trace_event_call *event,
220 enum trace_reg type, void *data); 220 enum trace_reg type, void *data);
221 221
222struct ftrace_event_buffer { 222struct trace_event_buffer {
223 struct ring_buffer *buffer; 223 struct ring_buffer *buffer;
224 struct ring_buffer_event *event; 224 struct ring_buffer_event *event;
225 struct trace_event_file *trace_file; 225 struct trace_event_file *trace_file;
@@ -228,11 +228,11 @@ struct ftrace_event_buffer {
228 int pc; 228 int pc;
229}; 229};
230 230
231void *ftrace_event_buffer_reserve(struct ftrace_event_buffer *fbuffer, 231void *trace_event_buffer_reserve(struct trace_event_buffer *fbuffer,
232 struct trace_event_file *trace_file, 232 struct trace_event_file *trace_file,
233 unsigned long len); 233 unsigned long len);
234 234
235void ftrace_event_buffer_commit(struct ftrace_event_buffer *fbuffer); 235void trace_event_buffer_commit(struct trace_event_buffer *fbuffer);
236 236
237enum { 237enum {
238 TRACE_EVENT_FL_FILTERED_BIT, 238 TRACE_EVENT_FL_FILTERED_BIT,
diff --git a/include/trace/perf.h b/include/trace/perf.h
index 1d10c2d2b2c4..b1d7399df449 100644
--- a/include/trace/perf.h
+++ b/include/trace/perf.h
@@ -155,7 +155,7 @@ ftrace_raw_event_##call(void *__data, proto) \
155{ \ 155{ \
156 struct trace_event_file *trace_file = __data; \ 156 struct trace_event_file *trace_file = __data; \
157 struct ftrace_data_offsets_##call __maybe_unused __data_offsets;\ 157 struct ftrace_data_offsets_##call __maybe_unused __data_offsets;\
158 struct ftrace_event_buffer fbuffer; \ 158 struct trace_event_buffer fbuffer; \
159 struct ftrace_raw_##call *entry; \ 159 struct ftrace_raw_##call *entry; \
160 int __data_size; \ 160 int __data_size; \
161 \ 161 \
@@ -164,7 +164,7 @@ ftrace_raw_event_##call(void *__data, proto) \
164 \ 164 \
165 __data_size = ftrace_get_offsets_##call(&__data_offsets, args); \ 165 __data_size = ftrace_get_offsets_##call(&__data_offsets, args); \
166 \ 166 \
167 entry = ftrace_event_buffer_reserve(&fbuffer, trace_file, \ 167 entry = trace_event_buffer_reserve(&fbuffer, trace_file, \
168 sizeof(*entry) + __data_size); \ 168 sizeof(*entry) + __data_size); \
169 \ 169 \
170 if (!entry) \ 170 if (!entry) \
@@ -174,7 +174,7 @@ ftrace_raw_event_##call(void *__data, proto) \
174 \ 174 \
175 { assign; } \ 175 { assign; } \
176 \ 176 \
177 ftrace_event_buffer_commit(&fbuffer); \ 177 trace_event_buffer_commit(&fbuffer); \
178} 178}
179/* 179/*
180 * The ftrace_test_probe is compiled out, it is only here as a build time check 180 * The ftrace_test_probe is compiled out, it is only here as a build time check
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
index 8df615ce3dc4..e5638c43b04d 100644
--- a/kernel/trace/trace_events.c
+++ b/kernel/trace/trace_events.c
@@ -190,9 +190,9 @@ int trace_event_raw_init(struct trace_event_call *call)
190} 190}
191EXPORT_SYMBOL_GPL(trace_event_raw_init); 191EXPORT_SYMBOL_GPL(trace_event_raw_init);
192 192
193void *ftrace_event_buffer_reserve(struct ftrace_event_buffer *fbuffer, 193void *trace_event_buffer_reserve(struct trace_event_buffer *fbuffer,
194 struct trace_event_file *trace_file, 194 struct trace_event_file *trace_file,
195 unsigned long len) 195 unsigned long len)
196{ 196{
197 struct trace_event_call *event_call = trace_file->event_call; 197 struct trace_event_call *event_call = trace_file->event_call;
198 198
@@ -210,11 +210,11 @@ void *ftrace_event_buffer_reserve(struct ftrace_event_buffer *fbuffer,
210 fbuffer->entry = ring_buffer_event_data(fbuffer->event); 210 fbuffer->entry = ring_buffer_event_data(fbuffer->event);
211 return fbuffer->entry; 211 return fbuffer->entry;
212} 212}
213EXPORT_SYMBOL_GPL(ftrace_event_buffer_reserve); 213EXPORT_SYMBOL_GPL(trace_event_buffer_reserve);
214 214
215static DEFINE_SPINLOCK(tracepoint_iter_lock); 215static DEFINE_SPINLOCK(tracepoint_iter_lock);
216 216
217static void output_printk(struct ftrace_event_buffer *fbuffer) 217static void output_printk(struct trace_event_buffer *fbuffer)
218{ 218{
219 struct trace_event_call *event_call; 219 struct trace_event_call *event_call;
220 struct trace_event *event; 220 struct trace_event *event;
@@ -241,7 +241,7 @@ static void output_printk(struct ftrace_event_buffer *fbuffer)
241 spin_unlock_irqrestore(&tracepoint_iter_lock, flags); 241 spin_unlock_irqrestore(&tracepoint_iter_lock, flags);
242} 242}
243 243
244void ftrace_event_buffer_commit(struct ftrace_event_buffer *fbuffer) 244void trace_event_buffer_commit(struct trace_event_buffer *fbuffer)
245{ 245{
246 if (tracepoint_printk) 246 if (tracepoint_printk)
247 output_printk(fbuffer); 247 output_printk(fbuffer);
@@ -250,7 +250,7 @@ void ftrace_event_buffer_commit(struct ftrace_event_buffer *fbuffer)
250 fbuffer->event, fbuffer->entry, 250 fbuffer->event, fbuffer->entry,
251 fbuffer->flags, fbuffer->pc); 251 fbuffer->flags, fbuffer->pc);
252} 252}
253EXPORT_SYMBOL_GPL(ftrace_event_buffer_commit); 253EXPORT_SYMBOL_GPL(trace_event_buffer_commit);
254 254
255int trace_event_reg(struct trace_event_call *call, 255int trace_event_reg(struct trace_event_call *call,
256 enum trace_reg type, void *data) 256 enum trace_reg type, void *data)