diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-05-13 15:33:52 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-05-13 21:48:58 -0400 |
commit | 62323a148fbeb0258be2c92854d758572bee2a46 (patch) | |
tree | 2a563e6f986afd460ff1e08eba314524c571af31 | |
parent | a7237765730a10d429736f47ac4b89779ec6c534 (diff) |
tracing: Rename ftrace_data_offset_##call to trace_event_data_offset_##call
The name "ftrace" really refers to the function hook infrastructure. It
is not about the trace_events. The structure ftrace_data_offset_##call is
used to find the offsets of dynamically allocated fields in trace_events.
It has nothing to do with function tracing. Rename it.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | include/trace/perf.h | 6 | ||||
-rw-r--r-- | include/trace/trace_events.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/trace/perf.h b/include/trace/perf.h index c3fe3c859a17..1b635c63c600 100644 --- a/include/trace/perf.h +++ b/include/trace/perf.h | |||
@@ -11,7 +11,7 @@ | |||
11 | * { | 11 | * { |
12 | * struct trace_event_file *trace_file = __data; | 12 | * struct trace_event_file *trace_file = __data; |
13 | * struct trace_event_call *event_call = trace_file->event_call; | 13 | * struct trace_event_call *event_call = trace_file->event_call; |
14 | * struct ftrace_data_offsets_<call> __maybe_unused __data_offsets; | 14 | * struct trace_event_data_offsets_<call> __maybe_unused __data_offsets; |
15 | * unsigned long eflags = trace_file->flags; | 15 | * unsigned long eflags = trace_file->flags; |
16 | * enum event_trigger_type __tt = ETT_NONE; | 16 | * enum event_trigger_type __tt = ETT_NONE; |
17 | * struct ring_buffer_event *event; | 17 | * struct ring_buffer_event *event; |
@@ -154,7 +154,7 @@ static notrace void \ | |||
154 | trace_event_raw_event_##call(void *__data, proto) \ | 154 | trace_event_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 trace_event_data_offsets_##call __maybe_unused __data_offsets;\ |
158 | struct trace_event_buffer fbuffer; \ | 158 | struct trace_event_buffer fbuffer; \ |
159 | struct trace_event_raw_##call *entry; \ | 159 | struct trace_event_raw_##call *entry; \ |
160 | int __data_size; \ | 160 | int __data_size; \ |
@@ -293,7 +293,7 @@ static notrace void \ | |||
293 | perf_trace_##call(void *__data, proto) \ | 293 | perf_trace_##call(void *__data, proto) \ |
294 | { \ | 294 | { \ |
295 | struct trace_event_call *event_call = __data; \ | 295 | struct trace_event_call *event_call = __data; \ |
296 | struct ftrace_data_offsets_##call __maybe_unused __data_offsets;\ | 296 | struct trace_event_data_offsets_##call __maybe_unused __data_offsets;\ |
297 | struct trace_event_raw_##call *entry; \ | 297 | struct trace_event_raw_##call *entry; \ |
298 | struct pt_regs *__regs; \ | 298 | struct pt_regs *__regs; \ |
299 | u64 __addr = 0, __count = 1; \ | 299 | u64 __addr = 0, __count = 1; \ |
diff --git a/include/trace/trace_events.h b/include/trace/trace_events.h index 0e9519d5eacb..18c7c0248aeb 100644 --- a/include/trace/trace_events.h +++ b/include/trace/trace_events.h | |||
@@ -138,7 +138,7 @@ TRACE_MAKE_SYSTEM_STR(); | |||
138 | * | 138 | * |
139 | * Include the following: | 139 | * Include the following: |
140 | * | 140 | * |
141 | * struct ftrace_data_offsets_<call> { | 141 | * struct trace_event_data_offsets_<call> { |
142 | * u32 <item1>; | 142 | * u32 <item1>; |
143 | * u32 <item2>; | 143 | * u32 <item2>; |
144 | * [...] | 144 | * [...] |
@@ -178,7 +178,7 @@ TRACE_MAKE_SYSTEM_STR(); | |||
178 | 178 | ||
179 | #undef DECLARE_EVENT_CLASS | 179 | #undef DECLARE_EVENT_CLASS |
180 | #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ | 180 | #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ |
181 | struct ftrace_data_offsets_##call { \ | 181 | struct trace_event_data_offsets_##call { \ |
182 | tstruct; \ | 182 | tstruct; \ |
183 | }; | 183 | }; |
184 | 184 | ||
@@ -486,7 +486,7 @@ ftrace_define_fields_##call(struct trace_event_call *event_call) \ | |||
486 | #undef DECLARE_EVENT_CLASS | 486 | #undef DECLARE_EVENT_CLASS |
487 | #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ | 487 | #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ |
488 | static inline notrace int ftrace_get_offsets_##call( \ | 488 | static inline notrace int ftrace_get_offsets_##call( \ |
489 | struct ftrace_data_offsets_##call *__data_offsets, proto) \ | 489 | struct trace_event_data_offsets_##call *__data_offsets, proto) \ |
490 | { \ | 490 | { \ |
491 | int __data_size = 0; \ | 491 | int __data_size = 0; \ |
492 | int __maybe_unused __item_length; \ | 492 | int __maybe_unused __item_length; \ |