From cc3fb89ef7f7f5f5ec6a4697386279e1fe9594d2 Mon Sep 17 00:00:00 2001 From: Costa Shulyupin Date: Sun, 22 Jul 2018 16:19:45 +0300 Subject: [PATCH] write_dot --- srcxray.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/srcxray.py b/srcxray.py index e64f2cf..188c524 100755 --- a/srcxray.py +++ b/srcxray.py @@ -18,6 +18,7 @@ import collections import subprocess import re import networkx as nx +from networkx.drawing.nx_agraph import write_dot black_list = ['aligned', '__attribute__', 'unlikely', 'typeof', 'u32', 'PVOP_CALLEE0', 'PVOP_VCALLEE0', 'PVOP_VCALLEE1', 'if', @@ -282,6 +283,12 @@ def syscalls(): return sc +# DiGraph +# write_dot to_agraph AGraph +# agwrite +# srcxray.py 'write_dot(syscalls(), "syscalls.dot")' + + def digraph_print(dg): def digraph_print_sub(node=None, printed=None, level=0): outs = [_ for _ in dg.successors(node)]