aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/Documentation/perf-inject.txt
diff options
context:
space:
mode:
authorGravatar Adrian Hunter <adrian.hunter@intel.com> 2022-08-11 20:04:11 +0300
committerGravatar Arnaldo Carvalho de Melo <acme@redhat.com> 2022-08-11 18:50:17 -0300
commit53e76d35f797b2975ad9b2934e668e59abba1f10 (patch)
treee98098da660237e286fe86d79b67788766336b97 /tools/perf/Documentation/perf-inject.txt
parentperf inject: Fix missing guestmount option documentation (diff)
downloadlinux-53e76d35f797b2975ad9b2934e668e59abba1f10.tar.gz
linux-53e76d35f797b2975ad9b2934e668e59abba1f10.tar.bz2
linux-53e76d35f797b2975ad9b2934e668e59abba1f10.zip
perf tools: Tidy guest option documentation
Move common guest options into include files. Use attribute substitution to customize an example, using "[verse]" to define the block instead of a "literal" block which does not permit substitution. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lore.kernel.org/r/20220811170411.84154-4-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Documentation/perf-inject.txt')
-rw-r--r--tools/perf/Documentation/perf-inject.txt14
1 files changed, 3 insertions, 11 deletions
diff --git a/tools/perf/Documentation/perf-inject.txt b/tools/perf/Documentation/perf-inject.txt
index c741ca2107b1..ffc293fdf61d 100644
--- a/tools/perf/Documentation/perf-inject.txt
+++ b/tools/perf/Documentation/perf-inject.txt
@@ -102,17 +102,9 @@ include::itrace.txt[]
should be used, and also --buildid-all and --switch-events may be
useful.
---guestmount=<path>::
- Guest OS root file system mount directory. Users mount guest OS
- root directories under <path> by a specific filesystem access method,
- typically, sshfs.
- For example, start 2 guest OS, one's pid is 8888 and the other's is 9999:
-[verse]
- $ mkdir \~/guestmount
- $ cd \~/guestmount
- $ sshfs -o allow_other,direct_io -p 5551 localhost:/ 8888/
- $ sshfs -o allow_other,direct_io -p 5552 localhost:/ 9999/
- $ perf inject --guestmount=~/guestmount
+:GMEXAMPLECMD: inject
+:GMEXAMPLESUBCMD:
+include::guestmount.txt[]
SEE ALSO
--------