Skip to content

Commit

Permalink
tracing: remove some unused macros
Browse files Browse the repository at this point in the history
- 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>
  • Loading branch information
Li Zefan authored and Steven Rostedt committed Sep 14, 2009
1 parent 05ffa2d commit 20a58a7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 35 deletions.
9 changes: 0 additions & 9 deletions kernel/trace/trace_entries.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,6 @@ FTRACE_ENTRY(funcgraph_exit, ftrace_graph_ret_entry,
__field( unsigned char, next_state ) \
__field( unsigned int, next_cpu )

#if 0
FTRACE_ENTRY_STRUCT_ONLY(ctx_switch_entry,

F_STRUCT(
FTRACE_CTX_FIELDS
)
);
#endif

FTRACE_ENTRY(context_switch, ctx_switch_entry,

TRACE_CTX,
Expand Down
26 changes: 0 additions & 26 deletions kernel/trace/trace_export.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,32 +209,6 @@ ftrace_define_fields_##name(struct ftrace_event_call *event_call) \
#undef __dynamic_array
#define __dynamic_array(type, item)


#undef TRACE_ZERO_CHAR
#define TRACE_ZERO_CHAR(arg)

#undef TRACE_FIELD
#define TRACE_FIELD(type, item, assign)\
entry->item = assign;

#undef TRACE_FIELD
#define TRACE_FIELD(type, item, assign)\
entry->item = assign;

#undef TRACE_FIELD_SIGN
#define TRACE_FIELD_SIGN(type, item, assign, is_signed) \
TRACE_FIELD(type, item, assign)

#undef TP_CMD
#define TP_CMD(cmd...) cmd

#undef TRACE_ENTRY
#define TRACE_ENTRY entry

#undef TRACE_FIELD_SPECIAL
#define TRACE_FIELD_SPECIAL(type_item, item, len, cmd) \
cmd;

#undef FTRACE_ENTRY
#define FTRACE_ENTRY(call, struct_name, type, tstruct, print) \
static int ftrace_raw_init_event_##call(void); \
Expand Down

0 comments on commit 20a58a7

Please sign in to comment.