Skip to content

Conversation

aritrbas
Copy link
Collaborator

@aritrbas aritrbas commented Jul 24, 2025

This adds support for VPP (i) trace (ii) pcap (iii) dispatch to (i) vppdev.sh and (ii) calivppctl.

Usage:

  • calivppctl trace [-node NODENAME] - Setup VPP packet tracing
    Optional params: [-count N] [-interface phy|af_xdp|af_packet|avf|vmxnet3|virtio|rdma|dpdk|memif|vcl]
  • calivppctl pcap [-node NODENAME] - Setup VPP PCAP tracing
    Optional params: [-count N] [-interface INTERFACE_NAME|any(default)] [-output FILE.pcap]
  • calivppctl dispatch [-node NODENAME] - Setup VPP dispatch tracing
    Optional params: [-count N] [-interface phy|af_xdp|af_packet|avf|vmxnet3|virtio|rdma|dpdk|memif|vcl] [-output FILE.pcap]

OR

  • vppdev.sh trace [NODENAME] - Setup VPP packet tracing
    Optional params: [-count N] [-interface phy|af_xdp|af_packet|avf|vmxnet3|virtio|rdma|dpdk|memif|vcl]
  • vppdev.sh pcap [NODENAME] - Setup VPP PCAP tracing
    Optional params: [-count N] [-interface INTERFACE_NAME|any(default)] [-output FILE.pcap]
  • vppdev.sh dispatch [NODENAME] - Setup VPP dispatch tracing
    Optional params: [-count N] [-interface phy|af_xdp|af_packet|avf|vmxnet3|virtio|rdma|dpdk|memif|vcl] [-output FILE.pcap]

VPP Examples:

  • trace: trace add af-packet-input 1000
  • pcap: pcap trace tx rx max 500 intfc host-eth0 file trace.pcap
  • dispatch: pcap dispatch trace on max 500 buffer-trace af-packet-input 500

@aritrbas aritrbas requested review from florincoras, sknat and onong July 24, 2025 01:41
@aritrbas aritrbas force-pushed the abasu-vpp-trace-pcap-dispatch branch from ec884a9 to d19837a Compare July 24, 2025 04:28
@aritrbas aritrbas force-pushed the abasu-gocalivppctl branch 2 times, most recently from dacc212 to 18983b0 Compare July 30, 2025 16:24
@aritrbas aritrbas force-pushed the abasu-vpp-trace-pcap-dispatch branch from d19837a to eaa4cd6 Compare July 30, 2025 19:48
Base automatically changed from abasu-gocalivppctl to master July 31, 2025 07:58
@aritrbas aritrbas self-assigned this Aug 21, 2025
@aritrbas aritrbas force-pushed the abasu-vpp-trace-pcap-dispatch branch from eaa4cd6 to 107366c Compare August 26, 2025 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant