diff options
| author | Taeung Song <[email protected]> | 2016-04-14 07:53:19 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-04-14 12:15:47 +0000 |
| commit | 860b8d4b3f893c97f905b978ecf62f48816dc5de (patch) | |
| tree | 12aeecb0452bd85432b8c15f48fb1e7957bbc498 /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | perf config: Introduce perf_config_set class (diff) | |
| download | kernel-860b8d4b3f893c97f905b978ecf62f48816dc5de.tar.gz kernel-860b8d4b3f893c97f905b978ecf62f48816dc5de.zip | |
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-python.c')
0 files changed, 0 insertions, 0 deletions
