Skip to content

Commit 62323a1

Browse files
committed
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>
1 parent a723776 commit 62323a1

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎include/trace/perf.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* {
1212
* struct trace_event_file *trace_file = __data;
1313
* 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;
1515
* unsigned long eflags = trace_file->flags;
1616
* enum event_trigger_type __tt = ETT_NONE;
1717
* struct ring_buffer_event *event;
@@ -154,7 +154,7 @@ static notrace void \
154154
trace_event_raw_event_##call(void *__data, proto) \
155155
{ \
156156
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;\
158158
struct trace_event_buffer fbuffer; \
159159
struct trace_event_raw_##call *entry; \
160160
int __data_size; \
@@ -293,7 +293,7 @@ static notrace void \
293293
perf_trace_##call(void *__data, proto) \
294294
{ \
295295
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;\
297297
struct trace_event_raw_##call *entry; \
298298
struct pt_regs *__regs; \
299299
u64 __addr = 0, __count = 1; \

‎include/trace/trace_events.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ TRACE_MAKE_SYSTEM_STR();
138138
*
139139
* Include the following:
140140
*
141-
* struct ftrace_data_offsets_<call> {
141+
* struct trace_event_data_offsets_<call> {
142142
* u32 <item1>;
143143
* u32 <item2>;
144144
* [...]
@@ -178,7 +178,7 @@ TRACE_MAKE_SYSTEM_STR();
178178

179179
#undef DECLARE_EVENT_CLASS
180180
#define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \
181-
struct ftrace_data_offsets_##call { \
181+
struct trace_event_data_offsets_##call { \
182182
tstruct; \
183183
};
184184

@@ -486,7 +486,7 @@ ftrace_define_fields_##call(struct trace_event_call *event_call) \
486486
#undef DECLARE_EVENT_CLASS
487487
#define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \
488488
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) \
490490
{ \
491491
int __data_size = 0; \
492492
int __maybe_unused __item_length; \

0 commit comments

Comments
 (0)