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 700DB44107; Thu, 30 May 2024 00:57:37 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0C101402C8; Thu, 30 May 2024 00:57:37 +0200 (CEST) Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by mails.dpdk.org (Postfix) with ESMTP id 4789A40289 for ; Thu, 30 May 2024 00:57:35 +0200 (CEST) Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-2bf629ff55bso202507a91.1 for ; Wed, 29 May 2024 15:57:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1717023454; x=1717628254; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YTwGXngMgHqMQPRQhkRYeCJh+qkb0Q3XUsJVqnRwSmc=; b=C6PJE2wsfsERsX6u0EiIaKD50ZkrHGYn+DtqLi+Gd94ztXzZWEgHqoAYcEcbn2S+H6 5HAO9snP3TCVBikt3Qsf1PuiBwtM1VlTXsPzE46RFmqTf/QjLHborzjbrZiMrXo4v/w2 XlwsXJGN6aAxNIwEf6zNnLuTRqT2GdMpCMOUAt7y117a4+kU43KCv2DyGbv47IZvxXDh XpaRI9cp3td/AJB/LKu4Sg0TiB76NuP/SDDvz88akKpdADUqCbptS1keW7wSf1oXG0NR LUYsiZARtU7ftq9U4gqhYDoBBVfbFJlQym3uv0REtgAHEqZW6K+MHWdoXXhnXc5tCmnq +9Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717023454; x=1717628254; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YTwGXngMgHqMQPRQhkRYeCJh+qkb0Q3XUsJVqnRwSmc=; b=vYjziyw4UwkC8FeLtxE4LD9CzXJ8hp48Upb7mPEWllD2QmX7G0kt7qQ2DxmYJsxVkJ C6jXZhQHhYAxlZRiGO6FOkKpz/0DnnwNIYuc5rzfcdSfeE+AnezMs5xTDfadW76JaiCy HBm8GdjhGZ7vPcMxkFLWK9iKTsBcVLdf0RreFfupJKRJroEpRoqfUcaSgGbWXzUvREoZ iuISAUIPeGm39OB56DMsGm7+J19eCNb00gaZaRReJj0vsAZvnds/LYB45Xko/0jIRufP LLNYwiGRXSHGaSXBfY7D4umghld7m7eMX6Lbi6/jydfv0o8h6RbUFRZASWpAa40rqjYo 7pXA== X-Gm-Message-State: AOJu0Yx8H5IvPWTXe3x/JVQt2LYIvyrfEQydepl1ejntQcr6QQ1c8abJ XjvIpZwNMHy1N+eUwTgJxUuJBy7hjofvDUq6cQIJ7qxDoldI/dtMZc3NqxdeqUPCc5Xb4HEZ7/6 8 X-Google-Smtp-Source: AGHT+IF9oEZuf8P8ygCc9pwekl0UTJ+WVhvHQFmFvyqiuRt9pH4/PW6lgRIJ3fIc9ejgma2T5GmLPQ== X-Received: by 2002:a17:90a:7781:b0:2b1:817d:982b with SMTP id 98e67ed59e1d1-2c1abc1dab2mr533913a91.14.1717023454220; Wed, 29 May 2024 15:57:34 -0700 (PDT) Received: from hermes.lan (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c1a77baebcsm351762a91.53.2024.05.29.15.57.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 15:57:33 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v6 0/8] latencystats: improvements to algorithm and test Date: Wed, 29 May 2024 15:54:37 -0700 Message-ID: <20240529225732.442539-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240408195036.182545-1-stephen@networkplumber.org> References: <20240408195036.182545-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 Latencystats uses unnecessary floating point and is inaccurate if the number of cycles per ns is not an integral value. Cleanup the code and add more tests as well. v6 - rebase and combine updates to test Stephen Hemminger (8): latencystats: replace use of VLA latencystats: handle fractional cycles per ns latencystats: do not use floating point latencystats: fix log messages latencystats: update include files latencystats: enforce that unused callback function is NULL latencystats: add metric for number of samples test: update to latencystats tests app/test/test_latencystats.c | 84 ++++++---- lib/latencystats/rte_latencystats.c | 232 ++++++++++++++++------------ 2 files changed, 188 insertions(+), 128 deletions(-) -- 2.43.0