mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 04:17:58 +07:00
20105ca124
This infrastructure code was designed for upcoming features of 'perf config'. That collect config key-value pairs from user and system config files (i.e. user wide ~/.perfconfig and system wide $(sysconfdir)/perfconfig) to manage perf's configs. Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Taeung Song <treeze.taeung@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1460620401-23430-2-git-send-email-treeze.taeung@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
27 lines
469 B
C
27 lines
469 B
C
#ifndef __PERF_CONFIG_H
|
|
#define __PERF_CONFIG_H
|
|
|
|
#include <stdbool.h>
|
|
#include <linux/list.h>
|
|
|
|
struct perf_config_item {
|
|
char *name;
|
|
char *value;
|
|
struct list_head node;
|
|
};
|
|
|
|
struct perf_config_section {
|
|
char *name;
|
|
struct list_head items;
|
|
struct list_head node;
|
|
};
|
|
|
|
struct perf_config_set {
|
|
struct list_head sections;
|
|
};
|
|
|
|
struct perf_config_set *perf_config_set__new(void);
|
|
void perf_config_set__delete(struct perf_config_set *set);
|
|
|
|
#endif /* __PERF_CONFIG_H */
|