-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 140870 b: refs/heads/master c: 33b0c22 h: refs/heads/master v: v3
- Loading branch information
Steven Rostedt
committed
Mar 6, 2009
1 parent
88a3698
commit af64015
Showing
3 changed files
with
57 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 5e2336a0d47c9661a40cc5ef85135ce1406af6e8 | ||
refs/heads/master: 33b0c229e3abeae00493ed1d6f0b07191977a0a2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* Setup the showing format of trace point. | ||
* | ||
* int | ||
* ftrace_format_##call(struct trace_seq *s) | ||
* { | ||
* struct ftrace_raw_##call field; | ||
* int ret; | ||
* | ||
* ret = trace_seq_printf(s, #type " " #item ";" | ||
* " size:%d; offset:%d;\n", | ||
* sizeof(field.type), | ||
* offsetof(struct ftrace_raw_##call, | ||
* item)); | ||
* | ||
* } | ||
*/ | ||
|
||
#undef TRACE_STRUCT | ||
#define TRACE_STRUCT(args...) args | ||
|
||
#undef TRACE_FIELD | ||
#define TRACE_FIELD(type, item, assign) \ | ||
ret = trace_seq_printf(s, "\tfield:" #type " " #item ";\t" \ | ||
"offset:%lu;\tsize:%lu;\n", \ | ||
offsetof(typeof(field), item), \ | ||
sizeof(field.item)); \ | ||
if (!ret) \ | ||
return 0; | ||
|
||
|
||
#undef TRACE_FIELD_SPECIAL | ||
#define TRACE_FIELD_SPECIAL(type_item, item, cmd) \ | ||
ret = trace_seq_printf(s, "\tfield special:" #type_item ";\t" \ | ||
"offset:%lu;\tsize:%lu;\n", \ | ||
offsetof(typeof(field), item), \ | ||
sizeof(field.item)); \ | ||
if (!ret) \ | ||
return 0; | ||
|
||
#undef TRACE_EVENT_FORMAT | ||
#define TRACE_EVENT_FORMAT(call, proto, args, fmt, tstruct, tpfmt) \ | ||
int \ | ||
ftrace_format_##call(struct trace_seq *s) \ | ||
{ \ | ||
struct ftrace_raw_##call field; \ | ||
int ret; \ | ||
\ | ||
tstruct; \ | ||
\ | ||
trace_seq_printf(s, "\nprint fmt: \"%s\"\n", tpfmt); \ | ||
\ | ||
return ret; \ | ||
} | ||
|