linux-trace-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] tracing: Remove eventfs_files by use of callbacks
@ 2023-08-01  0:13 Steven Rostedt
  2023-08-01  0:13 ` [PATCH 1/2] tracefs: Add show_events_dentries Steven Rostedt
  2023-08-01  0:13 ` [PATCH 2/2] eventfs: Remove eventfs_file and just use eventfs_inode Steven Rostedt
  0 siblings, 2 replies; 3+ messages in thread
From: Steven Rostedt @ 2023-08-01  0:13 UTC (permalink / raw)
  To: linux-kernel, linux-trace-kernel
  Cc: Masami Hiramatsu, Mark Rutland, Andrew Morton, Ajay Kaher,
	chinglinyu, lkp, namit, oe-lkp, amakhalov, er.ajay.kaher,
	srivatsa, tkundu, vsirnapalli


This patch set is on top of:

https://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git/
  trace/core

The first patch adds a file to tracefs that shows all the event_files
that have been allocated for the dynamic eventfs file system. It also
shows the dentries that were created and their current ref counts. This
is useful for debugging and knowing when a dentry has been created and
freed.

I plan on adding the first patch to the next merge window. The second
patch I plan on adding to the merge window after that.

The second patch is a bit of a redesign of the way the eventfs is
created. It no longer creates a descriptor representing every file but
instead just the directories. These descriptors get an array of
entries that represent the files within it (but not for sub directories).
Each entry has a name and a callback, where the name is the name of the
file (used for lookup) and a callback that is used to create the dentry
and inode for the file. This saves more memory, this approach may
be possible to create a dynamic way of doing this for other pseudo file
systems.

Steven Rostedt (Google) (2):
      tracefs: Add show_events_dentries
      eventfs: Remove eventfs_file and just use eventfs_inode

----
 fs/tracefs/Makefile          |   1 +
 fs/tracefs/event_inode.c     | 781 ++++++++++++++++++++++---------------------
 fs/tracefs/event_show.c      | 125 +++++++
 fs/tracefs/inode.c           |   2 +-
 fs/tracefs/internal.h        |  34 +-
 include/linux/trace_events.h |   2 +-
 include/linux/tracefs.h      |  31 +-
 kernel/trace/trace.h         |   4 +-
 kernel/trace/trace_events.c  | 309 ++++++++++++-----
 9 files changed, 795 insertions(+), 494 deletions(-)
 create mode 100644 fs/tracefs/event_show.c

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-08-01  0:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-01  0:13 [PATCH 0/2] tracing: Remove eventfs_files by use of callbacks Steven Rostedt
2023-08-01  0:13 ` [PATCH 1/2] tracefs: Add show_events_dentries Steven Rostedt
2023-08-01  0:13 ` [PATCH 2/2] eventfs: Remove eventfs_file and just use eventfs_inode Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).