mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-04 05:24:03 +00: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 <adrian.hunter@intel.com> Cc: Borislav Petkov <bp@suse.de> Cc: David Ahern <dsahern@gmail.com> Cc: Don Zickus <dzickus@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-q6e6zct49ql6nbcw8kkg0lbj@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
32 lines
805 B
C
32 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__ */
|