path: root/tools/perf/Documentation
diff options
authorTaeung Song <>2016-02-11 02:51:17 +0900
committerArnaldo Carvalho de Melo <>2016-02-12 10:54:46 -0300
commitc7ac24178c50a01f14eebcddf5c7b7a2e54676cc (patch)
tree0b9b6aa39456b4e83b91dc6c8a0648a6ea849ce7 /tools/perf/Documentation
parenta7636d9ecfa3ab7800a7c04c1f89378229eff609 (diff)
perf config: Add '--system' and '--user' options to select which config file is used
The '--system' option means $(sysconfdir)/perfconfig and '--user' means $HOME/.perfconfig. If none is used, both system and user config file are read. E.g.: # perf config [<file-option>] [options] With an specific config file: # perf config --user | --system or both user and system config file: # perf config Signed-off-by: Taeung Song <> Cc: Jiri Olsa <> Cc: Namhyung Kim <> Link: Signed-off-by: Arnaldo Carvalho de Melo <>
Diffstat (limited to 'tools/perf/Documentation')
1 files changed, 13 insertions, 1 deletions
diff --git a/tools/perf/Documentation/perf-config.txt b/tools/perf/Documentation/perf-config.txt
index c7158bfb1649..15949e2a7805 100644
--- a/tools/perf/Documentation/perf-config.txt
+++ b/tools/perf/Documentation/perf-config.txt
@@ -8,7 +8,7 @@ perf-config - Get and set variables in a configuration file.
-'perf config' -l | --list
+'perf config' [<file-option>] -l | --list
@@ -21,6 +21,14 @@ OPTIONS
Show current config variables, name and value, for all sections.
+ For writing and reading options: write to user
+ '$HOME/.perfconfig' file or read it.
+ For writing and reading options: write to system-wide
+ '$(sysconfdir)/perfconfig' or read it.
@@ -30,6 +38,10 @@ The '$HOME/.perfconfig' file is used to store a per-user configuration.
The file '$(sysconfdir)/perfconfig' can be used to
store a system-wide default configuration.
+When reading or writing, the values are read from the system and user
+configuration files by default, and options '--system' and '--user'
+can be used to tell the command to read from or write to only that location.