perf probe: Fix to probe on gcc generated functions in modules
[linux/fpc-iii.git] / tools / perf / util / cache.h
blob512c0c83fbc6a9a9ed2a9c996de74ff6fb45eb62
1 #ifndef __PERF_CACHE_H
2 #define __PERF_CACHE_H
4 #include "strbuf.h"
5 #include <subcmd/pager.h>
6 #include "../ui/ui.h"
8 #include <linux/string.h>
10 #define CMD_EXEC_PATH "--exec-path"
11 #define CMD_DEBUGFS_DIR "--debugfs-dir="
13 #define EXEC_PATH_ENVIRONMENT "PERF_EXEC_PATH"
14 #define PERF_DEBUGFS_ENVIRONMENT "PERF_DEBUGFS_DIR"
15 #define PERF_TRACEFS_ENVIRONMENT "PERF_TRACEFS_DIR"
16 #define PERF_PAGER_ENVIRONMENT "PERF_PAGER"
18 char *alias_lookup(const char *alias);
19 int split_cmdline(char *cmdline, const char ***argv);
21 #define alloc_nr(x) (((x)+16)*3/2)
23 static inline int is_absolute_path(const char *path)
25 return path[0] == '/';
28 char *mkpath(const char *fmt, ...) __attribute__((format (printf, 1, 2)));
30 #endif /* __PERF_CACHE_H */