[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Allow setting qemu process name
From: |
Jamie Lokier |
Subject: |
Re: [Qemu-devel] [PATCH] Allow setting qemu process name |
Date: |
Wed, 1 Jul 2009 17:27:10 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
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.
These's also ps's "c" option:
"Show the true command name. This is derived from the name of the
executable file, rather than from the argv value. Command
arguments and any modifications to them (see setproctitle(3)) are
thus not shown."
Looks liks Linux has 3 different command names to choose from:
- argv[0]
- PR_SET_NAME
- Name derived from /proc/self/exe
-- Jamie
- [Qemu-devel] [PATCH] Allow setting qemu process name, Andi Kleen, 2009/07/01
- Re: [Qemu-devel] [PATCH] Allow setting qemu process name, Avi Kivity, 2009/07/01
- Re: [Qemu-devel] [PATCH] Allow setting qemu process name, Luiz Capitulino, 2009/07/01
- Re: [Qemu-devel] [PATCH] Allow setting qemu process name, Avi Kivity, 2009/07/01
- Re: [Qemu-devel] [PATCH] Allow setting qemu process name, Luiz Capitulino, 2009/07/01
- Re: [Qemu-devel] [PATCH] Allow setting qemu process name, Avi Kivity, 2009/07/01
- Re: [Qemu-devel] [PATCH] Allow setting qemu process name, Jamie Lokier, 2009/07/01
- Re: [Qemu-devel] [PATCH] Allow setting qemu process name, Stefan Weil, 2009/07/01
Re: [Qemu-devel] [PATCH] Allow setting qemu process name, Todd T. Fries, 2009/07/23