summaryrefslogtreecommitdiff
path: root/fs/tracefs/internal.h
diff options
context:
space:
mode:
authorAjay Kaher <akaher@vmware.com>2023-07-28 21:20:46 +0300
committerSteven Rostedt (Google) <rostedt@goodmis.org>2023-07-31 01:13:33 +0300
commitc1504e5102384762bd06b068e9928b624a8a88c6 (patch)
tree640a6cf06518ca72bbcb711e9814fa33cccec6b4 /fs/tracefs/internal.h
parent2c6b6b1029d46a8760d6cba09b4e75cb1ac9b579 (diff)
downloadlinux-c1504e5102384762bd06b068e9928b624a8a88c6.tar.xz
eventfs: Implement eventfs dir creation functions
Add eventfs_file structure which will hold the properties of the eventfs files and directories. Add following functions to create the directories in eventfs: eventfs_create_events_dir() will create the top level "events" directory within the tracefs file system. eventfs_add_subsystem_dir() creates an eventfs_file descriptor with the given name of the subsystem. eventfs_add_dir() creates an eventfs_file descriptor with the given name of the directory and attached to a eventfs_file of a subsystem. Add tracefs_inode structure to hold the inodes, flags and pointers to private data used by eventfs. Link: https://lkml.kernel.org/r/1690568452-46553-5-git-send-email-akaher@vmware.com Signed-off-by: Ajay Kaher <akaher@vmware.com> Co-developed-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Tested-by: Ching-lin Yu <chinglinyu@google.com> Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-lkp/202305051619.9a469a9a-yujie.liu@intel.com Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'fs/tracefs/internal.h')
-rw-r--r--fs/tracefs/internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/tracefs/internal.h b/fs/tracefs/internal.h
index 7dfb7ebc1c3f..f0fd565d59ec 100644
--- a/fs/tracefs/internal.h
+++ b/fs/tracefs/internal.h
@@ -2,6 +2,10 @@
#ifndef _TRACEFS_INTERNAL_H
#define _TRACEFS_INTERNAL_H
+enum {
+ TRACEFS_EVENT_INODE = BIT(1),
+};
+
struct tracefs_inode {
unsigned long flags;
void *private;