Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162971
b: refs/heads/master
c: 05ffa2d
h: refs/heads/master
i:
  162969: 5d6a7a9
  162967: 144f477
v: v3
  • Loading branch information
Li Zefan authored and Steven Rostedt committed Sep 14, 2009
1 parent c56cf68 commit f4e4cb2
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c16de8fd7a608aba8708dd056cf6e4d9462e800a
refs/heads/master: 05ffa2d02066c2cb169c02d5417308ee8ecab638
45 changes: 41 additions & 4 deletions trunk/kernel/trace/trace_export.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,47 @@
#undef __field_struct
#define __field_struct(type, item)

#undef __field
#define __field(type, item) type item;

#undef __field_desc
#define __field_desc(type, container, item) type item;

#undef __array
#define __array(type, item, size) type item[size];

#undef __array_desc
#define __array_desc(type, container, item, size) type item[size];

#undef __dynamic_array
#define __dynamic_array(type, item) type item[];

#undef F_STRUCT
#define F_STRUCT(args...) args

#undef F_printk
#define F_printk(fmt, args...) fmt, args

#undef FTRACE_ENTRY
#define FTRACE_ENTRY(name, struct_name, id, tstruct, print) \
struct ____ftrace_##name { \
tstruct \
}; \
static void __used ____ftrace_check_##name(void) \
{ \
struct ____ftrace_##name *__entry = NULL; \
\
/* force cmpile-time check on F_printk() */ \
printk(print); \
}

#undef FTRACE_ENTRY_DUP
#define FTRACE_ENTRY_DUP(name, struct_name, id, tstruct, print) \
FTRACE_ENTRY(name, struct_name, id, PARAMS(tstruct), PARAMS(print))

#include "trace_entries.h"


#undef __field
#define __field(type, item) \
ret = trace_seq_printf(s, "\tfield:" #type " " #item ";\t" \
Expand Down Expand Up @@ -88,10 +129,6 @@ ftrace_format_##name(struct ftrace_event_call *unused, \
return ret; \
}

#undef FTRACE_ENTRY_DUP
#define FTRACE_ENTRY_DUP(name, struct_name, id, tstruct, print) \
FTRACE_ENTRY(name, struct_name, id, PARAMS(tstruct), PARAMS(print))

#include "trace_entries.h"


Expand Down

0 comments on commit f4e4cb2

Please sign in to comment.