interconnect: Add interconnect_graph file to debugfs
The interconnect graphs can be difficult to understand and the current "interconnect_summary" file doesn't even display links in any way. Add a new "interconnect_graph" file to debugfs in the graphviz "dot" format which describes interconnect providers, nodes and links. The file is human-readable and can be visualized by piping through graphviz. Example: ssh $TARGET cat /sys/kernel/debug/interconnect/interconnect_graph \ | dot -Tsvg > interconnect_graph.svg Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
This commit is contained in:

committed by
Georgi Djakov

parent
b92c35e1b9
commit
1a0013c62b
@@ -91,3 +91,25 @@ Interconnect consumers are the clients which use the interconnect APIs to
|
||||
get paths between endpoints and set their bandwidth/latency/QoS requirements
|
||||
for these interconnect paths. These interfaces are not currently
|
||||
documented.
|
||||
|
||||
Interconnect debugfs interfaces
|
||||
-------------------------------
|
||||
|
||||
Like several other subsystems interconnect will create some files for debugging
|
||||
and introspection. Files in debugfs are not considered ABI so application
|
||||
software shouldn't rely on format details change between kernel versions.
|
||||
|
||||
``/sys/kernel/debug/interconnect/interconnect_summary``:
|
||||
|
||||
Show all interconnect nodes in the system with their aggregated bandwidth
|
||||
request. Indented under each node show bandwidth requests from each device.
|
||||
|
||||
``/sys/kernel/debug/interconnect/interconnect_graph``:
|
||||
|
||||
Show the interconnect graph in the graphviz dot format. It shows all
|
||||
interconnect nodes and links in the system and groups together nodes from the
|
||||
same provider as subgraphs. The format is human-readable and can also be piped
|
||||
through dot to generate diagrams in many graphical formats::
|
||||
|
||||
$ cat /sys/kernel/debug/interconnect/interconnect_graph | \
|
||||
dot -Tsvg > interconnect_graph.svg
|
||||
|
Reference in New Issue
Block a user