summaryrefslogtreecommitdiffstats
path: root/samples/trace_events/Makefile
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-04-14 21:37:03 -0400
committerSteven Rostedt <rostedt@goodmis.org>2009-04-14 22:09:18 -0400
commit9cfe06f8cd5c8c3ad6ab323973e87dde670642b8 (patch)
tree94348ca2c013264e45d352d208c4a6dc9c221eef /samples/trace_events/Makefile
parentad8d75fff811a6a230f7f43b05a6483099349533 (diff)
downloadop-kernel-dev-9cfe06f8cd5c8c3ad6ab323973e87dde670642b8.zip
op-kernel-dev-9cfe06f8cd5c8c3ad6ab323973e87dde670642b8.tar.gz
tracing/events: add trace-events-sample
This patch adds a sample to the samples directory on how to create and use TRACE_EVENT trace points. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'samples/trace_events/Makefile')
-rw-r--r--samples/trace_events/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/samples/trace_events/Makefile b/samples/trace_events/Makefile
new file mode 100644
index 0000000..06c6dea
--- /dev/null
+++ b/samples/trace_events/Makefile
@@ -0,0 +1,8 @@
+# builds the trace events example kernel modules;
+# then to use one (as root): insmod <module_name.ko>
+
+PWD := $(shell pwd)
+
+CFLAGS_trace-events-sample.o := -I$(PWD)/samples/trace_events/
+
+obj-$(CONFIG_SAMPLE_TRACE_EVENTS) += trace-events-sample.o
OpenPOWER on IntegriCloud