Skip to content

Commit

Permalink
Add replayer for VPP API traces
Browse files Browse the repository at this point in the history
This patch adds a utility to parse and replay traces
generated by vppctl# api trace save trace.cap

for json output use
- go run -file ./path/to/trace.cap
to replay in VPP use
- go run -file ./path/to/trace.cap -vpp /run/vpp/vpp.api.sock

Signed-off-by: Nathan Skrzypczak <[email protected]>
  • Loading branch information
sknat committed Dec 8, 2023
1 parent a7503e6 commit 9dd4cfc
Show file tree
Hide file tree
Showing 2 changed files with 400 additions and 0 deletions.
18 changes: 18 additions & 0 deletions scripts/replay-trace/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## VPP trace replat utility

This utility allows you to replay API traces generated by VPP,
while doing some pre-processing (e.g. creating network namespaces
before tap creation)

To use, issue in VPP:
```console
vppctl# api trace save trace.cap
```

Then run the utility on the output
```console
# for json output use
go run -file ./path/to/trace.cap
# to replay in VPP use
go run -file ./path/to/trace.cap -vpp /run/vpp/vpp.api.sock
```
Loading

0 comments on commit 9dd4cfc

Please sign in to comment.