aboutsummaryrefslogtreecommitdiff
path: root/samples/tracepoints/tp-samples-trace.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2013-01-25 09:46:36 -0500
committerSteven Rostedt <rostedt@goodmis.org>2013-01-25 11:22:11 -0500
commitd75f717e19fe595e7efbf67de195ada8d89dfbbe (patch)
tree26e00856e0595ee4fa5c54fd5c457d62d86c3ff1 /samples/tracepoints/tp-samples-trace.h
parentb736f48bda54ec75b7dc9306884c3843f1a78a0a (diff)
downloadvexpress-lsk-d75f717e19fe595e7efbf67de195ada8d89dfbbe.tar.gz
tracing: Remove tracepoint sample code
The tracepoint sample code was used to teach developers how to create their own tracepoints. But now the trace_events have been added as a higher level that is used directly by developers today. Only the trace_event code should use the tracepoint interface directly and no new tracepoints should be added. Besides, the example had a race condition with the use of the ->d_name.name dentry field, as pointed out by Al Viro. Best just to remove the code so it wont be used by other developers. Link: http://lkml.kernel.org/r/20130123225523.GY4939@ZenIV.linux.org.uk Cc: Al Viro <viro@ZenIV.linux.org.uk> Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'samples/tracepoints/tp-samples-trace.h')
-rw-r--r--samples/tracepoints/tp-samples-trace.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/samples/tracepoints/tp-samples-trace.h b/samples/tracepoints/tp-samples-trace.h
deleted file mode 100644
index 4d46be96596..00000000000
--- a/samples/tracepoints/tp-samples-trace.h
+++ /dev/null
@@ -1,11 +0,0 @@
-#ifndef _TP_SAMPLES_TRACE_H
-#define _TP_SAMPLES_TRACE_H
-
-#include <linux/proc_fs.h> /* for struct inode and struct file */
-#include <linux/tracepoint.h>
-
-DECLARE_TRACE(subsys_event,
- TP_PROTO(struct inode *inode, struct file *file),
- TP_ARGS(inode, file));
-DECLARE_TRACE_NOARGS(subsys_eventb);
-#endif