diff options
author | Taeung Song <[email protected]> | 2016-04-14 16:53:19 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-04-14 09:15:47 -0300 |
commit | 860b8d4b3f893c97f905b978ecf62f48816dc5de (patch) | |
tree | 12aeecb0452bd85432b8c15f48fb1e7957bbc498 /tools/perf/util/scripting-engines/trace-event-perl.c | |
parent | 20105ca1240c3d3ac8cc79bf195022e5e5c1c3fb (diff) |
perf config: Make show_config() use perf_config_set
Currently show_config() has a problem when user and system config files
have the same config variables i.e.:
# cat ~/.perfconfig
[top]
children = false
When $(sysconfdir) is /usr/local/etc
# cat /usr/local/etc/perfconfig
[top]
children = true
Before:
# perf config --user --list
top.children=false
# perf config --system --list
top.children=true
# perf config --list
top.children=true
top.children=false
Because perf_config() can call show_config() each the config file (user
and system). Fix it.
After:
# perf config --user --list
top.children=false
# perf config --system --list
top.children=true
# perf config --list
top.children=false
Signed-off-by: Taeung Song <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Masami Hiramatsu <[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]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions