Skip to content

Commit

Permalink
tracefs: Add new tracefs file system
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rostedt committed Feb 3, 2015
1 parent 09d23a1 commit 4282d60
Show file tree
Hide file tree
Showing 5 changed files with 570 additions and 0 deletions.
1 change: 1 addition & 0 deletions fs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ obj-$(CONFIG_HOSTFS) += hostfs/
obj-$(CONFIG_HPPFS) += hppfs/
obj-$(CONFIG_CACHEFILES) += cachefiles/
obj-$(CONFIG_DEBUG_FS) += debugfs/
obj-$(CONFIG_TRACING) += tracefs/
obj-$(CONFIG_OCFS2_FS) += ocfs2/
obj-$(CONFIG_BTRFS_FS) += btrfs/
obj-$(CONFIG_GFS2_FS) += gfs2/
Expand Down
4 changes: 4 additions & 0 deletions fs/tracefs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tracefs-objs := inode.o

obj-$(CONFIG_TRACING) += tracefs.o

Loading

0 comments on commit 4282d60

Please sign in to comment.