Merge tag 'fbdev-for-6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller...
[linux-2.6-block.git] / tools / perf / util / cache.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
8b40f521
JK
2#ifndef __PERF_CACHE_H
3#define __PERF_CACHE_H
07800601 4
07800601 5#include "strbuf.h"
4b6ab94e 6#include <subcmd/pager.h>
59ed16b3 7#include "../ui/ui.h"
07800601 8
afaed6d3 9#include <linux/compiler.h>
ce990917
JP
10#include <linux/string.h>
11
cfed95a6 12#define CMD_EXEC_PATH "--exec-path"
cfed95a6
VL
13#define CMD_DEBUGFS_DIR "--debugfs-dir="
14
07800601 15#define EXEC_PATH_ENVIRONMENT "PERF_EXEC_PATH"
5beeded1 16#define PERF_DEBUGFS_ENVIRONMENT "PERF_DEBUGFS_DIR"
23773ca1 17#define PERF_TRACEFS_ENVIRONMENT "PERF_TRACEFS_DIR"
096d3558 18#define PERF_PAGER_ENVIRONMENT "PERF_PAGER"
07800601 19
07800601
IM
20int split_cmdline(char *cmdline, const char ***argv);
21
22#define alloc_nr(x) (((x)+16)*3/2)
23
07800601
IM
24static inline int is_absolute_path(const char *path)
25{
26 return path[0] == '/';
27}
6f06ccbc 28
370ce164 29char *mkpath(char *path_buf, size_t sz, const char *fmt, ...) __printf(3, 4);
6f06ccbc 30
8b40f521 31#endif /* __PERF_CACHE_H */