From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by dpdk.org (Postfix) with ESMTP id 6104B594D for ; Wed, 23 Jul 2014 14:27:38 +0200 (CEST) Received: by mail-wi0-f171.google.com with SMTP id hi2so7682176wib.16 for ; Wed, 23 Jul 2014 05:29:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=RfKWQ4c+NiZAEm4hOnr1QxotDZVJ7VCP/EuZ7Ix5tTk=; b=OFS02Dp++pXr35YCDLI2xoyH5ysvOSIMYSiOwNmMeVa62xAMyNf8zoG+Lxfqt7lMr7 nsBHwiRK+rQ5Ig6/JJJixrRemr+waT8x6IHpU8kYYto9ZmicKmmnzu/6TEUtvRC4ADXU 4Keldeeojc/Hmc4hjYTchnJMTKPJf/2t8f9NBDrnWst4nvNl1tO626DUdhsvDfzo5JOm +nMHSaJW4FhLWZM1B7SsAmbFXw+Zd4crEQ9VwNL8H21I3+M1QeHWHesVc+17tDaXwTJ+ pBegehcHbk13WsS1UsWs/mH1/ZgO9CdN/EqZhIiw/2FIO/xL/eWUQV/x9q5IZGIljmNR 1V9g== X-Gm-Message-State: ALoCoQnjqGCiOdyAbSiK+qN4qxA7t0HwTmXJI0pmDiCh4HISXCBqv3XbK2MG465welVorqCNkV9Y X-Received: by 10.194.57.132 with SMTP id i4mr1567614wjq.6.1406118540324; Wed, 23 Jul 2014 05:29:00 -0700 (PDT) Received: from glumotte.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by mx.google.com with ESMTPSA id ch5sm5882484wjb.18.2014.07.23.05.28.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Jul 2014 05:28:59 -0700 (PDT) From: Olivier Matz To: dev@dpdk.org Date: Wed, 23 Jul 2014 14:28:52 +0200 Message-Id: <1406118534-6169-1-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 2.0.1 Subject: [dpdk-dev] [PATCH 0/2] introduce dev_ops to get extended statistics of a device X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jul 2014 12:27:38 -0000 The generic statistics structure is getting bigger as new statistics are added in specific devices. For instance, fdir, tx_pause or loopback stats do not apply on virtual devices. It won't be possible to add every specific statistics in this generic stats structure, but on the other hand these specific statistics are useful for debugging purpose. This 2 patches introduces xstats_get() and xstats_reset() in dev_ops. When registered by a device, it can be used to provide arbitrary statistics that are identified by a name, as done by eththool in kernel. After that, some statistics could be moved from the generic structure to this new framework, but it will be part of another patch series as it should be discussed first. Olivier Matz (2): ethdev: add a new rte_eth_xstats_get method to retrieve extended statistics testpmd: add a new command to get the extended statistics of a port app/test-pmd/cmdline.c | 22 +++++-- app/test-pmd/config.c | 34 +++++++++++ app/test-pmd/testpmd.h | 2 + lib/librte_ether/rte_ethdev.c | 137 ++++++++++++++++++++++++++++++++++++++++++ lib/librte_ether/rte_ethdev.h | 60 +++++++++++++++++- 5 files changed, 247 insertions(+), 8 deletions(-) -- 2.0.1