]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
8b40f521 JK |
2 | #ifndef __PERF_CACHE_H |
3 | #define __PERF_CACHE_H | |
07800601 | 4 | |
07800601 | 5 | #include "strbuf.h" |
4b6ab94e | 6 | #include <subcmd/pager.h> |
59ed16b3 | 7 | #include "../ui/ui.h" |
07800601 | 8 | |
afaed6d3 | 9 | #include <linux/compiler.h> |
ce990917 JP |
10 | #include <linux/string.h> |
11 | ||
cfed95a6 | 12 | #define CMD_EXEC_PATH "--exec-path" |
cfed95a6 VL |
13 | #define CMD_DEBUGFS_DIR "--debugfs-dir=" |
14 | ||
07800601 | 15 | #define EXEC_PATH_ENVIRONMENT "PERF_EXEC_PATH" |
5beeded1 | 16 | #define PERF_DEBUGFS_ENVIRONMENT "PERF_DEBUGFS_DIR" |
23773ca1 | 17 | #define PERF_TRACEFS_ENVIRONMENT "PERF_TRACEFS_DIR" |
096d3558 | 18 | #define PERF_PAGER_ENVIRONMENT "PERF_PAGER" |
07800601 | 19 | |
07800601 IM |
20 | int split_cmdline(char *cmdline, const char ***argv); |
21 | ||
22 | #define alloc_nr(x) (((x)+16)*3/2) | |
23 | ||
07800601 IM |
24 | static inline int is_absolute_path(const char *path) |
25 | { | |
26 | return path[0] == '/'; | |
27 | } | |
6f06ccbc | 28 | |
afaed6d3 | 29 | char *mkpath(const char *fmt, ...) __printf(1, 2); |
6f06ccbc | 30 | |
8b40f521 | 31 | #endif /* __PERF_CACHE_H */ |