tracefs: Add show_events_dentries
Add a file in tracefs that shows the "events" allocated entries and the
dentries that are attached to them. This is used to see what dentries have
been dynamically allocated as well as their current ref counts.
~# cat /sys/kernel/tracing/events/sched/sched_switch/enable
0
~# grep -A4 sched_switch /sys/kernel/tracing/show_events_dentries
sched_switch/ dentry: (1)
enable dentry: (0)
id
filter
trigger
The first value is the name of the file or directory. If a dentry is
allocated, then a "dentry: (<ref-count>)" is displayed showing the address
of the dentry as well as its ref count.
Link: https://lore.kernel.org/linux-trace-kernel/20230913113628.172907b7@gandalf.local.home
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Ajay Kaher <akaher@vmware.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
6 files changed