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 CAFB2A04B1; Thu, 24 Sep 2020 07:34:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9477F1DCFF; Thu, 24 Sep 2020 07:34:43 +0200 (CEST) Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by dpdk.org (Postfix) with ESMTP id 267381DCF8 for ; Thu, 24 Sep 2020 07:34:42 +0200 (CEST) Received: by mail-pg1-f195.google.com with SMTP id l71so1215279pge.4 for ; Wed, 23 Sep 2020 22:34:42 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=NE1wNNjFNgAh2llhtKVy8aVdBrtYSrIVgkcXePZsm3Y=; b=NsFBH9VPSyrAk9Pci46xu0eaLAVN4O+GZk3Vqk772yTGSwc2sK6xXtpFKhuQdKoh5Q QMwWMMBcId8BIoPJqKpgWFb8ReXT/Pz+/jKPhxpl8HwK++L1S9vxy+F3bJeg1/rcyA1b N5qgdAkzikDWIq0rKT4zf6Ah9/Egvrz+79b5x9JdCuVqdT40+PQ+b6JUyX2aOVKI+xws 3xB+YqUPzDxxAkWxUz9KWMxAmZwi1G/jL/DMxvH8tVLADuuEogc7/iVxSOfecDENLrFg DiGnpTUNdoYg6Dr4j1OX+4DtBfqf/pUgu8QNPmVUMOXL7c1qYi+4wTrg696wX1TfqiZt 7EUA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=NE1wNNjFNgAh2llhtKVy8aVdBrtYSrIVgkcXePZsm3Y=; b=TL8Ktg4Z6Um8RUomFsN1SQ8hrkeokiW329EXd1y2D8FpT1B8dUEqb60OKTupBzHkm7 JY86OU3HKd7rCP5qJ+/wf5UZHDhVhsSyTETcGhLeZs9YlnAzmD2apHzd27yDicG3JvX5 oqtaw8wfoB7lx68PDRrG/8JBsuHXxRvmpPPHlSunWfwG6hss+OEZhhDz6/O9iDM3RSv4 40WD96QWItgWnJoxbdoIKqo26E4L54jCRHLaenFWwGSDLtYW7aYrb1EwUN/fDFcRv0X8 tq4gKOgIlrcZt1A+TNKWGpPLLgvH7qxJJw08DS1jd6IEN4DOxeqDYqeTv9nH+lhEH87W /49Q== X-Gm-Message-State: AOAM531bgjVvr56J4LDP24GfhU91/axOFwZZQIaj9SYM2FiIGjdA8Dvh oWX+6x4Hzc0VslhrFbPqAOVkAnlhEq8keg== X-Google-Smtp-Source: ABdhPJw1v+zTf5fA1ZnwqTUIijKj5ruOgaFamZ8jAGla62xonWu+S4lV3Q5V0m+8GJbRkVIynJ8Kvg== X-Received: by 2002:a63:e00a:: with SMTP id e10mr2633854pgh.423.1600925680761; Wed, 23 Sep 2020 22:34:40 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id v8sm1529609pgg.58.2020.09.23.22.34.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Sep 2020 22:34:39 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 23 Sep 2020 22:34:26 -0700 Message-Id: <20200924053433.12648-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200728191330.20864-1-stephen@networkplumber.org> References: <20200728191330.20864-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v6 0/7] app/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. A before/after example: # dpdk-proc-info -w 03:00.0 -- --show-port EAL: Detected 8 lcore(s) EAL: Detected 1 NUMA nodes EAL: Multi-process socket /var/run/dpdk/rte/mp_socket_23602_5b92232fa062 EAL: Selected IOVA mode 'VA' EAL: Probing VFIO support... EAL: Probe PCI driver: mlx5_pci (15b3:1013) device: 0000:03:00.0 (socket 0) EAL: No legacy callbacks, legacy socket not created ========== show - Port PMD 3490000000========== ===== Port (0)===== - generic config -- Socket 0 Link get failed (port 0): Operation not supported -- promiscuous (1) -- mtu (1500) - queue -- queue 0 rx scatter 0 descriptors 256 offloads 0x0 mempool socket 0 - cyrpto context -- security context - (nil) ================================================================================ ======================================== ======================================== After: # dpdk-proc-info -w 03:00.0 -- --show-port EAL: No legacy callbacks, legacy socket not created ========== show - Port PMD ========== ===== Port 0 ===== - generic config -- driver mlx5_pci device 03:00.0 socket 0 Link get failed (port 0): Operation not supported -- mac EC:0D:9A:37:D8:86 -- promiscuous mode enabled -- all multicast mode disabled -- mtu (1500) - rx queue -- 0 descriptors 4096 drop_en mempool mbuf_pool_socket_0 socket 0 offloads : RSS_HASH -- 1 descriptors 4096 drop_en mempool mbuf_pool_socket_0 socket 0 offloads : RSS_HASH -- 2 descriptors 4096 drop_en mempool mbuf_pool_socket_0 socket 0 offloads : RSS_HASH -- 3 descriptors 4096 drop_en mempool mbuf_pool_socket_0 socket 0 offloads : RSS_HASH - tx queue -- 0 descriptors 4096 thresh 0/0 -- 1 descriptors 4096 thresh 0/0 -- 2 descriptors 4096 thresh 0/0 -- 3 descriptors 4096 thresh 0/0 History: v6 - rebase to main and dump offload information v5 - add mempool name to queue info fix trailing whitespace v4 - incorporate mempool display modify portmask for handling owned ports v3 - consolidate chages for displaying crypto info v2 - fix checkpatch complaints Hemant Agrawal (1): app/proc-info: add crypto security context info Stephen Hemminger (6): 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: dump rx and tx descriptor info app/proc-info: provide way to request info on owned ports app/proc-info/main.c | 371 +++++++++++++++++++++++++++---------------- 1 file changed, 237 insertions(+), 134 deletions(-) -- 2.27.0