mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-01 14:53:11 +01:00
Add tracefs_configured() to return true if tracefs is configured in the kernel (succeeds to find tracefs), and debugfs_configured() if debugfs is configured in the kernel (succeeds to find debugfs). Signed-off-by: Steven Rostedt <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Masami Hiramatsu <[email protected]> Cc: Namhyung Kim <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
24 lines
608 B
C
24 lines
608 B
C
#ifndef __API_DEBUGFS_H__
|
|
#define __API_DEBUGFS_H__
|
|
|
|
#include "findfs.h"
|
|
|
|
#ifndef DEBUGFS_MAGIC
|
|
#define DEBUGFS_MAGIC 0x64626720
|
|
#endif
|
|
|
|
#ifndef PERF_DEBUGFS_ENVIRONMENT
|
|
#define PERF_DEBUGFS_ENVIRONMENT "PERF_DEBUGFS_DIR"
|
|
#endif
|
|
|
|
bool debugfs_configured(void);
|
|
const char *debugfs_find_mountpoint(void);
|
|
char *debugfs_mount(const char *mountpoint);
|
|
|
|
extern char debugfs_mountpoint[];
|
|
|
|
int debugfs__strerror_open(int err, char *buf, size_t size, const char *filename);
|
|
int debugfs__strerror_open_tp(int err, char *buf, size_t size, const char *sys, const char *name);
|
|
|
|
#endif /* __API_DEBUGFS_H__ */
|