[bitbake-devel] [PATCH] bitbake: Set process names to be meaninful

Christopher Larson clarson at kergoth.com
Sun Jan 31 17:03:19 UTC 2016


On Fri, Jan 29, 2016 at 4:08 AM, Richard Purdie <
richard.purdie at linuxfoundation.org> wrote:

> This means that when you view the process tree, the processes
> have meaningful names, aiding debugging:
>
> $ pstree -p 30021
> bash(30021)───KnottyUI(115579)───Cooker(115590)─┬─PRServ(115592)───{PRServ
> Handler}(115593)
>
> ├─Worker(115630)───bash:sleep(115631)───run.do_sleep.11(115633)───sleep(115634)
>                                                 └─{ProcessEQueue}(115591)
>
> $ pstree -p 30021
> bash(30021)───KnottyUI(117319)───Cooker(117330)─┬─Cooker(117335)
>                                                 ├─PRServ(117332)───{PRServ
> Handler}(117333)
>                                                 ├─Parser-1:2(117336)
>                                                 └─{ProcessEQueue}(117331)
>
> Applies to parse threads, PR Server, cooker, the workers and execution
> threads, working within the 16 character limit as best we can.
>
> Needed to tweak the bitbake-worker magic values to tell the
> workers apart.
>
> Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
>

This is nice, but shouldn't we at least include 'bitbake' somewhere in the
process names? Will this interfere with the ability to use pkill/killall to
kill bitbake processes in cases where it's necessary?
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20160131/43fd9e12/attachment-0002.html>


More information about the bitbake-devel mailing list