Control flow graph
Generate the control flow graph (CFG) of a BPF program with bpftool
Believe it or not, bpftool can dump the control flow graph of a program in a
format compatible with DOT. Use
dot on the output to generate a graph representing all the possible paths of
execution of a program.
# bpftool prog dump xlated id <id> visual