diff options
author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2018-10-26 13:34:52 +0300 |
---|---|---|
committer | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2018-10-26 14:53:11 +0300 |
commit | 4c7c82fbd067f4f54a5cf180fdb9db6a42e88741 (patch) | |
tree | 6bb8c231cc91046bb4d08499098f3aa4235aa231 /scripts | |
parent | 7844d53a202a5e201e4b8ea381eb916c9b0afd9c (diff) |
add tcpdump recipe for target
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/get-taprio-pcap.sh | 12 | ||||
-rwxr-xr-x | scripts/send-udp-tai.sh | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/scripts/get-taprio-pcap.sh b/scripts/get-taprio-pcap.sh new file mode 100755 index 0000000..82d007b --- /dev/null +++ b/scripts/get-taprio-pcap.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +. scripts/lava-common.sh + +iface=$(find_vland_iface) +packets='600000' +port='7788' +lava-wait udp-tai-tx +# TODO make port/packet count configurable +tcpdump -c "$packets" -i "$iface" -w tsn.pcap -j adapter_unsynced -tt \ + --time-stamp-precision=nano port "$port" +echo "talker_strict :: udp port $port" > sched_filter diff --git a/scripts/send-udp-tai.sh b/scripts/send-udp-tai.sh index 8a609eb..7c74083 100755 --- a/scripts/send-udp-tai.sh +++ b/scripts/send-udp-tai.sh @@ -5,6 +5,7 @@ git clone https://github.com/apalos/taprio-tests.git pushd taprio-tests && make popd + now=`date +%s%N` i=$(($now + 37000000000)) base=$(($i - ($i % 1000000000) + 100000)) |