Trying to run this I get: bill@Ubuntu15:~/linaro/review/test/common_plat/performance$ ./odp_pktio_ordered_run.sh using PCAP_IN = ./udp64.pcap _ishm.c:859:_odp_ishm_reserve():No huge pages, fall back to normal pages. check: /proc/sys/vm/nr_hugepages. PKTIO: initialized loop interface. PKTIO: initialized socket mmap, use export ODP_PKTIO_DISABLE_SOCKET_MMAP=1 to disable. PKTIO: initialized socket mmsg,use export ODP_PKTIO_DISABLE_SOCKET_MMSG=1 to disable.
ODP system info --------------- ODP API version: 1.12.0 ODP impl name: odp-linux CPU model: Intel(R) Core(TM) i7-4790K CPU CPU freq (hz): 4000000000 Cache line size: 64 CPU count: 6 Running ODP appl: "odp_pktio_ordered" ----------------- IF-count: 2 Using IFs: pcap:in=./udp64.pcap pcap:out=pcapout.pcap Num worker threads: 4 First CPU: 2 CPU mask: 0x3C Pool info --------- pool 0 name packet pool pool type packet pool shm 10 user area shm 11 num 8192 align 64 headroom 66 data size 8126 max data len 48756 max seg len 8126 tailroom 0 block size 8896 uarea size 64 shm size 72876032 base addr 0x7f2d3b71b000 uarea shm size 524288 uarea base addr 0x7f2d71f12000 pktio/socket_mmap.c:78:mmap_pkt_socket():socket(SOCK_RAW): Operation not permitted _ishm.c:451:create_file():open failed for /tmp/odp-10626-ishm-pktio-pcap:in=./udp64.pcap: No such file or directory. _ishm.c:891:_odp_ishm_reserve():_ishm_reserve failed. odp_packet_io.c:224:setup_pktio_entry():Unable to init any I/O type. odp_pktio_ordered.c:601:create_pktio():Error: failed to open pcap:in=./udp64.pcap Error: status was: 1, expected 0 ========== Trying to run it with sudo doesn't seem to work either: bill@Ubuntu15:~/linaro/review/test/common_plat/performance$ sudo ./odp_pktio_ordered_run.sh using PCAP_IN = ./udp64.pcap PKTIO: initialized loop interface. PKTIO: initialized socket mmap, use export ODP_PKTIO_DISABLE_SOCKET_MMAP=1 to disable. PKTIO: initialized socket mmsg,use export ODP_PKTIO_DISABLE_SOCKET_MMSG=1 to disable. ODP system info --------------- ODP API version: 1.12.0 ODP impl name: odp-linux CPU model: Intel(R) Core(TM) i7-4790K CPU CPU freq (hz): 4000000000 Cache line size: 64 CPU count: 6 Running ODP appl: "odp_pktio_ordered" ----------------- IF-count: 2 Using IFs: pcap:in=./udp64.pcap pcap:out=pcapout.pcap Num worker threads: 4 First CPU: 2 CPU mask: 0x3C Pool info --------- pool 0 name packet pool pool type packet pool shm 10 user area shm 11 num 8192 align 64 headroom 66 data size 8126 max data len 48756 max seg len 8126 tailroom 0 block size 8896 uarea size 64 shm size 72876032 base addr 0x7feb72400000 uarea shm size 524288 uarea base addr 0x7feb72200000 pktio/socket.c:117:mac_addr_get_fd():ioctl(SIOCGIFHWADDR): No such device: "pcap:in=./udp64". _ishm.c:859:_odp_ishm_reserve():No huge pages, fall back to normal pages. check: /proc/sys/vm/nr_hugepages. _ishm.c:451:create_file():open failed for /tmp/odp-10934-ishm-pktio-pcap:in=./udp64.pcap: No such file or directory. _ishm.c:891:_odp_ishm_reserve():_ishm_reserve failed. odp_packet_io.c:224:setup_pktio_entry():Unable to init any I/O type. odp_pktio_ordered.c:601:create_pktio():Error: failed to open pcap:in=./udp64.pcap Error: status was: 1, expected 0 On Thu, Dec 1, 2016 at 7:01 AM, Matias Elo <matias....@nokia.com> wrote: > Enable application testing using pcap pktio. > > Signed-off-by: Matias Elo <matias....@nokia.com> > --- > test/common_plat/performance/Makefile.am | 1 + > .../performance/odp_pktio_ordered_run.sh | 28 > +++++++++++++++++++++ > test/common_plat/performance/udp64.pcap | Bin 0 -> 7624 bytes > 3 files changed, 29 insertions(+) > create mode 100755 test/common_plat/performance/odp_pktio_ordered_run.sh > create mode 100644 test/common_plat/performance/udp64.pcap > > diff --git a/test/common_plat/performance/Makefile.am > b/test/common_plat/performance/Makefile.am > index 790ddae..2de07aa 100644 > --- a/test/common_plat/performance/Makefile.am > +++ b/test/common_plat/performance/Makefile.am > @@ -10,6 +10,7 @@ COMPILE_ONLY = odp_l2fwd$(EXEEXT) \ > odp_scheduling$(EXEEXT) > > TESTSCRIPTS = odp_l2fwd_run.sh \ > + odp_pktio_ordered_run.sh \ > odp_sched_latency_run.sh \ > odp_scheduling_run.sh > > diff --git a/test/common_plat/performance/odp_pktio_ordered_run.sh > b/test/common_plat/performance/odp_pktio_ordered_run.sh > new file mode 100755 > index 0000000..c31eed5 > --- /dev/null > +++ b/test/common_plat/performance/odp_pktio_ordered_run.sh > @@ -0,0 +1,28 @@ > +#!/bin/bash > +# > +# Copyright (c) 2016, Linaro Limited > +# All rights reserved. > +# > +# SPDX-License-Identifier: BSD-3-Clause > +# > + > +PCAP_IN=`find . ${TEST_DIR} $(dirname $0) -name udp64.pcap -print -quit` > +echo "using PCAP_IN = ${PCAP_IN}" > + > +./odp_pktio_ordered -i pcap:in=${PCAP_IN},pcap:out=pcapout.pcap -t 2 & > +wait $! > +STATUS=$? > + > +if [ "$STATUS" -ne 0 ]; then > + echo "Error: status was: $STATUS, expected 0" > + exit 1 > +fi > + > +if [ `stat -c %s pcapout.pcap` -ne `stat -c %s ${PCAP_IN}` ]; then > + echo "File sizes disagree" > + exit 1 > +fi > + > +rm -f pcapout.pcap > + > +exit 0 > diff --git a/test/common_plat/performance/udp64.pcap > b/test/common_plat/performance/udp64.pcap > new file mode 100644 > index > 0000000000000000000000000000000000000000..45f9d6e6341a331125e1e3e49ab8ad1e71b20712 > GIT binary patch > literal 7624 > zcmca|c+)~A1{MYw_+QV!zzF1AIDRVZQX4OW4Ui4OOdthJV3Lu8!IgnQ52VaNFl`SP > zPy-M%&2gOL#31#rG%+bTB{eNQBQq;ICpRy@ps;AvtkLiqO%tPeXtbOdEel8Mj?wyY > zv^_D}W*Ti5GK{vPNBat+eXG&_<7gilID#<RE*xzaj<yR&+l8a;!qKvDbPRcP%zboT > XVRY^UIO8<hE*$M6kM@y?=pzFFfL+O& > > literal 0 > HcmV?d00001 > > -- > 2.7.4 >