diff options
author | Andi Kleen <andi@firstfloor.org> | 2009-07-02 09:34:17 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-09 16:58:08 -0500 |
commit | 1889465a1c0c8403447aed4da0823ef2bb249473 (patch) | |
tree | c50482cfa377a5540fe5f46939f2bbf3a6158e80 /qemu-options.hx | |
parent | e3fc14c3a1a77a1cda669a3e16f1f6b82577e4ec (diff) | |
download | qemu-1889465a1c0c8403447aed4da0823ef2bb249473.zip qemu-1889465a1c0c8403447aed4da0823ef2bb249473.tar.gz qemu-1889465a1c0c8403447aed4da0823ef2bb249473.tar.bz2 |
Allow setting qemu process name v2
Set the Linux process name to the name argument specified with name. I find
this useful to see which guests are taking CPU time in top.
This doesn't affect ps, which checks argv[0], but rewriting the
environment uses much more code, so I only used this simple way.
v2: Use separate process= argument, no prefixes.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-options.hx')
-rw-r--r-- | qemu-options.hx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qemu-options.hx b/qemu-options.hx index cadc822..d1d1832 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -363,12 +363,14 @@ Network adapter that supports CDC ethernet and RNDIS protocols. ETEXI DEF("name", HAS_ARG, QEMU_OPTION_name, - "-name string set the name of the guest\n") + "-name string1[,process=string2] set the name of the guest\n" + " string1 sets the window title and string2 the process name (on Linux)\n") STEXI @item -name @var{name} Sets the @var{name} of the guest. This name will be displayed in the SDL window caption. The @var{name} will also be used for the VNC server. +Also optionally set the top visible process name in Linux. ETEXI DEF("uuid", HAS_ARG, QEMU_OPTION_uuid, |