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)]