diff options
author | Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> | 2008-07-18 12:16:16 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-14 04:29:05 -0400 |
commit | 4a0897526bbc5c6ac0df80b16b8c60339e717ae2 (patch) | |
tree | aa8eb17c791cdff175f8cd6cb76f02d05f00029a /samples/tracepoints/tp-samples-trace.h | |
parent | 24b8d831d56aac7907752d22d2aba5d8127db6f6 (diff) |
tracing: tracepoints, samples
Tracepoint example code under samples/.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Acked-by: 'Peter Zijlstra' <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'samples/tracepoints/tp-samples-trace.h')
-rw-r--r-- | samples/tracepoints/tp-samples-trace.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/samples/tracepoints/tp-samples-trace.h b/samples/tracepoints/tp-samples-trace.h new file mode 100644 index 000000000000..0216b55bd640 --- /dev/null +++ b/samples/tracepoints/tp-samples-trace.h | |||
@@ -0,0 +1,13 @@ | |||
1 | #ifndef _TP_SAMPLES_TRACE_H | ||
2 | #define _TP_SAMPLES_TRACE_H | ||
3 | |||
4 | #include <linux/proc_fs.h> /* for struct inode and struct file */ | ||
5 | #include <linux/tracepoint.h> | ||
6 | |||
7 | DEFINE_TRACE(subsys_event, | ||
8 | TPPROTO(struct inode *inode, struct file *file), | ||
9 | TPARGS(inode, file)); | ||
10 | DEFINE_TRACE(subsys_eventb, | ||
11 | TPPROTO(void), | ||
12 | TPARGS()); | ||
13 | #endif | ||