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 D69D145C98; Wed, 6 Nov 2024 17:31:24 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B549C42E79; Wed, 6 Nov 2024 17:31:20 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by mails.dpdk.org (Postfix) with ESMTP id 264C2402B2 for ; Wed, 6 Nov 2024 17:31:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1730910679; x=1762446679; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=NJ2IJ5EfG/KuC9tYdFRN1Ggf9asGWcAJMQVAbJKyudk=; b=fH/gz9hOqMF4oLEftDfCK92n/Y3Oa7EH4XgDJibquItaW5LRZpSah8CT HsBIISyrssYu6RBZXaHz7m7XNEP5ibFsiygQVs9s6wafiOptYl70jQl1D 9ApekswuLMql8DXp+oi/jP6PdHif36OLjf5C8xeQvNEXjvQamM2ISOOvp OvWUUD2Blm/icrJOPbdnauy8IV1koO36wzXXwvsPRqb9/GaMhS9LQLfEk OMY1VLfPDZtEwz4IvbjeKf8Yy17nxZgg/Y2QRefMQ+YkbsAfJkzYi5whr Cw4VvTn2EWepipvqZ0O9GSRBN5tJgWXFSwzSprJEOz7Ln0mYcnaI3qoPM g==; X-CSE-ConnectionGUID: Ea0r+JmuQCmUeaewWGNV3w== X-CSE-MsgGUID: iJg5D31zT5+/sdAf/4VX8w== X-IronPort-AV: E=McAfee;i="6700,10204,11248"; a="33560665" X-IronPort-AV: E=Sophos;i="6.11,263,1725346800"; d="scan'208";a="33560665" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2024 08:31:19 -0800 X-CSE-ConnectionGUID: L4s1RPcPS8KqljYJq1AEmw== X-CSE-MsgGUID: kUj+TZMcRo2LybeKCl3TYw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,263,1725346800"; d="scan'208";a="84589266" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by orviesa010.jf.intel.com with ESMTP; 06 Nov 2024 08:31:18 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Jerin Jacob Subject: [PATCH v2 2/2] eventdev: add standard aliases for telemetry commands Date: Wed, 6 Nov 2024 16:31:06 +0000 Message-ID: <20241106163106.1114932-3-bruce.richardson@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241106163106.1114932-1-bruce.richardson@intel.com> References: <20241106160750.1093172-1-bruce.richardson@intel.com> <20241106163106.1114932-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Most other device classes in DPDK which offer telemetry provide a list of the devices of that class via "//list", e.g. /ethdev/list, /ring/list, /mempool/list. However, eventdev provided that list via "dev_list" command. For consistency, add "list" as an alias for "dev_list" - after all the "dev" is part of the initial "/eventdev" prefix part, so should not need repeating. Similarly for the "dev_info" command, provide an alias as just "info". Signed-off-by: Bruce Richardson --- lib/eventdev/rte_eventdev.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c index 23631ff3f6..d3f1ea092f 100644 --- a/lib/eventdev/rte_eventdev.c +++ b/lib/eventdev/rte_eventdev.c @@ -2067,6 +2067,15 @@ RTE_INIT(eventdev_init_telemetry) "Returns list of available eventdevs. Takes no parameters"); rte_telemetry_register_cmd("/eventdev/dev_info", handle_dev_info, "Returns basic info about an eventdev. Parameter: DevID"); + + /* alias "dev_list" and "dev_info" as just "list" and "info" to match + * other categories, such as ethdev, ring, mempool etc. + */ + rte_telemetry_register_cmd("/eventdev/list", handle_dev_list, + "Returns list of available eventdevs. Takes no parameters"); + rte_telemetry_register_cmd("/eventdev/info", handle_dev_info, + "Returns basic info about an eventdev. Parameter: DevID"); + rte_telemetry_register_cmd("/eventdev/port_list", handle_port_list, "Returns list of available ports. Parameter: DevID"); rte_telemetry_register_cmd("/eventdev/queue_list", handle_queue_list, -- 2.43.0