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