From patchwork Sun Aug 1 17:37:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gowrishankar Muthukrishnan X-Patchwork-Id: 96502 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B8809A0C4F; Sun, 1 Aug 2021 19:37:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3B09D40143; Sun, 1 Aug 2021 19:37:51 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id BDDD240140 for ; Sun, 1 Aug 2021 19:37:49 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 171HV00M009491; Sun, 1 Aug 2021 10:37:48 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=PvFPPjfgv3lyM/QEJz0/TyvnlhONtS3fP08hRPKQfeo=; b=fxUlEWmLJkA7iHqDix/bf9HEpheLX+nKfPVLscoYoK5HXYlokYrQtKT0ISt9ORx4rbdY vRvnt7BaZR6LnYRvy2WQfq07V7BhfCzmfM3+CFboqm8CpmZyojro5v1IAcUGPs0uvDGB lv2+AQy5MHk0d2Vdi5JQO12tHUnbRkqNq4m0aOA4mbeRBaoHZh0ASX0jJnpBhxl4DTy9 qYrP1Y/xWoSXUqjqyKoXv3ETukt95K3n3RvGTwNOxpkncxaBTKizUFdzDHBDeeaP+dz+ Um7EMChUOVxRKzoTboAPROw6NJcx5QviI87qq4AKyAAyRBBitUPNCuPKIp2owDYNifkT zQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com with ESMTP id 3a53vrba3f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 01 Aug 2021 10:37:48 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sun, 1 Aug 2021 10:37:46 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Sun, 1 Aug 2021 10:37:46 -0700 Received: from localhost.localdomain (unknown [10.28.34.38]) by maili.marvell.com (Postfix) with ESMTP id 619543F7071; Sun, 1 Aug 2021 10:37:44 -0700 (PDT) From: Gowrishankar Muthukrishnan To: CC: , , , , , , , Gowrishankar Muthukrishnan Date: Sun, 1 Aug 2021 23:07:38 +0530 Message-ID: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: q1lKGcEr5GPCQO3KhWY7kfOAMFA5yp2V X-Proofpoint-GUID: q1lKGcEr5GPCQO3KhWY7kfOAMFA5yp2V X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-08-01_02:2021-07-30, 2021-08-01 signatures=0 Subject: [dpdk-dev] [v2, 0/3] common/cnxk: enable npa telemetry X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" This patch series enables telemetry in NPA LF of cnxk. v2: * using uintptr_t to encode pointer value in json. *** BLURB HERE *** Gowrishankar Muthukrishnan (3): telemetry: enable storing pointer value test/telemetry: add unit tests for pointer value common/cnxk: add telemetry endpoints to npa app/test/test_telemetry_data.c | 124 +++++++++++++ app/test/test_telemetry_json.c | 28 ++- drivers/common/cnxk/cnxk_telemetry.h | 26 +++ drivers/common/cnxk/cnxk_telemetry_npa.c | 227 +++++++++++++++++++++++ drivers/common/cnxk/meson.build | 4 + drivers/common/cnxk/roc_platform.h | 8 + lib/telemetry/rte_telemetry.h | 37 +++- lib/telemetry/telemetry.c | 21 ++- lib/telemetry/telemetry_data.c | 40 +++- lib/telemetry/telemetry_data.h | 2 + lib/telemetry/telemetry_json.h | 31 ++++ lib/telemetry/version.map | 2 + 12 files changed, 536 insertions(+), 14 deletions(-) create mode 100644 drivers/common/cnxk/cnxk_telemetry.h create mode 100644 drivers/common/cnxk/cnxk_telemetry_npa.c