diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-29 11:08:50 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-30 11:43:56 +0000 |
commit | 5375e6431c0475b1a266d481af2af5187dbf99f2 (patch) | |
tree | 42ddb49adc97802d38470bd1ad5d440970d3fc2e /bitbake/lib/bb/ui | |
parent | 5b234d1539c26b011a6a68fc583080a75fa02efb (diff) | |
download | poky-5375e6431c0475b1a266d481af2af5187dbf99f2.tar.gz |
bitbake: bitbake: Set process names to be meaninful
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.
(Bitbake rev: 539726a3b2202249a3f148d99e08909cb61902a5)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui')
-rw-r--r-- | bitbake/lib/bb/ui/knotty.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/ui/uievent.py | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index b42f8eb888..3f2b77b6be 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py | |||
@@ -272,6 +272,8 @@ def main(server, eventHandler, params, tf = TerminalFilter): | |||
272 | logger.addHandler(console) | 272 | logger.addHandler(console) |
273 | logger.addHandler(errconsole) | 273 | logger.addHandler(errconsole) |
274 | 274 | ||
275 | bb.utils.set_process_name("KnottyUI") | ||
276 | |||
275 | if params.options.remote_server and params.options.kill_server: | 277 | if params.options.remote_server and params.options.kill_server: |
276 | server.terminateServer() | 278 | server.terminateServer() |
277 | return | 279 | return |
diff --git a/bitbake/lib/bb/ui/uievent.py b/bitbake/lib/bb/ui/uievent.py index df22e253ca..6b479bfa54 100644 --- a/bitbake/lib/bb/ui/uievent.py +++ b/bitbake/lib/bb/ui/uievent.py | |||
@@ -104,6 +104,7 @@ class BBUIEventQueue: | |||
104 | def startCallbackHandler(self): | 104 | def startCallbackHandler(self): |
105 | 105 | ||
106 | self.server.timeout = 1 | 106 | self.server.timeout = 1 |
107 | bb.utils.set_process_name("UIEventQueue") | ||
107 | while not self.server.quit: | 108 | while not self.server.quit: |
108 | try: | 109 | try: |
109 | self.server.handle_request() | 110 | self.server.handle_request() |