aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2009-09-14 03:55:18 -0400
committerSteven Rostedt <rostedt@goodmis.org>2009-09-14 11:43:24 -0400
commit20a58a77231c5f5f61470932503b889303e8d4f3 (patch)
treef9c3b0b6071dce526c63bb0c38f68a0865a62cb8
parent05ffa2d02066c2cb169c02d5417308ee8ecab638 (diff)
tracing: remove some unused macros
- remove FTRACE_ENTRY_STRUCT_ONLY() - remove TRACE_XXX() macros Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> LKML-Reference: <4AADF6E6.3080606@cn.fujitsu.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--kernel/trace/trace_entries.h9
-rw-r--r--kernel/trace/trace_export.c26
2 files changed, 0 insertions, 35 deletions
diff --git a/kernel/trace/trace_entries.h b/kernel/trace/trace_entries.h
index 0c100958c642..a431748ddd6e 100644
--- a/kernel/trace/trace_entries.h
+++ b/kernel/trace/trace_entries.h
@@ -116,15 +116,6 @@ FTRACE_ENTRY(funcgraph_exit, ftrace_graph_ret_entry,
116 __field( unsigned char, next_state ) \ 116 __field( unsigned char, next_state ) \
117 __field( unsigned int, next_cpu ) 117 __field( unsigned int, next_cpu )
118 118
119#if 0
120FTRACE_ENTRY_STRUCT_ONLY(ctx_switch_entry,
121
122 F_STRUCT(
123 FTRACE_CTX_FIELDS
124 )
125);
126#endif
127
128FTRACE_ENTRY(context_switch, ctx_switch_entry, 119FTRACE_ENTRY(context_switch, ctx_switch_entry,
129 120
130 TRACE_CTX, 121 TRACE_CTX,
diff --git a/kernel/trace/trace_export.c b/kernel/trace/trace_export.c
index 2435d55947e6..9753fcc61bc5 100644
--- a/kernel/trace/trace_export.c
+++ b/kernel/trace/trace_export.c
@@ -209,32 +209,6 @@ ftrace_define_fields_##name(struct ftrace_event_call *event_call) \
209#undef __dynamic_array 209#undef __dynamic_array
210#define __dynamic_array(type, item) 210#define __dynamic_array(type, item)
211 211
212
213#undef TRACE_ZERO_CHAR
214#define TRACE_ZERO_CHAR(arg)
215
216#undef TRACE_FIELD
217#define TRACE_FIELD(type, item, assign)\
218 entry->item = assign;
219
220#undef TRACE_FIELD
221#define TRACE_FIELD(type, item, assign)\
222 entry->item = assign;
223
224#undef TRACE_FIELD_SIGN
225#define TRACE_FIELD_SIGN(type, item, assign, is_signed) \
226 TRACE_FIELD(type, item, assign)
227
228#undef TP_CMD
229#define TP_CMD(cmd...) cmd
230
231#undef TRACE_ENTRY
232#define TRACE_ENTRY entry
233
234#undef TRACE_FIELD_SPECIAL
235#define TRACE_FIELD_SPECIAL(type_item, item, len, cmd) \
236 cmd;
237
238#undef FTRACE_ENTRY 212#undef FTRACE_ENTRY
239#define FTRACE_ENTRY(call, struct_name, type, tstruct, print) \ 213#define FTRACE_ENTRY(call, struct_name, type, tstruct, print) \
240static int ftrace_raw_init_event_##call(void); \ 214static int ftrace_raw_init_event_##call(void); \