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