mirror of
https://github.com/torvalds/linux.git
synced 2024-12-21 02:21:36 +00: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>
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__ */
|