From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9A088A034E; Wed, 6 May 2020 21:37:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 72D0E1DA54; Wed, 6 May 2020 21:37:54 +0200 (CEST) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by dpdk.org (Postfix) with ESMTP id 574DF1DA21 for ; Wed, 6 May 2020 21:37:53 +0200 (CEST) Received: by mail-pl1-f177.google.com with SMTP id u22so934287plq.12 for ; Wed, 06 May 2020 12:37:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DLVXpt0G0POEEIP3O8+j8ULwP2JxeKLo83GRuU/OCZA=; b=bSslqYCPEhJypMmFoBT1ANtyN+3NiPJlZDM2tuCrxu3PKZXPo4LUevnfmwMnd7F/UX ewwsdk69EHVH/yB3B8LwzFxyBrhLip1VbL0iacsmCNVAc1UflPaam7UfvV6YgXY9QLpi C0HFCuxJMEepwFjZtnwmb3k2v+2C1e1gHvvwtdy2FFXkyyI+WchjcrNLURt7LVGwgiO+ Nn+6yCjLlZaZcisArV/5BWavq4ujgdKBpzn1gBNUT2IpxSYTJcFRSb24uXBV/HSbdIkC THf34nV5WcEiXkpHcakU3hof9wHDbNSdK+jyFp7P6a2vPgDP2bPKfQZJ3TZ0O+92Yco0 oi/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DLVXpt0G0POEEIP3O8+j8ULwP2JxeKLo83GRuU/OCZA=; b=LN1axiHxneTmwmLCUUtidY5s4+3whpOBdKb3UhVsRYh1PlWAVauEEke5Wudu8+6lvd OX1FkTuAlURSerMbPqTK16YclkcZ+XACdbI9kiDqJ8gjuwWdMtfJ+5rVxgJkobByrqrN irYYr8Ir/z3ovBocV0FlSl5GJvPp60Hz289xE3ATBAh5uiOOV3D8SOmJLPevgPRoXpUd HWx5OsgRdASupBkT1mgD884vmQ/qvEvnLNc3zvV4wVO+3GQ0/TbYPvtnNvewwVIC2boU lbbHwc4IrUK06LErPGxuVBmO+ZxPpgTKL94lf90WErPADDXdBcq461+AXrIJgDLfO3Kj mEhA== X-Gm-Message-State: AGi0PuaNNnVtRBmBgTOagHOOZEZDRO+wTc/6nboeN0Vw9HZan7gW38dV nHVOVw3bj2EXOgu5kAhlZ2IVor1+/dUyqQ== X-Google-Smtp-Source: APiQypKo3UtYEuK8zWIFtGa03tn0QilLzHmjcBQamHxcsAd+TC6buDhniDS3q/IXeL3N8XGJeTguRQ== X-Received: by 2002:a17:90a:328f:: with SMTP id l15mr11995295pjb.77.1588793872024; Wed, 06 May 2020 12:37:52 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id j5sm1832971pjf.0.2020.05.06.12.37.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2020 12:37:51 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 6 May 2020 12:37:34 -0700 Message-Id: <20200506193741.24117-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 0/7] proc-info enhancements X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The current proc-info command is useful for diagnosing issues with external DPDK applications, but the display is limited and somewhat ugly. This patchset adds some enhancements which show more info and suppress unnecessary stuff. Before: EAL: Detected 4 lcore(s) EAL: Detected 1 NUMA nodes EAL: Multi-process socket /var/run/dpdk/rte/mp_socket_638764_15dfaa1a166a EAL: Selected IOVA mode 'PA' EAL: Probing VFIO support... EAL: PCI device ae9f:00:02.0 on NUMA socket 0 EAL: probe driver: 15b3:1014 net_mlx5 ========== show - Port PMD 3490000000========== ===== Port (1)===== - generic config -- Socket 0 -- link speed 40000 duplex 1, auto neg 1 status 1 -- promiscuous (1) -- mtu (1500) - queue -- queue 0 rx scatter 0 descriptors 256 offloads 0x0 mempool socket 0 - cyrpto context -- security context - (nil) ===== Port (2)===== - generic config -- Socket 0 -- link speed 10000 duplex 1, auto neg 1 status 1 -- promiscuous (1) -- mtu (1500) - queue -- queue 0 rx scatter 0 descriptors 512 offloads 0x0 mempool socket 0 - cyrpto context -- security context - (nil) ================================================================================ ======================================== ======================================== After: ========== show - Port PMD ========== ===== Port 1 ===== - generic config -- driver net_netvsc device 4179c815-5d8a-4915-976e-9ea2378e382b socket 0 -- link speed 40Gbps (auto neg), duplex full, up -- mac 00:15:5D:01:10:02 -- promiscuous (1) -- mtu (1500) - rx queue -- 0 descriptors 0/256 offloads 0 socket 0 - tx queue -- 0 descriptors 256/256 offloads 0 ===== Port 2 ===== - generic config -- driver net_netvsc device d8e21696-8885-4567-baf6-1d1cefdf6231 socket 0 -- link speed 10Gbps (auto neg), duplex full, up -- mac 00:15:5D:01:10:09 -- promiscuous (1) -- mtu (1500) - rx queue -- 0 descriptors 0/512 offloads 0 socket 0 - tx queue -- 0 descriptors 512/512 offloads 0 Stephen Hemminger (7): app/proc-info: remove unused logtype #define app/proc-info: eliminate useless borders app/proc-info: hide EAL info messages app/proc-info: add more info to show_ports app/proc-info: hide crypto-context display app/proc-info: dump rx and tx descriptor info app/proc-info: provide way to request info on owned ports app/proc-info/Makefile | 3 + app/proc-info/main.c | 283 ++++++++++++++++++++++++++++------------- 2 files changed, 197 insertions(+), 89 deletions(-) -- 2.20.1