mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-20 10:44:23 +08:00
dd6dda27a8
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 <rostedt@goodmis.org> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Cc: Namhyung Kim <namhyung@kernel.org> Link: http://lkml.kernel.org/r/20150202193553.190606690@goodmis.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
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__ */
|