devargs: add dump command in test application
authorOlivier Matz <olivier.matz@6wind.com>
Fri, 28 Feb 2014 17:25:43 +0000 (18:25 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 10 Apr 2014 13:50:34 +0000 (15:50 +0200)
commit0ae134b335abacbf0a807c4fe2aa536235503f30
tree099b50a9b008abe62323044542bdda22e525a4ec
parent8e245de6ca7e050e282cd49ffd5e68a5b6ff62f5
devargs: add dump command in test application

This is useful for debug purposes. Example:

echo 100 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
echo 100 > /sys/devices/system/node/node1/hugepages/hugepages-2048kB/nr_hugepages
./app/test -c 0x15 -n 3 -m 64 \
  --use-dev="eth_ring0" --use-device="eth_ring1" --use-device="02:00.0"
RTE>>dump_devargs
User device white list:
  VIRTUAL eth_ring0
  VIRTUAL eth_ring1
  PCI whitelist 0000:02:00.0

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
app/test/commands.c