forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
- Loading branch information
Showing
5 changed files
with
38 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
include::guestmount.txt[] | ||
|
||
--guestkallsyms=<path>:: | ||
Guest OS /proc/kallsyms file copy. perf reads it to get guest | ||
kernel symbols. Users copy it out from guest OS. | ||
|
||
--guestmodules=<path>:: | ||
Guest OS /proc/modules file copy. perf reads it to get guest | ||
kernel module information. Users copy it out from guest OS. | ||
|
||
--guestvmlinux=<path>:: | ||
Guest OS kernel vmlinux. | ||
|
||
--guest-code:: | ||
Indicate that guest code can be found in the hypervisor process, | ||
which is a common case for KVM test programs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--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 {GMEXAMPLECMD} --guestmount=~/guestmount {GMEXAMPLESUBCMD} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters