Skip to contentSkip to conversation

Analyzing dependencies

DISCUSSION Gary Thomas 5 participants 6 messages Apr 13, 2016 – Jul 14, 2016

lore
Share & tools
lore
#0 lore raw

If I generate the dependency files (-g => *.dot files) for my target recipe, is there a way to view/analyze them "off line" much the same way as using "bitbake -u depexp"?

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#1 lore raw

Use any program that reads dotty files

Quoted 15 lines · Gary Thomas

If I generate the dependency files (-g => *.dot files) for my target recipe, is there a way to view/analyze them "off line" much the same way as using "bitbake -u depexp"?

--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
_______________________________________________
bitbake-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/bitbake-devel

#2 lore raw
Quoted 1 line · Khem Raj

Use any program that reads dotty files

Such as dot from graphviz.

// Robert

Quoted 22 lines

On Apr 12, 2016 11:05 PM, "Gary Thomas" <[email protected] <mailto:[email protected]>> wrote:

If I generate the dependency files (-g => *.dot files) for my target recipe, is there a way to view/analyze them "off line" much the same way as using "bitbake -u depexp"?

--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
_______________________________________________
bitbake-devel mailing list
[email protected]
<mailto:[email protected]>
http://lists.openembedded.org/mailman/listinfo/bitbake-devel

#3 lore raw
In reply to Khem Raj
Quoted 2 lines · Khem Raj

Use any program that reads dotty files

Know of any interactive ones that let you explore like the 'depexp'?

Quoted 5 lines · On Apr 12, 2016 11:05 PM, "Gary Thomas" <[email protected]…

If I generate the dependency files (-g => *.dot files) for my target recipe, is there a way to view/analyze them "off line" much the same way as using "bitbake -u depexp"?

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#4 lore raw
Quoted 4 lines · On Wed, 13 Apr 2016 08:20:38 Gary Thomas wrote:
Quoted 1 line · Khem Raj

Use any program that reads dotty files

Know of any interactive ones that let you explore like the 'depexp'?

It's not quite like that but FYI I have found "xdot" useful for viewing dot files - it performs well with reasonably large graphs (though still struggles with the bitbake -g task graph unfortunately).

https://github.com/jrfonseca/xdot.py

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#5 lore raw
Quoted 20 lines

-----Original Message-----
From: [email protected] [mailto:bitbake- [email protected]] On Behalf Of Paul Eggleton
Sent: den 14 juli 2016 00:44
To: [email protected]
Cc: Gary Thomas
Subject: Re: [bitbake-devel] Analyzing dependencies

Quoted 4 lines · On Wed, 13 Apr 2016 08:20:38 Gary Thomas wrote:
Quoted 1 line · Khem Raj

Use any program that reads dotty files

Know of any interactive ones that let you explore like the 'depexp'?

It's not quite like that but FYI I have found "xdot" useful for viewing dot files - it performs well with reasonably large graphs (though still struggles with the bitbake -g task graph unfortunately).

https://github.com/jrfonseca/xdot.py

Quoted 7 lines

Cheers,
Paul

--

Paul Eggleton
Intel Open Source Technology Centre

To make it possible to view the BitBake graphs in a sane way, I recommend to use gvpr and tred (from graphviz) to filter them.

Here is an example filter for gvpr that I have used to filter out native recipes. It also changes the labels for each node to only be the recipe name. To use it, first run "bitbake -g <recipe>" for the recipe you are interested in, e.g., core-image-minimal. Then run
"gvpr -i -f filter_non-native.txt pn-depends.dot | tred | xdot.py&".

---- 8< -------- filter_non-native.txt --------------------------------- N[match(label, "/meta") != -1 &&
match(label, "virtual:native:") == -1 &&
match(name, "-native") == -1]

N {
	label = gsub(label, ' *');
}

---- >8 -------- filter_non-native.txt ---------------------------------

//Peter