diff options
author | Jiong Wang <jiong.wang@netronome.com> | 2018-03-02 05:01:21 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-03-02 05:29:49 +0300 |
commit | efcef17a6d6575dacca22bce69e139354c5a2170 (patch) | |
tree | 2305cd907b66788820d35647f7ef39392550319a /kernel/kallsyms.c | |
parent | 6e9eb7e3f8705e5e3f1a6a2b47450ec606ab012b (diff) | |
download | linux-efcef17a6d6575dacca22bce69e139354c5a2170.tar.xz |
tools: bpftool: generate .dot graph from CFG information
This patch let bpftool print .dot graph file into stdout.
This graph is generated by the following steps:
- iterate through the function list.
- generate basic-block(BB) definition for each BB in the function.
- draw out edges to connect BBs.
This patch is the initial support, the layout and decoration of the .dot
graph could be improved.
Also, it will be useful if we could visualize some performance data from
static analysis.
Signed-off-by: Jiong Wang <jiong.wang@netronome.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/kallsyms.c')
0 files changed, 0 insertions, 0 deletions