aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/host-stack/convert_evt
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-06-12 08:12:58 -0700
committerDamjan Marion <dmarion@me.com>2019-06-12 17:14:39 +0000
commit3417d08700168d9a7c0fe561e40e73478d5e1229 (patch)
tree2715bd489ab1277d24017ad0ee12033f028d4472 /src/scripts/host-stack/convert_evt
parent26ce6ca1fe6f524a9049444fe8d55042fd7530a6 (diff)
tcp: add cc stats plotting tools
Type: feature cc_plot.py can plot cc stats collected via elogs from tcp connections. To enable the collection of cc stats, tcp must be compiled with TCP_DEBUG_CC_STAT turned on. Once the tests have been carried out, and elogs have been saved with "ev save log <file>", the logs can be converted to txt format with the convert_evt script. The resulting file can be used as input to the cc_plots script. Change-Id: I16df2993fa09cab9ad35f91825eab7df4da6428b Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/scripts/host-stack/convert_evt')
-rwxr-xr-xsrc/scripts/host-stack/convert_evt12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/scripts/host-stack/convert_evt b/src/scripts/host-stack/convert_evt
new file mode 100755
index 00000000000..1aba67d0268
--- /dev/null
+++ b/src/scripts/host-stack/convert_evt
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+# This depends on c2cpel and cpeldump. Enable their compilation by:
+# ccmake build-root/build-vpp-native/vpp/
+# and turning on VPP_BUILD_PERFTOOL
+
+BIN_PATH=../../../build-root/install-vpp-native/vpp/bin
+C2CPEL_BIN=$BIN_PATH/c2cpel
+CPELDUMP_BIN=$BIN_PATH/cpeldump
+
+$C2CPEL_BIN --in $1 --out /tmp/tmp_file.cpel
+$CPELDUMP_BIN --in /tmp/tmp_file.cpel --out $2