1 #ifndef __PERF_CONFIG_H
2 #define __PERF_CONFIG_H
5 #include <linux/list.h>
7 struct perf_config_item {
10 struct list_head node;
13 struct perf_config_section {
15 struct list_head items;
16 struct list_head node;
19 struct perf_config_set {
20 struct list_head sections;
23 extern const char *config_exclusive_filename;
25 typedef int (*config_fn_t)(const char *, const char *, void *);
26 int perf_default_config(const char *, const char *, void *);
27 int perf_config(config_fn_t fn, void *);
28 int perf_config_int(const char *, const char *);
29 u64 perf_config_u64(const char *, const char *);
30 int perf_config_bool(const char *, const char *);
31 int config_error_nonbool(const char *);
32 const char *perf_etc_perfconfig(void);
34 struct perf_config_set *perf_config_set__new(void);
35 void perf_config_set__delete(struct perf_config_set *set);
37 #endif /* __PERF_CONFIG_H */