OSDN Git Service

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)
commit56b112f17e8ab1ded40d00ed9a0af63b69b021ef
treec9d40bc77d803eeea1d26b3e8a6c78467606a704
parentc8745e07d5d676b2cb49f90baec1ac5e66cb7383
parentd96fc832bcb6269d96e33d506f33033d7ed08598
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>