2013-12-10 00:14:23 +08:00
|
|
|
#ifndef __API_DEBUGFS_H__
|
|
|
|
|
#define __API_DEBUGFS_H__
|
2013-02-20 23:32:30 +08:00
|
|
|
|
2015-02-03 03:35:03 +08:00
|
|
|
#include "findfs.h"
|
2013-02-20 23:32:30 +08:00
|
|
|
|
|
|
|
|
#ifndef DEBUGFS_MAGIC
|
|
|
|
|
#define DEBUGFS_MAGIC 0x64626720
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef PERF_DEBUGFS_ENVIRONMENT
|
|
|
|
|
#define PERF_DEBUGFS_ENVIRONMENT "PERF_DEBUGFS_DIR"
|
|
|
|
|
#endif
|
|
|
|
|
|
2015-02-03 03:35:06 +08:00
|
|
|
bool debugfs_configured(void);
|
2013-02-20 23:32:30 +08:00
|
|
|
const char *debugfs_find_mountpoint(void);
|
|
|
|
|
char *debugfs_mount(const char *mountpoint);
|
|
|
|
|
|
|
|
|
|
extern char debugfs_mountpoint[];
|
|
|
|
|
|
2015-01-22 21:52:55 +08:00
|
|
|
int debugfs__strerror_open(int err, char *buf, size_t size, const char *filename);
|
2015-01-22 22:13:43 +08:00
|
|
|
int debugfs__strerror_open_tp(int err, char *buf, size_t size, const char *sys, const char *name);
|
2015-01-22 21:34:22 +08:00
|
|
|
|
2013-12-10 00:14:23 +08:00
|
|
|
#endif /* __API_DEBUGFS_H__ */
|