mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-12 12:30:17 +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]>
22 lines
476 B
C
22 lines
476 B
C
#ifndef __API_TRACEFS_H__
|
|
#define __API_TRACEFS_H__
|
|
|
|
#include "findfs.h"
|
|
|
|
#ifndef TRACEFS_MAGIC
|
|
#define TRACEFS_MAGIC 0x74726163
|
|
#endif
|
|
|
|
#ifndef PERF_TRACEFS_ENVIRONMENT
|
|
#define PERF_TRACEFS_ENVIRONMENT "PERF_TRACEFS_DIR"
|
|
#endif
|
|
|
|
bool tracefs_configured(void);
|
|
const char *tracefs_find_mountpoint(void);
|
|
int tracefs_valid_mountpoint(const char *debugfs);
|
|
char *tracefs_mount(const char *mountpoint);
|
|
|
|
extern char tracefs_mountpoint[];
|
|
|
|
#endif /* __API_DEBUGFS_H__ */
|