forked from raspberrypi/linux
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf config: Introduce perf_config_set class
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 <[email protected]> Signed-off-by: Taeung Song <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
- Loading branch information
Showing
2 changed files
with
199 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#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 */ |