X-Git-Url: https://git.tcpdump.org/libpcap/blobdiff_plain/95a2a70216dc01b57e8f3da2f2a53f53b926b3f9..refs/heads/master:/testprogs/visopts.py diff --git a/testprogs/visopts.py b/testprogs/visopts.py index 80c14639..f7df45a5 100755 --- a/testprogs/visopts.py +++ b/testprogs/visopts.py @@ -1,11 +1,11 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ This program parses the output from pcap_compile() to visualize the CFG after each optimize phase. Usage guide: -1. Enable optimizier debugging code when configure libpcap, +1. Enable optimizer debugging code when configure libpcap, and build libpcap & the test programs ./configure --enable-optimizer-dbg make @@ -37,13 +37,11 @@ Note: import sys, os import string -import subprocess -import json html_template = string.Template(""" - BPF compiler optimization phases for $expr + BPF compiler optimization phases for "${expr_html}"