From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MM1PH-0003ex-20 for qemu-devel@nongnu.org; Wed, 01 Jul 2009 11:07:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MM1PC-0003bY-7W for qemu-devel@nongnu.org; Wed, 01 Jul 2009 11:07:30 -0400 Received: from [199.232.76.173] (port=36174 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MM1PC-0003bV-42 for qemu-devel@nongnu.org; Wed, 01 Jul 2009 11:07:26 -0400 Received: from mx2.redhat.com ([66.187.237.31]:52531) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MM1Om-0003N8-Nr for qemu-devel@nongnu.org; Wed, 01 Jul 2009 11:07:25 -0400 Message-ID: <4A4B7BFA.8020709@redhat.com> Date: Wed, 01 Jul 2009 18:08:42 +0300 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] Allow setting qemu process name References: <20090701093251.GA12447@basil.fritz.box> <4A4B64B2.3040106@codemonkey.ws> <20090701134344.GT6760@one.firstfloor.org> <4A4B6B5B.5000106@codemonkey.ws> <20090701140644.GV6760@one.firstfloor.org> In-Reply-To: <20090701140644.GV6760@one.firstfloor.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andi Kleen Cc: qemu-devel@nongnu.org On 07/01/2009 05:06 PM, Andi Kleen wrote: > On Wed, Jul 01, 2009 at 08:57:47AM -0500, Anthony Liguori wrote: > >> Andi Kleen wrote: >> >>> On Wed, Jul 01, 2009 at 08:29:22AM -0500, Anthony Liguori wrote: >>> >>> It's only default with -name. I don't think anyone would look through >>> /proc matching for process names, that would be too broken anyways. >>> If they look through ps ax they would still work. >>> >>> >> If someone has a script today that uses top -n 1 | grep >> qemu-system-x86_64 that script will break. >> > > That would already break if qemu-system-x86_64 is by chance not in > the ~20 or so processes that take the most CPU time. That is what I meant > with already broken. I consider it very likely that the scripts > all use ps at least, which is not affected. > I often use 'pkill qemu', but no idea which process name that looks at. -- error compiling committee.c: too many arguments to function