Hello, :)
Add simple config read/write functionalities.
I had worked at the related patchset https://lkml.org/lkml/2016/2/22/38
But I remake new this patchset for only support for read/write config file.
And There're Namhyung's requests https://lkml.org/lkml/2016/10/24/572
In particular, I agonized implement way for write functionality.
I especially wonder other opinions about new boolean variable
'from_system_config' I use.
If someone review this patchset and give me some feedback,
I'd appreciated it. :)
Thanks,
Taeung
v2:
- a bit change commit messages
- refactor parts of parse_config_arg
Taeung Song (7):
perf config: Add support for getting functionality
perf config: Document examples getting config info in man page
perf config: Parse arguments before getting functionality
perf config: Parse arguments before setting functionality
perf config: Add support for write functionality
perf config: Document config setting examples in man page
perf config: Mark where are config items from (user or system)
tools/perf/Documentation/perf-config.txt | 35 +++++++
tools/perf/builtin-config.c | 155 ++++++++++++++++++++++++++++++-
tools/perf/util/config.c | 20 ++++
tools/perf/util/config.h | 4 +
4 files changed, 211 insertions(+), 3 deletions(-)