]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
interconnect: Add interconnect_graph file to debugfs
authorLeonard Crestez <leonard.crestez@nxp.com>
Mon, 18 Nov 2019 22:34:01 +0000 (00:34 +0200)
committerGeorgi Djakov <georgi.djakov@linaro.org>
Mon, 16 Dec 2019 07:49:54 +0000 (09:49 +0200)
commit1a0013c62b33158dcb67a3c11872a03be50711a3
treec3095e63c7641e7e50fcf15f2065870c34dda832
parentb92c35e1b9c9211635df9e8fb060c69311871865
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>
Documentation/driver-api/interconnect.rst
drivers/interconnect/core.c