1 How to build a vpp dispatch trace aware Wireshark
2 =================================================
4 We have upstreamed our vpp pcap dispatch trace dissector. After
5 working through a laundry list of issues discovered during the
6 upstreaming process, it appears that the code is close to being
7 merged. See https://code.wireshark.org/review/#/c/31466.
9 As of this writing, the simplest way to build a vpp dispatch trace
10 aware wireshark is to clone the wireshark repo, and apply the vpp
14 Download wireshark source code
15 ------------------------------
17 The wireshark git repo is large, so it takes a while to clone.
20 git clone https://code.wireshark.org/review/wireshark
23 Download Gerrit 31466 using the URL shown above. If you have "git
24 review" set up, it's as simple as "git review -d 31466" in the wireshark
27 Alternatively, download a patch-file from the gerrit server and apply
30 Install prerequisite Debian packages
31 ------------------------------------
33 Here is a list of prerequisite packages which must be present in order
34 to compile wireshark, beyond what's typically installed on an Ubuntu
38 libgcrypt11-dev flex bison qtbase5-dev qttools5-dev-tools qttools5-dev
39 qtmultimedia5-dev libqt5svg5-dev libpcap-dev qt5-default
45 Wireshark uses cmake, so it's relatively easy to build, at least on
57 Make a pcap dispatch trace
58 --------------------------
60 Configure vpp to pass traffic in some fashion or other, and then:
63 vpp# pcap dispatch trace on max 10000 file vppcapture buffer-trace dpdk-input 1000
67 or similar. Run traffic for long enough to capture some data. Save the
68 dispatch trace capture like so:
71 vpp# pcap dispatch trace off
77 Display /tmp/vppcapture in the vpp-enabled version of wireshark.
78 Normal version of wireshark will refuse to process vpp dispatch trace
79 pcap files because they won't understand the encap type.
81 Set wireshark to filter on vpp.bufferindex to watch a single packet
82 traverse the forwarding graph. Otherwise, you'll see a vector of
83 packets in e.g. ip4-lookup, then a vector of packets in ip4-rewrite,