Cleanup: Move instrumentation/ headers to include/instrumentation/
[lttng-modules.git] / include / instrumentation / events / README
diff --git a/include/instrumentation/events/README b/include/instrumentation/events/README
new file mode 100644 (file)
index 0000000..fc3cd6e
--- /dev/null
@@ -0,0 +1,24 @@
+* Workflow for updating patches from newer kernel:
+
+Pull the new headers from mainline kernel to lttng-modules/.
+Update those headers to fix the lttng-modules instrumentation style.
+
+
+* Workflow to add new Tracepoint instrumentation to newer kernel,
+  and add support for it into LTTng:
+
+a) instrument the kernel with new trace events headers. If you want that
+   instrumentation distributed, you will have to push those changes into
+   the upstream Linux kernel first,
+b) copy those headers into lttng-modules/ directory,
+c) look at a diff from other headers between mainline kernel version and 
+   lttng-modules/, and use that as a recipe to alter the new
+   lttng-modules/ headers.
+d) create a new file in probes/ for the new trace event header you added,
+e) add it to probes/Makefile,
+f) build, make modules_install,
+g) don't forget to load that new module too.
+
+Currently, LTTng policy is to only accept headers derived from trace
+event headers accepted into the Linux kernel upstream for tracepoints
+related to upstream kernel instrumentation.
This page took 0.023703 seconds and 4 git commands to generate.