]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - tools/perf/util/cache.h
Merge tag 'v4.11-rc6' into perf/core, to pick up fixes
[mirror_ubuntu-bionic-kernel.git] / tools / perf / util / cache.h
CommitLineData
8b40f521
JK
1#ifndef __PERF_CACHE_H
2#define __PERF_CACHE_H
07800601 3
07800601 4#include "strbuf.h"
4b6ab94e 5#include <subcmd/pager.h>
59ed16b3 6#include "../ui/ui.h"
07800601 7
ce990917
JP
8#include <linux/string.h>
9
cfed95a6 10#define CMD_EXEC_PATH "--exec-path"
cfed95a6
VL
11#define CMD_DEBUGFS_DIR "--debugfs-dir="
12
07800601 13#define EXEC_PATH_ENVIRONMENT "PERF_EXEC_PATH"
5beeded1 14#define PERF_DEBUGFS_ENVIRONMENT "PERF_DEBUGFS_DIR"
23773ca1 15#define PERF_TRACEFS_ENVIRONMENT "PERF_TRACEFS_DIR"
096d3558 16#define PERF_PAGER_ENVIRONMENT "PERF_PAGER"
07800601 17
07800601
IM
18int split_cmdline(char *cmdline, const char ***argv);
19
20#define alloc_nr(x) (((x)+16)*3/2)
21
07800601
IM
22static inline int is_absolute_path(const char *path)
23{
24 return path[0] == '/';
25}
6f06ccbc 26
3938bad4 27char *mkpath(const char *fmt, ...) __attribute__((format (printf, 1, 2)));
6f06ccbc 28
8b40f521 29#endif /* __PERF_CACHE_H */