perf config: Introduce perf_config_set class
authorTaeung Song <treeze.taeung@gmail.com>
Thu, 14 Apr 2016 07:53:18 +0000 (16:53 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 14 Apr 2016 12:00:42 +0000 (09:00 -0300)
commit20105ca1240c3d3ac8cc79bf195022e5e5c1c3fb
tree6df34d0dddab226e68a47dd4e019cb6d2714b989
parentecfd7a9c044e98fc3da8937e652080bc5abe7918
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 <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>
tools/perf/util/config.c
tools/perf/util/config.h [new file with mode: 0644]