15630257fSFerruh Yigit.. SPDX-License-Identifier: BSD-3-Clause 25630257fSFerruh Yigit Copyright(c) 2015 Intel Corporation. 3d6448863SChristian Ehrhardt 42a65f12fSDongdong Liudpdk-proc-info Application 52a65f12fSDongdong Liu========================== 6d6448863SChristian Ehrhardt 72a65f12fSDongdong LiuThe dpdk-proc-info application is a Data Plane Development Kit (DPDK) application 8d6448863SChristian Ehrhardtthat runs as a DPDK secondary process and is capable of retrieving port 98a37f37fSVipin Varghesestatistics, resetting port statistics, printing DPDK memory information and 108a37f37fSVipin Varghesedisplaying debug information for port. 11d6448863SChristian EhrhardtThis application extends the original functionality that was supported by 12d6448863SChristian Ehrhardtdump_cfg. 13d6448863SChristian Ehrhardt 14d6448863SChristian EhrhardtRunning the Application 15d6448863SChristian Ehrhardt----------------------- 16d6448863SChristian EhrhardtThe application has a number of command line options: 17d6448863SChristian Ehrhardt 18d6448863SChristian Ehrhardt.. code-block:: console 19d6448863SChristian Ehrhardt 202a65f12fSDongdong Liu ./<build_dir>/app/dpdk-proc-info -- -m | [-p PORTMASK] [--stats | --xstats | 21c13e8984SVipin Varghese --stats-reset | --xstats-reset] [ --show-port | --show-tm | --show-crypto | 22dd2658f8SDongdong Liu --show-ring[=name] | --show-mempool[=name] | --iter-mempool=name | 230084463eSMin Hu (Connor) --show-port-private | --version | --firmware-version | --show-rss-reta | 246ff065b2SDongdong Liu --show-module-eeprom | --show-rx-descriptor queue_id:offset:num | 25*674bb390SAbdullah Sevincer --show-tx-descriptor queue_id:offset:num | --show-edev-queue-xstats=queue_num:evdev_id | 26*674bb390SAbdullah Sevincer --show-edev-port-xstats=port_num :evdev_id | --edev-dump-xstats=evdev_id | 27*674bb390SAbdullah Sevincer --edev-reset-xstats=evdev_id | --show-edev-device-xstats=evdev_id] 28d6448863SChristian Ehrhardt 29d6448863SChristian EhrhardtParameters 30d6448863SChristian Ehrhardt~~~~~~~~~~ 31d6448863SChristian Ehrhardt**-p PORTMASK**: Hexadecimal bitmask of ports to configure. 32d6448863SChristian Ehrhardt 33d6448863SChristian Ehrhardt**--stats** 34d6448863SChristian EhrhardtThe stats parameter controls the printing of generic port statistics. If no 35d6448863SChristian Ehrhardtport mask is specified stats are printed for all DPDK ports. 36d6448863SChristian Ehrhardt 37d6448863SChristian Ehrhardt**--xstats** 3881c85700SRami RosenThe xstats parameter controls the printing of extended port statistics. If no 39d6448863SChristian Ehrhardtport mask is specified xstats are printed for all DPDK ports. 40d6448863SChristian Ehrhardt 41d6448863SChristian Ehrhardt**--stats-reset** 42d6448863SChristian EhrhardtThe stats-reset parameter controls the resetting of generic port statistics. If 43d6448863SChristian Ehrhardtno port mask is specified, the generic stats are reset for all DPDK ports. 44d6448863SChristian Ehrhardt 45d6448863SChristian Ehrhardt**--xstats-reset** 46d6448863SChristian EhrhardtThe xstats-reset parameter controls the resetting of extended port statistics. 47d6448863SChristian EhrhardtIf no port mask is specified xstats are reset for all DPDK ports. 48d6448863SChristian Ehrhardt 49d6448863SChristian Ehrhardt**-m**: Print DPDK memory information. 5020d469efSMarko Kovacevic 518a37f37fSVipin Varghese**--show-port** 52d629b7b5SJohn McNamaraThe show-port parameter displays port level various configuration information 538a37f37fSVipin Vargheseassociated to RX port queue pair. 548a37f37fSVipin Varghese 55dbc72300SVipin Varghese**--show-tm** 56dbc72300SVipin VargheseThe show-tm parameter displays per port traffic manager settings, current 57dbc72300SVipin Vargheseconfigurations and statistics. 58dbc72300SVipin Varghese 59fe773600SVipin Varghese**--show-crypto** 60fe773600SVipin VargheseThe show-crypto parameter displays available cryptodev configurations, 61fe773600SVipin Varghesesettings and stats per node. 62fe773600SVipin Varghese 63c13e8984SVipin Varghese**--show-ring[=name]** 64d629b7b5SJohn McNamaraThe show-ring parameter display current allocation of all ring with 65c13e8984SVipin Varghesedebug information. Specifying the name allows to display details for specific 66c13e8984SVipin Varghesering. For invalid or no ring name, whole list is dump. 67c13e8984SVipin Varghese 680101a0ecSVipin Varghese**--show-mempool[=name]** 690101a0ecSVipin VargheseThe show-mempool parameter display current allocation of all mempool 700101a0ecSVipin Varghesedebug information. Specifying the name allows to display details for specific 71f43d3dbbSDavid Marchandmempool. For invalid or no mempool name, whole list is dump. 720101a0ecSVipin Varghese 733056d22aSVipin Varghese**--iter-mempool=name** 743056d22aSVipin VargheseThe iter-mempool parameter iterates and displays mempool elements specified 753056d22aSVipin Vargheseby name. For invalid or no mempool name no elements are displayed. 763056d22aSVipin Varghese 77dd2658f8SDongdong Liu**--show-port-private** 78dd2658f8SDongdong LiuThe show-port-private parameter displays ports private information. 79dd2658f8SDongdong Liu 804778a8ecSMin Hu (Connor)**--version** 814778a8ecSMin Hu (Connor)The version parameter displays DPDK version. 824778a8ecSMin Hu (Connor) 8337ebf5abSDongdong Liu**--firmware-version** 8437ebf5abSDongdong LiuThe firmware-version parameter displays ethdev firmware version. 8537ebf5abSDongdong Liu 860cc5126cSMin Hu (Connor)**--show-rss-reta** 870cc5126cSMin Hu (Connor)The show-rss-reta parameter displays ports rss redirection table. 880cc5126cSMin Hu (Connor) 890084463eSMin Hu (Connor)**--show-module-eeprom** 900084463eSMin Hu (Connor)The show-module-eeprom parameter displays ports module eeprom information. 910084463eSMin Hu (Connor) 926ff065b2SDongdong Liu**--show-rx-descriptor queue_id:offset:num** 936ff065b2SDongdong LiuThe show-rx-descriptor parameter displays ports Rx descriptor information 946ff065b2SDongdong Liuspecified by queue_id, offset and num. 956ff065b2SDongdong Liuqueue_id: A Rx queue identifier on this port. 966ff065b2SDongdong Liuoffset: The offset of the descriptor starting from tail. 976ff065b2SDongdong Liunum: The number of the descriptors to dump. 986ff065b2SDongdong Liu 996ff065b2SDongdong Liu**--show-tx-descriptor queue_id:offset:num** 1006ff065b2SDongdong LiuThe show-tx-descriptor parameter displays ports Tx descriptor information 1016ff065b2SDongdong Liuspecified by queue_id, offset and num. 1026ff065b2SDongdong Liuqueue_id: A Tx queue identifier on this port. 1036ff065b2SDongdong Liuoffset: The offset of the descriptor starting from tail. 1046ff065b2SDongdong Liunum: The number of the descriptors to dump. 1056ff065b2SDongdong Liu 106*674bb390SAbdullah Sevincer**--show-edev-queue-xstats queue_num:evdev_id** 107*674bb390SAbdullah SevincerThe show-edev-queue-xstats parameter enables stats for specified queue or all queues. 108*674bb390SAbdullah Sevincerqueue_num: The queue number to get queue xstats for this specified queue or * for all queues. 109*674bb390SAbdullah Sevincerevdev_id: Id of the eventdev device to display xstats. 110*674bb390SAbdullah Sevincer 111*674bb390SAbdullah Sevincer**--show-edev-port-xstats port_num:evdev_id** 112*674bb390SAbdullah SevincerThe show-edev-port-xstats parameter enables stats for specified port or all ports. 113*674bb390SAbdullah Sevincerport_num: The port number to get port xstats for this specified port or * for all ports. 114*674bb390SAbdullah Sevincerevdev_id: Id of the eventdev device to display xstats. 115*674bb390SAbdullah Sevincer 116*674bb390SAbdullah Sevincer**--edev-dump-xstats evdev_id** 117*674bb390SAbdullah SevincerThe edev-dump-xstats parameter dumps all eventdev stats. 118*674bb390SAbdullah Sevincerevdev_id: Id of the eventdev device to display xstats. 119*674bb390SAbdullah Sevincer 120*674bb390SAbdullah Sevincer**--edev-reset-xstats evdev_id** 121*674bb390SAbdullah SevincerThe edev-reset-xstats parameter resets eventdev xstats after reading. 122*674bb390SAbdullah Sevincerevdev_id: Id of the eventdev device to display xstats. 123*674bb390SAbdullah Sevincer 124*674bb390SAbdullah Sevincer**--show-edev-device-xstats evdev_id** 125*674bb390SAbdullah SevincerThe show-edev-device-xstats parameter displays eventdev device xstats. 126*674bb390SAbdullah Sevincerevdev_id: Id of the eventdev device to display xstats. 127*674bb390SAbdullah Sevincer 128bacf3476SMarko KovacevicLimitations 129bacf3476SMarko Kovacevic----------- 13020d469efSMarko Kovacevic 1312a65f12fSDongdong Liu* dpdk-proc-info should run alongside primary process with same DPDK version. 132bacf3476SMarko Kovacevic 1332a65f12fSDongdong Liu* When running ``dpdk-proc-info`` with shared library mode, it is required to 134bacf3476SMarko Kovacevic pass the same NIC PMD libraries as used for the primary application. Any 135d629b7b5SJohn McNamara mismatch in PMD library arguments can lead to undefined behavior and results 136bacf3476SMarko Kovacevic affecting primary application too. 137bacf3476SMarko Kovacevic 1382a65f12fSDongdong Liu* Stats retrieval using ``dpdk-proc-info`` is not supported for virtual devices like PCAP and TAP. 139bacf3476SMarko Kovacevic 1402a65f12fSDongdong Liu* Since default DPDK EAL arguments for ``dpdk-proc-info`` are ``-c1, -n4 & --proc-type=secondary``, 141bacf3476SMarko Kovacevic It is not expected that the user passes any EAL arguments. 142