diff options
author | Stefan Raspl <[email protected]> | 2017-03-10 13:40:13 +0100 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2017-03-29 12:01:31 +0200 |
commit | f9ff1087354e5e063b96a291360a8de84bea0bed (patch) | |
tree | 906750a31a22bac0619fa4ecd57d2516860c5276 /scripts/gdb/linux/proc.py | |
parent | 645c1728a9d33d78028d93a2ed770f51df0a92c6 (diff) |
tools/kvm_stat: add option '--guest'
Add a new option '-g'/'--guest' to select a particular process by providing
the QEMU guest name.
Notes:
- The logic to figure out the pid corresponding to the guest name might look
scary, but works pretty reliably in practice; in the unlikely event that it
returns add'l flukes, it will bail out and hint at using '-p' instead, no
harm done.
- Mixing '-g' and '-p' is possible, and the final instance specified on the
command line is the significant one. This is consistent with current
behavior for '-p' which, if specified multiple times, also regards the final
instance as the significant one.
Signed-off-by: Stefan Raspl <[email protected]>
Reviewed-by: Janosch Frank <[email protected]>
Signed-off-by: Radim Krčmář <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions