diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-03-10 09:57:16 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-10 09:57:16 +0100 |
commit | 9a1043d19c4edc4ff1d80081a39809a506a62e4d (patch) | |
tree | a8ba7bdb2ebe8e486f018d55969727abf14e7e33 /Documentation | |
parent | Merge branches 'tracing/doc', 'tracing/ftrace', 'tracing/printk' and 'linus' ... (diff) | |
parent | tracing: remove obsolete TRACE_EVENT_FORMAT macro (diff) | |
download | linux-9a1043d19c4edc4ff1d80081a39809a506a62e4d.tar.xz linux-9a1043d19c4edc4ff1d80081a39809a506a62e4d.zip |
Merge branch 'tip/tracing/ftrace' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into tracing/ftrace
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/tracepoints.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/tracepoints.txt b/Documentation/tracepoints.txt index 6f0a044f5b5e..4ff43c6de299 100644 --- a/Documentation/tracepoints.txt +++ b/Documentation/tracepoints.txt @@ -45,8 +45,8 @@ In include/trace/subsys.h : #include <linux/tracepoint.h> DECLARE_TRACE(subsys_eventname, - TPPROTO(int firstarg, struct task_struct *p), - TPARGS(firstarg, p)); + TP_PROTO(int firstarg, struct task_struct *p), + TP_ARGS(firstarg, p)); In subsys/file.c (where the tracing statement must be added) : @@ -66,10 +66,10 @@ Where : - subsys is the name of your subsystem. - eventname is the name of the event to trace. -- TPPROTO(int firstarg, struct task_struct *p) is the prototype of the +- TP_PROTO(int firstarg, struct task_struct *p) is the prototype of the function called by this tracepoint. -- TPARGS(firstarg, p) are the parameters names, same as found in the +- TP_ARGS(firstarg, p) are the parameters names, same as found in the prototype. Connecting a function (probe) to a tracepoint is done by providing a |