]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bpftool-visualization'
authorAlexei Starovoitov <ast@kernel.org>
Fri, 2 Mar 2018 02:29:50 +0000 (18:29 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 2 Mar 2018 02:29:50 +0000 (18:29 -0800)
commit81170495ab850db62bce7b0a919e0551c14c8e08
treec9d40bc77d803eeea1d26b3e8a6c78467606a704
parent1c64b058ae01add844fed82cfacb152b4789fda2
parent056d6e710cd8ae3869d88cede941963b84039be0
Merge branch 'bpftool-visualization'

Jakub Kicinski says:

====================
Jiong says:

This patch set is an application of CFG information on eBPF program
visualization. It presents some initial code for building CFG information
from eBPF instruction sequences.

After we get eBPF program bytecode, we do sub-program detection and
basic-block partition. These information then are visualized into DOT
graph.

The user could use any DOT graphic tools (xdot, graphviz etc) to view it.

For example:

  bpftool prog dump xlated id 2 visual &>output.dot

  [xdot | dotty] output.dot
  dot -Tpng -o output.png

This initial patch set hasn't tuned much on the dot description layout
nor decoration, we could improve them later once the direction of the patch
set is agreed on. We could also visualize some static analysis performance
data.

v2 (Jakub):
 - update license headers and add SPDX tags.
====================

Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>