From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D90F4429BA; Sun, 23 Apr 2023 07:14:09 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AF85F4021D; Sun, 23 Apr 2023 07:14:09 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id D5F3140156 for ; Sun, 23 Apr 2023 07:14:07 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33N4nO45016403 for ; Sat, 22 Apr 2023 22:14:07 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0220; bh=VZDYPfYS6O1yf4DnXs7UQ0JqZGonJMv2cY8RNXBmSd0=; b=cbX5u7eN9/o9oLxv51VVdISnuvNhEDRPjXABOMklof/GsPcYtYFfErlSetpv2TTP8HYI eB+BQZVqtYLJRxXu+xjAq4yxMzxhqxShlxcEBsdnheAYdHcI+uI5OeJGaaABW+BIQs2O HUu3sJS6LzkaXHVbXJNoAY82K8bWAA/VQoGLvONQ/llte4fXSQfGKBKv+akxRzF1jxWy DO6Jzlr0vgYryqObf4cz8KO0e/GK8oHYBRfkx7TWzXPYH30U+1waa6e6eYvxvgebOtUD wLm9W8YIq1wZtp66OkYjhsFcxTRdrQ9Forzue1fiLCZjVRkYkMEH3z2V84YOQlFV304M mQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3q4egjjvcv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Sat, 22 Apr 2023 22:14:06 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Sat, 22 Apr 2023 22:14:05 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Sat, 22 Apr 2023 22:14:05 -0700 Received: from ml-host-33.caveonetworks.com (unknown [10.110.143.233]) by maili.marvell.com (Postfix) with ESMTP id 170C33F706A; Sat, 22 Apr 2023 22:14:05 -0700 (PDT) From: Srikanth Yalavarthi To: CC: , , , , Subject: [PATCH v1 0/5] Implementation of revised ML xstats spec Date: Sat, 22 Apr 2023 22:13:58 -0700 Message-ID: <20230423051403.31971-1-syalavarthi@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-ORIG-GUID: axQ9mEuIFa6RnDZ-qRR1wBCPIzpJPPCE X-Proofpoint-GUID: axQ9mEuIFa6RnDZ-qRR1wBCPIzpJPPCE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-23_02,2023-04-21_01,2023-02-09_01 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 This series of patches introduces revised xstats specification for ML device. The revised xstats spec is based on eventdev xstats and supports DEVICE and MODEL modes to get xstats. This enables retrieving xstats for device and each model separately. Srikanth Yalavarthi (5): mldev: remove xstats APIs from library mldev: introduce revised xstats mldev: implement xstats library functions app/mldev: enable reporting xstats ml/cnxk: implement xstats driver functions app/test-mldev/meson.build | 1 + app/test-mldev/ml_common.h | 11 + app/test-mldev/ml_options.c | 5 +- app/test-mldev/test_common.h | 3 + app/test-mldev/test_inference_common.c | 113 ----- app/test-mldev/test_inference_common.h | 1 - app/test-mldev/test_inference_interleave.c | 6 +- app/test-mldev/test_inference_ordered.c | 5 +- app/test-mldev/test_model_ops.c | 3 + app/test-mldev/test_stats.c | 129 +++++ app/test-mldev/test_stats.h | 13 + doc/guides/mldevs/cnxk.rst | 30 +- drivers/ml/cnxk/cn10k_ml_dev.h | 96 +++- drivers/ml/cnxk/cn10k_ml_model.h | 21 - drivers/ml/cnxk/cn10k_ml_ops.c | 520 +++++++++++++++------ lib/mldev/rte_mldev.c | 15 +- lib/mldev/rte_mldev.h | 97 ++-- lib/mldev/rte_mldev_core.h | 28 +- 18 files changed, 757 insertions(+), 340 deletions(-) create mode 100644 app/test-mldev/test_stats.c create mode 100644 app/test-mldev/test_stats.h -- 2.17.1