2009-09-25 01:02:18 +09:00
|
|
|
#ifndef __PERF_CACHE_H
|
|
|
|
#define __PERF_CACHE_H
|
2009-04-20 22:00:56 +09:00
|
|
|
|
|
|
|
#include "strbuf.h"
|
2015-12-16 00:39:39 +09:00
|
|
|
#include <subcmd/pager.h>
|
2012-11-13 22:30:35 +09:00
|
|
|
#include "../ui/ui.h"
|
2009-04-20 22:00:56 +09:00
|
|
|
|
2017-06-16 23:57:54 +09:00
|
|
|
#include <linux/compiler.h>
|
2015-12-16 00:39:33 +09:00
|
|
|
#include <linux/string.h>
|
|
|
|
|
2009-10-13 17:18:16 +09:00
|
|
|
#define CMD_EXEC_PATH "--exec-path"
|
|
|
|
#define CMD_DEBUGFS_DIR "--debugfs-dir="
|
|
|
|
|
2009-04-20 22:00:56 +09:00
|
|
|
#define EXEC_PATH_ENVIRONMENT "PERF_EXEC_PATH"
|
2009-07-22 03:16:29 +09:00
|
|
|
#define PERF_DEBUGFS_ENVIRONMENT "PERF_DEBUGFS_DIR"
|
2015-02-03 04:35:07 +09:00
|
|
|
#define PERF_TRACEFS_ENVIRONMENT "PERF_TRACEFS_DIR"
|
2015-12-16 00:39:35 +09:00
|
|
|
#define PERF_PAGER_ENVIRONMENT "PERF_PAGER"
|
2009-04-20 22:00:56 +09: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 22:22:22 +09:00
|
|
|
|
2017-06-16 23:57:54 +09:00
|
|
|
char *mkpath(const char *fmt, ...) __printf(1, 2);
|
2009-04-20 22:22:22 +09:00
|
|
|
|
2009-09-25 01:02:18 +09:00
|
|
|
#endif /* __PERF_CACHE_H */
|