From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id BBE3DF8AA for ; Thu, 12 Jan 2017 14:41:14 +0100 (CET) Received: by mail-wm0-f44.google.com with SMTP id r126so18861020wmr.0 for ; Thu, 12 Jan 2017 05:41:14 -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:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=rTz2PiaRCFhg62xWChvmB/vf7caNSGpmUZSKdbbzNKI=; b=XTNwxv24eiKXoRraiOAKgl4ckpQeE8T3fTdX69US/iV2ZtyuBLEjSO3IPWN2tJE5Xm 0kujDCj6uejJzjgQknSXq/dPWrOqU7qjkpkFGw1nGgHnrDMJEjTS+sLufcgXoLnEUr+P PCdlzShc18hej4vNn4kQ/T2wiKd+aQvwcybbLVBNv7Cww2ap0Px+TakjjNd+lO9LmKSN XRoklqzaa7CT1DmPqyrc4dp4BBeXWrsbOI7jDM1XN+j68X7lir6M1AlYAhAj42mRQSrc 7N55nIk3UTF6pGv5zs32wbhurktnntg6RGhQPyPq86rOgdIrz1b7m8NyZuTFQjKkWvBK +Rkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=rTz2PiaRCFhg62xWChvmB/vf7caNSGpmUZSKdbbzNKI=; b=JPXCAdgmdetibfnToW3QSUV4yiSwisG1x4x8vLYSpbPslCoYR1wshTkhOGHIeTmLeJ vWDT7lCPYBa9OsTpDITSTZ5F3fagywPSwbJagSZB7woCVR6lwblGkCKgHwEvoIHEfvL8 1jNemb0KuPBVrEUqJtc+mldFKuRrYLRJPyKMJ1K/KFOlcfGk0xo0AZ9uP9tVZ9S+gdVA XQEJsLwwDg5ZBzxu4k+7VLl8djlWPkc8IJbVrqkWwP+t3ZmnK6cYmIunFDGRZ11K2Yfr lFm/28WDgZ0YWAktBDlrIeeeXQHxeUn7rVjdBsrqPuopdAfuTN6GuLLHYyXm0R4Bc7L+ U+6Q== X-Gm-Message-State: AIkVDXLQR5Fe1Ttf6koi+HJXaWPdG7eThYQ+Z2tSsN4D+2IEphVk5z8rS9l8/5AKTOUj4R6D X-Received: by 10.194.26.228 with SMTP id o4mr5156664wjg.182.1484228474315; Thu, 12 Jan 2017 05:41:14 -0800 (PST) Received: from xps13.localnet (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id d10sm13673218wja.20.2017.01.12.05.41.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jan 2017 05:41:13 -0800 (PST) From: Thomas Monjalon To: Remy Horton , Reshma Pattan Cc: dev@dpdk.org, olivier.matz@6wind.com Date: Thu, 12 Jan 2017 14:41:24 +0100 Message-ID: <8494765.8zaa745I9T@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1484150594-3758-5-git-send-email-remy.horton@intel.com> References: <1484150594-3758-1-git-send-email-remy.horton@intel.com> <1484150594-3758-5-git-send-email-remy.horton@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v6 4/4] latencystats: added new library for latency stats 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: , X-List-Received-Date: Thu, 12 Jan 2017 13:41:14 -0000 2017-01-12 00:03, Remy Horton: > Add a library designed to calculate latency statistics and report them > to the application when queried. The library measures minimum, average and > maximum latencies, and jitter in nano seconds. The current implementation > supports global latency stats, i.e. per application stats. Is it specific to ethdev ports? > Added new field to mbuf struct to mark the packet arrival time on Rx. There was another patch adding a timestamp in mbuf: http://dpdk.org/ml/archives/dev/2016-October/048809.html > Modify testpmd code to initialize/uninitialize latency statistics > calulation. > > Modify the dpdk-procinfo process to display the newly added metrics. > Added new command line option "--metrics" to display metrics. It should be a separate patch. > APIs: > > * Added APIs to initialize and un initialize latency stats > calculation. > * Added API to retrieve latency stats names and values. Why bitrate and latencies are separate libs?