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 11A12A04B1; Wed, 23 Sep 2020 13:15:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3E9421DB76; Wed, 23 Sep 2020 13:15:34 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 02B7A1C2F2 for ; Wed, 23 Sep 2020 13:15:30 +0200 (CEST) IronPort-SDR: RinXO/e6rkwkT4M2ZuvCAJugXV39zyUTUVprTTUSSzhANSgBmiT0VG3cwRHYyR8CxQTw3sNbef UJ8GSIpXe93Q== X-IronPort-AV: E=McAfee;i="6000,8403,9752"; a="178932626" X-IronPort-AV: E=Sophos;i="5.77,293,1596524400"; d="scan'208";a="178932626" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2020 04:15:23 -0700 IronPort-SDR: wmZf/sidSXrabd/1uTcAx4psBQsQn0yB2juPOhDBVyDXL2zsu9QAtn0/D8ymuZGbjyw9s8hTX+ RJCrP3vCM1Xg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,293,1596524400"; d="scan'208";a="347314583" Received: from silpixa00399953.ir.intel.com (HELO silpixa00399953.ger.corp.intel.com) ([10.237.222.53]) by FMSMGA003.fm.intel.com with ESMTP; 23 Sep 2020 04:15:22 -0700 From: Ciara Power To: dev@dpdk.org Cc: keith.wiles@intel.com, bruce.richardson@intel.com, Ciara Power Date: Wed, 23 Sep 2020 12:12:25 +0100 Message-Id: <20200923111228.6274-1-ciara.power@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200612105344.15383-1-ciara.power@intel.com> References: <20200612105344.15383-1-ciara.power@intel.com> Subject: [dpdk-dev] [PATCH v9 0/3] add basic ethdev stats with data object recursion 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" v9: Rebased onto main to remove conflict. v8: Rebased onto main. v7: - Simplified connecting to socket by removing use of glob. - Fixed buffer overflow issue when reading from socket. - Split expected response strings over multiple lines. v6: - Fixed FreeBSD build failure for unit tests. - Added comments and expanded commit log. - Add loop to call test cases stored in a list. v5: Added unit tests for telemetry data to JSON conversion. v4: Added missing param description to Doxygen comment. v3: - Modified commit logs. - Changed function names to reference container. - Modified Doxygen comments to reference container. v2: - Added support for arrays to have container values. - Added support for int and string arrays within dict/array. - Added APIs for internal container memory management. This patchset adds support for basic ethdev statistics in Telemetry. To do this, recursive data object support is needed to report the queue statistics in a list. With this patch, an array or dictionary supports uint64_t, int or string array type values, which is used for the ethdev queue stats. Ciara Power (2): telemetry: support array values in data objects ethdev: add common stats for telemetry Louise Kilheeney (1): test/test_telemetry_data: add unit tests for data to JSON app/test/meson.build | 5 +- app/test/test_telemetry_data.c | 369 ++++++++++++++++++ lib/librte_ethdev/rte_ethdev.c | 53 +++ lib/librte_telemetry/rte_telemetry.h | 70 ++++ .../rte_telemetry_version.map | 4 + lib/librte_telemetry/telemetry.c | 56 +++ lib/librte_telemetry/telemetry_data.c | 51 +++ lib/librte_telemetry/telemetry_data.h | 7 + lib/librte_telemetry/telemetry_json.h | 33 ++ 9 files changed, 646 insertions(+), 2 deletions(-) create mode 100644 app/test/test_telemetry_data.c -- 2.17.1