mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-05 00:52:57 +01:00
There will be other cases where not just a tracepoint event is being opened below the debugfs mountpoint, but it is rather common, so provide one helper for that. Cc: Adrian Hunter <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: David Ahern <[email protected]> Cc: Don Zickus <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
33 lines
805 B
C
33 lines
805 B
C
#ifndef __API_DEBUGFS_H__
|
|
#define __API_DEBUGFS_H__
|
|
|
|
#define _STR(x) #x
|
|
#define STR(x) _STR(x)
|
|
|
|
/*
|
|
* On most systems <limits.h> would have given us this, but not on some systems
|
|
* (e.g. GNU/Hurd).
|
|
*/
|
|
#ifndef PATH_MAX
|
|
#define PATH_MAX 4096
|
|
#endif
|
|
|
|
#ifndef DEBUGFS_MAGIC
|
|
#define DEBUGFS_MAGIC 0x64626720
|
|
#endif
|
|
|
|
#ifndef PERF_DEBUGFS_ENVIRONMENT
|
|
#define PERF_DEBUGFS_ENVIRONMENT "PERF_DEBUGFS_DIR"
|
|
#endif
|
|
|
|
const char *debugfs_find_mountpoint(void);
|
|
int debugfs_valid_mountpoint(const char *debugfs);
|
|
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__ */
|