tracefs
tracefs (also known as eventfs) is a virtual file system available in the Linux kernel since version v4.1-rc1. It was written by Steven Rostedt based on debugfs, to address debugfs limitations in tracing using ftrace and allows accessing tracing directory without the need to mount debugfs.[1][2]
Use[edit]
To compile a Linux kernel with tracefs support, the CONFIG_TRACING option must be enabled. It is typically mounted at /sys/kernel/tracing with a command such as:
mount -t tracefs nodev /sys/kernel/tracing
As in kernel version before v4.1, all ftrace tracing control files were within debugfs, for backward-compatibility when mounting debugfs, tracefs will be automatically mounted at: /sys/kernel/debug/tracing.[3]
References[edit]
- ↑ Rostedt, Steven. "tracefs: Add new tracefs file system". GitHub. Retrieved 4 May 2024.
- ↑ Larabel, Michael. "TraceFS: The Newest Linux File-System". Phoronix. Retrieved 4 May 2024.
- ↑ "ftrace - Function Tracer". Kernel.org. Retrieved 4 May 2024.
This article "Tracefs" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:Tracefs. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.