blob: 455023698d2b43770f0de68464b4f244916adca4 [file] [log] [blame]
Borislav Petkov553873e2013-12-09 17:14:23 +01001#ifndef __API_DEBUGFS_H__
2#define __API_DEBUGFS_H__
Borislav Petkov85c66be2013-02-20 16:32:30 +01003
Steven Rostedt (Red Hat)cde164a2015-02-02 14:35:03 -05004#include "findfs.h"
Borislav Petkov85c66be2013-02-20 16:32:30 +01005
6#ifndef DEBUGFS_MAGIC
7#define DEBUGFS_MAGIC 0x64626720
8#endif
9
10#ifndef PERF_DEBUGFS_ENVIRONMENT
11#define PERF_DEBUGFS_ENVIRONMENT "PERF_DEBUGFS_DIR"
12#endif
13
Steven Rostedt (Red Hat)dd6dda22015-02-02 14:35:06 -050014bool debugfs_configured(void);
Borislav Petkov85c66be2013-02-20 16:32:30 +010015const char *debugfs_find_mountpoint(void);
Borislav Petkov85c66be2013-02-20 16:32:30 +010016char *debugfs_mount(const char *mountpoint);
Borislav Petkov85c66be2013-02-20 16:32:30 +010017
18extern char debugfs_mountpoint[];
Borislav Petkov85c66be2013-02-20 16:32:30 +010019
Arnaldo Carvalho de Melo801c67b2015-01-22 10:52:55 -030020int debugfs__strerror_open(int err, char *buf, size_t size, const char *filename);
Arnaldo Carvalho de Melo2cc990b2015-01-22 11:13:43 -030021int debugfs__strerror_open_tp(int err, char *buf, size_t size, const char *sys, const char *name);
Arnaldo Carvalho de Meloe2726d92015-01-22 10:34:22 -030022
Borislav Petkov553873e2013-12-09 17:14:23 +010023#endif /* __API_DEBUGFS_H__ */