2009-09-25 00:02:18 +08:00
|
|
|
#ifndef __PERF_CACHE_H
|
|
|
|
#define __PERF_CACHE_H
|
2009-04-20 21:00:56 +08:00
|
|
|
|
|
|
|
#include "strbuf.h"
|
2015-12-15 23:39:39 +08:00
|
|
|
#include <subcmd/pager.h>
|
2012-11-13 21:30:35 +08:00
|
|
|
#include "../ui/ui.h"
|
2009-04-20 21:00:56 +08:00
|
|
|
|
2017-06-16 22:57:54 +08:00
|
|
|
#include <linux/compiler.h>
|
2015-12-15 23:39:33 +08:00
|
|
|
#include <linux/string.h>
|
|
|
|
|
2009-10-13 16:18:16 +08:00
|
|
|
#define CMD_EXEC_PATH "--exec-path"
|
|
|
|
#define CMD_DEBUGFS_DIR "--debugfs-dir="
|
|
|
|
|
2009-04-20 21:00:56 +08:00
|
|
|
#define EXEC_PATH_ENVIRONMENT "PERF_EXEC_PATH"
|
2009-07-22 02:16:29 +08:00
|
|
|
#define PERF_DEBUGFS_ENVIRONMENT "PERF_DEBUGFS_DIR"
|
2015-02-03 03:35:07 +08:00
|
|
|
#define PERF_TRACEFS_ENVIRONMENT "PERF_TRACEFS_DIR"
|
2015-12-15 23:39:35 +08:00
|
|
|
#define PERF_PAGER_ENVIRONMENT "PERF_PAGER"
|
2009-04-20 21:00:56 +08:00
|
|
|
|
|
|
|
int split_cmdline(char *cmdline, const char ***argv);
|
|
|
|
|
|
|
|
#define alloc_nr(x) (((x)+16)*3/2)
|
|
|
|
|
|
|
|
static inline int is_absolute_path(const char *path)
|
|
|
|
{
|
|
|
|
return path[0] == '/';
|
|
|
|
}
|
2009-04-20 21:22:22 +08:00
|
|
|
|
2017-06-16 22:57:54 +08:00
|
|
|
char *mkpath(const char *fmt, ...) __printf(1, 2);
|
2009-04-20 21:22:22 +08:00
|
|
|
|
2009-09-25 00:02:18 +08:00
|
|
|
#endif /* __PERF_CACHE_H */
|