diff options
| author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-05-05 14:18:11 -0400 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2015-05-13 14:06:41 -0400 |
| commit | 892c505aac2bdded3c8ec2ec27abc6d74fd210f5 (patch) | |
| tree | 10fe9d8fa127bd84f4829103f31c3693c03fe3ab | |
| parent | 3f795dcfc7364cd811c3f6f03d115fcefbbdc1ca (diff) | |
tracing: Rename ftrace_output functions to trace_output
The name "ftrace" really refers to the function hook infrastructure. It
is not about the trace_events. The ftrace_output_*() and ftrace_raw_output_*()
functions represent the trace_event code. Rename them to just trace_output
or trace_raw_output.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| -rw-r--r-- | include/linux/trace_events.h | 6 | ||||
| -rw-r--r-- | include/trace/perf.h | 2 | ||||
| -rw-r--r-- | include/trace/trace_events.h | 16 | ||||
| -rw-r--r-- | kernel/trace/trace_output.c | 16 |
4 files changed, 20 insertions, 20 deletions
diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h index a1fa8ebaf684..12ca46322a94 100644 --- a/include/linux/trace_events.h +++ b/include/linux/trace_events.h | |||
| @@ -52,8 +52,8 @@ const char *trace_print_array_seq(struct trace_seq *p, | |||
| 52 | struct trace_iterator; | 52 | struct trace_iterator; |
| 53 | struct trace_event; | 53 | struct trace_event; |
| 54 | 54 | ||
| 55 | int ftrace_raw_output_prep(struct trace_iterator *iter, | 55 | int trace_raw_output_prep(struct trace_iterator *iter, |
| 56 | struct trace_event *event); | 56 | struct trace_event *event); |
| 57 | 57 | ||
| 58 | /* | 58 | /* |
| 59 | * The trace entry - the most basic unit of tracing. This is what | 59 | * The trace entry - the most basic unit of tracing. This is what |
| @@ -183,7 +183,7 @@ void trace_current_buffer_discard_commit(struct ring_buffer *buffer, | |||
| 183 | 183 | ||
| 184 | void tracing_record_cmdline(struct task_struct *tsk); | 184 | void tracing_record_cmdline(struct task_struct *tsk); |
| 185 | 185 | ||
| 186 | int ftrace_output_call(struct trace_iterator *iter, char *name, char *fmt, ...); | 186 | int trace_output_call(struct trace_iterator *iter, char *name, char *fmt, ...); |
| 187 | 187 | ||
| 188 | struct event_filter; | 188 | struct event_filter; |
| 189 | 189 | ||
diff --git a/include/trace/perf.h b/include/trace/perf.h index b1d7399df449..0dbdbfe0ec41 100644 --- a/include/trace/perf.h +++ b/include/trace/perf.h | |||
| @@ -58,7 +58,7 @@ | |||
| 58 | * } | 58 | * } |
| 59 | * | 59 | * |
| 60 | * static struct trace_event ftrace_event_type_<call> = { | 60 | * static struct trace_event ftrace_event_type_<call> = { |
| 61 | * .trace = ftrace_raw_output_<call>, <-- stage 2 | 61 | * .trace = trace_raw_output_<call>, <-- stage 2 |
| 62 | * }; | 62 | * }; |
| 63 | * | 63 | * |
| 64 | * static char print_fmt_<call>[] = <TP_printk>; | 64 | * static char print_fmt_<call>[] = <TP_printk>; |
diff --git a/include/trace/trace_events.h b/include/trace/trace_events.h index c6f826136b8c..ab927dd32149 100644 --- a/include/trace/trace_events.h +++ b/include/trace/trace_events.h | |||
| @@ -203,7 +203,7 @@ TRACE_MAKE_SYSTEM_STR(); | |||
| 203 | * Override the macros in <trace/trace_events.h> to include the following: | 203 | * Override the macros in <trace/trace_events.h> to include the following: |
| 204 | * | 204 | * |
| 205 | * enum print_line_t | 205 | * enum print_line_t |
| 206 | * ftrace_raw_output_<call>(struct trace_iterator *iter, int flags) | 206 | * trace_raw_output_<call>(struct trace_iterator *iter, int flags) |
| 207 | * { | 207 | * { |
| 208 | * struct trace_seq *s = &iter->seq; | 208 | * struct trace_seq *s = &iter->seq; |
| 209 | * struct ftrace_raw_<call> *field; <-- defined in stage 1 | 209 | * struct ftrace_raw_<call> *field; <-- defined in stage 1 |
| @@ -304,8 +304,8 @@ TRACE_MAKE_SYSTEM_STR(); | |||
| 304 | #undef DECLARE_EVENT_CLASS | 304 | #undef DECLARE_EVENT_CLASS |
| 305 | #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ | 305 | #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ |
| 306 | static notrace enum print_line_t \ | 306 | static notrace enum print_line_t \ |
| 307 | ftrace_raw_output_##call(struct trace_iterator *iter, int flags, \ | 307 | trace_raw_output_##call(struct trace_iterator *iter, int flags, \ |
| 308 | struct trace_event *trace_event) \ | 308 | struct trace_event *trace_event) \ |
| 309 | { \ | 309 | { \ |
| 310 | struct trace_seq *s = &iter->seq; \ | 310 | struct trace_seq *s = &iter->seq; \ |
| 311 | struct trace_seq __maybe_unused *p = &iter->tmp_seq; \ | 311 | struct trace_seq __maybe_unused *p = &iter->tmp_seq; \ |
| @@ -314,7 +314,7 @@ ftrace_raw_output_##call(struct trace_iterator *iter, int flags, \ | |||
| 314 | \ | 314 | \ |
| 315 | field = (typeof(field))iter->ent; \ | 315 | field = (typeof(field))iter->ent; \ |
| 316 | \ | 316 | \ |
| 317 | ret = ftrace_raw_output_prep(iter, trace_event); \ | 317 | ret = trace_raw_output_prep(iter, trace_event); \ |
| 318 | if (ret != TRACE_TYPE_HANDLED) \ | 318 | if (ret != TRACE_TYPE_HANDLED) \ |
| 319 | return ret; \ | 319 | return ret; \ |
| 320 | \ | 320 | \ |
| @@ -323,13 +323,13 @@ ftrace_raw_output_##call(struct trace_iterator *iter, int flags, \ | |||
| 323 | return trace_handle_return(s); \ | 323 | return trace_handle_return(s); \ |
| 324 | } \ | 324 | } \ |
| 325 | static struct trace_event_functions ftrace_event_type_funcs_##call = { \ | 325 | static struct trace_event_functions ftrace_event_type_funcs_##call = { \ |
| 326 | .trace = ftrace_raw_output_##call, \ | 326 | .trace = trace_raw_output_##call, \ |
| 327 | }; | 327 | }; |
| 328 | 328 | ||
| 329 | #undef DEFINE_EVENT_PRINT | 329 | #undef DEFINE_EVENT_PRINT |
| 330 | #define DEFINE_EVENT_PRINT(template, call, proto, args, print) \ | 330 | #define DEFINE_EVENT_PRINT(template, call, proto, args, print) \ |
| 331 | static notrace enum print_line_t \ | 331 | static notrace enum print_line_t \ |
| 332 | ftrace_raw_output_##call(struct trace_iterator *iter, int flags, \ | 332 | trace_raw_output_##call(struct trace_iterator *iter, int flags, \ |
| 333 | struct trace_event *event) \ | 333 | struct trace_event *event) \ |
| 334 | { \ | 334 | { \ |
| 335 | struct ftrace_raw_##template *field; \ | 335 | struct ftrace_raw_##template *field; \ |
| @@ -346,10 +346,10 @@ ftrace_raw_output_##call(struct trace_iterator *iter, int flags, \ | |||
| 346 | field = (typeof(field))entry; \ | 346 | field = (typeof(field))entry; \ |
| 347 | \ | 347 | \ |
| 348 | trace_seq_init(p); \ | 348 | trace_seq_init(p); \ |
| 349 | return ftrace_output_call(iter, #call, print); \ | 349 | return trace_output_call(iter, #call, print); \ |
| 350 | } \ | 350 | } \ |
| 351 | static struct trace_event_functions ftrace_event_type_funcs_##call = { \ | 351 | static struct trace_event_functions ftrace_event_type_funcs_##call = { \ |
| 352 | .trace = ftrace_raw_output_##call, \ | 352 | .trace = trace_raw_output_##call, \ |
| 353 | }; | 353 | }; |
| 354 | 354 | ||
| 355 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE) | 355 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE) |
diff --git a/kernel/trace/trace_output.c b/kernel/trace/trace_output.c index 21c6525efcef..d1a2feb54d06 100644 --- a/kernel/trace/trace_output.c +++ b/kernel/trace/trace_output.c | |||
| @@ -222,8 +222,8 @@ trace_print_array_seq(struct trace_seq *p, const void *buf, int count, | |||
| 222 | } | 222 | } |
| 223 | EXPORT_SYMBOL(trace_print_array_seq); | 223 | EXPORT_SYMBOL(trace_print_array_seq); |
| 224 | 224 | ||
| 225 | int ftrace_raw_output_prep(struct trace_iterator *iter, | 225 | int trace_raw_output_prep(struct trace_iterator *iter, |
| 226 | struct trace_event *trace_event) | 226 | struct trace_event *trace_event) |
| 227 | { | 227 | { |
| 228 | struct trace_event_call *event; | 228 | struct trace_event_call *event; |
| 229 | struct trace_seq *s = &iter->seq; | 229 | struct trace_seq *s = &iter->seq; |
| @@ -243,10 +243,10 @@ int ftrace_raw_output_prep(struct trace_iterator *iter, | |||
| 243 | 243 | ||
| 244 | return trace_handle_return(s); | 244 | return trace_handle_return(s); |
| 245 | } | 245 | } |
| 246 | EXPORT_SYMBOL(ftrace_raw_output_prep); | 246 | EXPORT_SYMBOL(trace_raw_output_prep); |
| 247 | 247 | ||
| 248 | static int ftrace_output_raw(struct trace_iterator *iter, char *name, | 248 | static int trace_output_raw(struct trace_iterator *iter, char *name, |
| 249 | char *fmt, va_list ap) | 249 | char *fmt, va_list ap) |
| 250 | { | 250 | { |
| 251 | struct trace_seq *s = &iter->seq; | 251 | struct trace_seq *s = &iter->seq; |
| 252 | 252 | ||
| @@ -256,18 +256,18 @@ static int ftrace_output_raw(struct trace_iterator *iter, char *name, | |||
| 256 | return trace_handle_return(s); | 256 | return trace_handle_return(s); |
| 257 | } | 257 | } |
| 258 | 258 | ||
| 259 | int ftrace_output_call(struct trace_iterator *iter, char *name, char *fmt, ...) | 259 | int trace_output_call(struct trace_iterator *iter, char *name, char *fmt, ...) |
| 260 | { | 260 | { |
| 261 | va_list ap; | 261 | va_list ap; |
| 262 | int ret; | 262 | int ret; |
| 263 | 263 | ||
| 264 | va_start(ap, fmt); | 264 | va_start(ap, fmt); |
| 265 | ret = ftrace_output_raw(iter, name, fmt, ap); | 265 | ret = trace_output_raw(iter, name, fmt, ap); |
| 266 | va_end(ap); | 266 | va_end(ap); |
| 267 | 267 | ||
| 268 | return ret; | 268 | return ret; |
| 269 | } | 269 | } |
| 270 | EXPORT_SYMBOL_GPL(ftrace_output_call); | 270 | EXPORT_SYMBOL_GPL(trace_output_call); |
| 271 | 271 | ||
| 272 | #ifdef CONFIG_KRETPROBES | 272 | #ifdef CONFIG_KRETPROBES |
| 273 | static inline const char *kretprobed(const char *name) | 273 | static inline const char *kretprobed(const char *name) |
