[bitbake-devel] [PATCH 2/8] knotty.py: Extend knotty to support "real time" log tail for tasks

Mark Hatle mark.hatle at windriver.com
Tue Sep 18 00:13:09 UTC 2012


On 9/17/12 5:43 PM, Jason Wessel wrote:
> This patch provides the capability to knotty to have a higher log
> level where the individual tasks logs can be multiplexed to stdio.
> This is highly desirable for several different use cases.
>
> 1) You can visually spot "hot spots" in building parallel tasks
>
> 2) The relative order an sequence of events can be determined in
>     difficult to diagnose inter-related library problems.
>
> 3) It provides a nice way to see what all is actually going on and
>     getting logged by various tasks such as a kernel compile where you
>     might want to actually look at the output in a build over build
>     scenario.
>
> 4) There are most certainly other aspects where this is useful.
>
> The primary control is to set the BB_RT_LOGLEVEL = "2" in your
> local.conf.  Additional capabilities will follow in successive
> patches.  When parallel tasks are enabled, the logs will be
> multiplexed and prefixed with the PID of the task.  In the
> non-parallel case there is no PID prefix as everything is linear.
>
> (LOCAL REV: NOT UPSTREAM)

As any FYI, this adds the new BB_RT_LOGLEVEL.  If this patch is applied, then 
BB_RT_LOGLEVEL should be added to BB_HASHCONFIG_WHITELIST in bitbake.conf.

--Mark





More information about the bitbake-devel mailing list