]>
git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - include/linux/tracefs.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * tracefs.h - a pseudo file system for activating tracing
5 * Based on debugfs by: 2004 Greg Kroah-Hartman <greg@kroah.com>
7 * Copyright (C) 2014 Red Hat Inc, author: Steven Rostedt <srostedt@redhat.com>
9 * tracefs is the file system that is used by the tracing infrastructure.
16 #include <linux/seq_file.h>
18 #include <linux/types.h>
20 struct file_operations
;
24 struct dentry
*tracefs_create_file(const char *name
, umode_t mode
,
25 struct dentry
*parent
, void *data
,
26 const struct file_operations
*fops
);
28 struct dentry
*tracefs_create_dir(const char *name
, struct dentry
*parent
);
30 void tracefs_remove(struct dentry
*dentry
);
32 struct dentry
*tracefs_create_instance_dir(const char *name
, struct dentry
*parent
,
33 int (*mkdir
)(const char *name
),
34 int (*rmdir
)(const char *name
));
36 bool tracefs_initialized(void);
38 #endif /* CONFIG_TRACING */