aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/cache.h')
-rw-r--r--tools/perf/util/cache.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/tools/perf/util/cache.h b/tools/perf/util/cache.h
index c861373aaed3..07b5d63947b1 100644
--- a/tools/perf/util/cache.h
+++ b/tools/perf/util/cache.h
@@ -4,9 +4,12 @@
4#include <stdbool.h> 4#include <stdbool.h>
5#include "util.h" 5#include "util.h"
6#include "strbuf.h" 6#include "strbuf.h"
7#include <subcmd/pager.h>
7#include "../perf.h" 8#include "../perf.h"
8#include "../ui/ui.h" 9#include "../ui/ui.h"
9 10
11#include <linux/string.h>
12
10#define CMD_EXEC_PATH "--exec-path" 13#define CMD_EXEC_PATH "--exec-path"
11#define CMD_PERF_DIR "--perf-dir=" 14#define CMD_PERF_DIR "--perf-dir="
12#define CMD_WORK_TREE "--work-tree=" 15#define CMD_WORK_TREE "--work-tree="
@@ -18,6 +21,7 @@
18#define DEFAULT_PERF_DIR_ENVIRONMENT ".perf" 21#define DEFAULT_PERF_DIR_ENVIRONMENT ".perf"
19#define PERF_DEBUGFS_ENVIRONMENT "PERF_DEBUGFS_DIR" 22#define PERF_DEBUGFS_ENVIRONMENT "PERF_DEBUGFS_DIR"
20#define PERF_TRACEFS_ENVIRONMENT "PERF_TRACEFS_DIR" 23#define PERF_TRACEFS_ENVIRONMENT "PERF_TRACEFS_DIR"
24#define PERF_PAGER_ENVIRONMENT "PERF_PAGER"
21 25
22typedef int (*config_fn_t)(const char *, const char *, void *); 26typedef int (*config_fn_t)(const char *, const char *, void *);
23extern int perf_default_config(const char *, const char *, void *); 27extern int perf_default_config(const char *, const char *, void *);
@@ -28,11 +32,6 @@ extern int perf_config_bool(const char *, const char *);
28extern int config_error_nonbool(const char *); 32extern int config_error_nonbool(const char *);
29extern const char *perf_config_dirname(const char *, const char *); 33extern const char *perf_config_dirname(const char *, const char *);
30 34
31/* pager.c */
32extern void setup_pager(void);
33extern int pager_in_use(void);
34extern int pager_use_color;
35
36char *alias_lookup(const char *alias); 35char *alias_lookup(const char *alias);
37int split_cmdline(char *cmdline, const char ***argv); 36int split_cmdline(char *cmdline, const char ***argv);
38 37
@@ -71,9 +70,4 @@ extern char *perf_path(const char *fmt, ...) __attribute__((format (printf, 1, 2
71extern char *perf_pathdup(const char *fmt, ...) 70extern char *perf_pathdup(const char *fmt, ...)
72 __attribute__((format (printf, 1, 2))); 71 __attribute__((format (printf, 1, 2)));
73 72
74#ifndef __UCLIBC__
75/* Matches the libc/libbsd function attribute so we declare this unconditionally: */
76extern size_t strlcpy(char *dest, const char *src, size_t size);
77#endif
78
79#endif /* __PERF_CACHE_H */ 73#endif /* __PERF_CACHE_H */