summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/magic.h
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat)2015-01-20 17:36:55 +0100
committerSteven Rostedt2015-02-03 18:48:40 +0100
commit4282d60689d4f21b40692029080440cc58e8a17d (patch)
tree6ae2bcc5e17dbf11fcbdb0f066224e146d273097 /include/uapi/linux/magic.h
parenttracing: Create cmdline tracer options on tracing fs init (diff)
downloadkernel-qcow2-linux-4282d60689d4f21b40692029080440cc58e8a17d.tar.gz
kernel-qcow2-linux-4282d60689d4f21b40692029080440cc58e8a17d.tar.xz
kernel-qcow2-linux-4282d60689d4f21b40692029080440cc58e8a17d.zip
tracefs: Add new tracefs file system
Add a separate file system to handle the tracing directory. Currently it is part of debugfs, but that is starting to show its limits. One thing is that in order to access the tracing infrastructure, you need to mount debugfs. As that includes debugging from all sorts of sub systems in the kernel, it is not considered advisable to mount such an all encompassing debugging system. Having the tracing system in its own file systems gives access to the tracing sub system without needing to include all other systems. Another problem with tracing using the debugfs system is that the instances use mkdir to create sub buffers. debugfs does not support mkdir from userspace so to implement it, special hacks were used. By controlling the file system that the tracing infrastructure uses, this can be properly done without hacks. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/uapi/linux/magic.h')
-rw-r--r--include/uapi/linux/magic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/magic.h b/include/uapi/linux/magic.h
index 7d664ea85ebd..7b1425a6b370 100644
--- a/include/uapi/linux/magic.h
+++ b/include/uapi/linux/magic.h
@@ -58,6 +58,8 @@
#define STACK_END_MAGIC 0x57AC6E9D
+#define TRACEFS_MAGIC 0x74726163
+
#define V9FS_MAGIC 0x01021997
#define BDEVFS_MAGIC 0x62646576