From 1889465a1c0c8403447aed4da0823ef2bb249473 Mon Sep 17 00:00:00 2001 From: Andi Kleen Date: Thu, 2 Jul 2009 09:34:17 +0200 Subject: 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 Signed-off-by: Anthony Liguori --- qemu-options.hx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qemu-options.hx') 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, -- cgit v1.1