From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id 6E2948EA1 for ; Fri, 22 Jan 2016 15:49:09 +0100 (CET) Received: by mail-wm0-f50.google.com with SMTP id n5so135845666wmn.0 for ; Fri, 22 Jan 2016 06:49:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=hPeTgend32KaXboRx+LBMh9qURs1ipnmI7qyAvrUmhU=; b=CMn8cGH12T8WxbjSUKnngKeU4mzh/rTVDwH4q81B19a5Va/EQrQFHEhRzfhLwya8bo h8MOEycbGcpbE5DZuBmb2+C6vAro4RA+Q47BoMvMsmTHK9xhLNwg/M8kKMfixw4to8bo 9CFkdxneH3B0EULl4irf/hT0vNEfzmjo+OAfNaDZU6sH3c7H3J0kAa68lxcMZIruhvq0 4RrLqKn084PlNQOiks+mPEhNHtIOfjtr5IHKnZW/GiaVsdKv0DCx2vc9KBVKLq/3XpI9 Ra/Th8rIYls04SSaGkAKNwQ96YTDqYh8qLpUYNlE1ILCCXUqughH5goOWaNvtokX3mu1 ibiw== 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:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=hPeTgend32KaXboRx+LBMh9qURs1ipnmI7qyAvrUmhU=; b=i0gyGFyJgL30mrYyhWkpZlG/klQT0XwXfRqhiroG8nds03cvnCmxc9dmpBA3C/LJpc 10pkgTkPGOznMXbsij+AvOSFqmkFEmYtWdlUP03Hl+lvGuethQMQB03vTwfwdbybmQmv OZxumIFeWTZdB692gr8jg+e9kZHiNwFgfGOaxZzcl+k+1zL9Kqfk0RFRxnb0Jdr72MCM ev8U/ZZ7lfLusiwF7boCZnqOhcja1r6wGUpdPYYJZGQtLqIeWRx4RPwdR82D1kd1v7V4 ihHWmtZdYAYnzgouZYoAk6ETkBz9tofOsZhbI/xqy9ml+PCwLbCXeE3DH9MATvifmclE /8mg== X-Gm-Message-State: AG10YOStid5pkuPvSGizGA+3PEgxHm7B8yi0ZQw9ffLkPLXchd2DVo98lpJQTkz5oi4J12HI X-Received: by 10.28.54.65 with SMTP id d62mr3834818wma.35.1453474149281; Fri, 22 Jan 2016 06:49:09 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id q75sm3267943wmd.6.2016.01.22.06.49.08 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 22 Jan 2016 06:49:08 -0800 (PST) From: Thomas Monjalon To: "David Harton (dharton)" Date: Fri, 22 Jan 2016 15:48:08 +0100 Message-ID: <1670837.tJHuUIkoht@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: References: <1A27633A6DA49C4A92FCD5D4312DBF536B09F7A4@IRSMSX106.ger.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] Future Direction for rte_eth_stats_get() 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: Fri, 22 Jan 2016 14:49:09 -0000 + Harry 2016-01-22 14:40, David Harton: > Hi Maryam, > > I'm not dictating they be re-added (although adding would be nice) but more important I'm trying to express an application view point rather than a driver view point. > > I completely understand how a driver wants to be able to advertise all the stats they want to advertise to help them debug their issues (i.e. xstats). Yet, I'm very interested in DPDK providing a driver agnostic method of advertising well-defined stats. xstats are driver agnostic and have a well-defined naming scheme. > For example, what if there was a kind of "stats registry" composed of ID and name. It would work similar to xtats except instead of advertising strings only the "get" API would return ID/count pairs. If the application wishes to use the DPDK provided string they can call another API to get the stat string via the ID. These IDs would be well-defined clearly explaining what the count represent. This way the strings for counts will be uniform across drivers and also make it clear to the users what the counts truly represent and the application could obtain stats from any driver in a driver agnostic manner. I don't understand how adding another indirection (an ID matching a string) would help? I have the feeling you want a list of possible statistics, right? PS: please avoid top posting