Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __PERF_CACHE_H
0003 #define __PERF_CACHE_H
0004 
0005 #include "strbuf.h"
0006 #include <subcmd/pager.h>
0007 #include "../ui/ui.h"
0008 
0009 #include <linux/compiler.h>
0010 #include <linux/string.h>
0011 
0012 #define CMD_EXEC_PATH "--exec-path"
0013 #define CMD_DEBUGFS_DIR "--debugfs-dir="
0014 
0015 #define EXEC_PATH_ENVIRONMENT "PERF_EXEC_PATH"
0016 #define PERF_DEBUGFS_ENVIRONMENT "PERF_DEBUGFS_DIR"
0017 #define PERF_TRACEFS_ENVIRONMENT "PERF_TRACEFS_DIR"
0018 #define PERF_PAGER_ENVIRONMENT "PERF_PAGER"
0019 
0020 int split_cmdline(char *cmdline, const char ***argv);
0021 
0022 #define alloc_nr(x) (((x)+16)*3/2)
0023 
0024 static inline int is_absolute_path(const char *path)
0025 {
0026     return path[0] == '/';
0027 }
0028 
0029 char *mkpath(const char *fmt, ...) __printf(1, 2);
0030 
0031 #endif /* __PERF_CACHE_H */