From patchwork Wed Apr 17 17:07:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 871 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2A92643E94; Wed, 17 Apr 2024 19:09:14 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DCFBD427D7; Wed, 17 Apr 2024 19:09:13 +0200 (CEST) Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by mails.dpdk.org (Postfix) with ESMTP id AF48540DDA for ; Wed, 17 Apr 2024 19:09:11 +0200 (CEST) Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1e852b2c780so4015175ad.1 for ; Wed, 17 Apr 2024 10:09:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1713373751; x=1713978551; 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=uuRMvGisyuis4WqBcCLrFlWlAa39ZgtpVKBlMFNdtU4=; b=UMTp0zvS9eNykI1actlUOmq45D+GG9GuNBp1fi+/Q0/j9xIPSMxNxa11Ayrhn7V5pO 4Qa5BgkiwKaRsWHEj1/J5GN40smKCos25pkUhgbwUjV7cW2/1tscO/Ju627sSPDNNuGu zWpfLXyGbVV/zz+Gx7MpFQzlsA/77iZtnygXzoypCrwHevKl4xmCH+JVLu04a+H7EW+Y B/ZVGtZjDyYyPzVKoEArRjzoQXVuWbd6R3B+SqSInG9njfywe1luNjEGkTNF8+swwuAd agrEvEPqyJ/tm7FtnI/nm5bZy8Fe8HL2MCWV/vIr7wwGExAelFl8D62g1yqP5qIBEy7T 7ovA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713373751; x=1713978551; 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=uuRMvGisyuis4WqBcCLrFlWlAa39ZgtpVKBlMFNdtU4=; b=lVLCgbIccTHACsayZLeDS76Lni0oJVoscHZmoCO4JHKDtz8CRrrXkYLrfsEYb+1qNi utznIfW3KU/UKVEDgt8veIQzvIJmIEXY/kZO4V1yAITnzT57aCnlyg8bTTpPjSbroOyk 7WxUJwJ9Scc8x/v4rInetfhO6x+D+1c5dv45bMAMzFjyhGQLKZ3YCjs1vmjEnyw5TZIf ScMfqwgK13F/Q9F/Soo7zQActGgFdO81PJETT/i1/07M5l3eG+S05IwVzqKwrFny4QoM IkZLsbs2sdOxd9c+3DRscfXYjY1WjVEZGC+pqJONVR//9y2FZFXH2EVZzCQlGxSXXGhz toAw== X-Gm-Message-State: AOJu0Yx6z09e1KAzH5mvpnVZUCmP/+d+L6ZmOltL9ZdMhgY2iXxm1cHb TegC0AlBDavnlu0WBpEeoqiHnN+RfeRVy7FEK/m1U5ern6xSDuAVtjtXrPol3AYif8WnmbJbZjl U X-Google-Smtp-Source: AGHT+IHQksf/9EzgmiuaYPExYZJylLByEZAGwX1v3k4ZYTFZIohC167ZhKGP/tFvE+ORVyWzVx3zoA== X-Received: by 2002:a17:902:b18a:b0:1e5:375c:429a with SMTP id s10-20020a170902b18a00b001e5375c429amr88756plr.17.1713373750647; Wed, 17 Apr 2024 10:09:10 -0700 (PDT) Received: from hermes.lan (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id l5-20020a170903120500b001e4458831afsm11832442plh.227.2024.04.17.10.09.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 10:09:10 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v3 0/5] latencystats: cleanups Date: Wed, 17 Apr 2024 10:07:22 -0700 Message-ID: <20240417170908.76701-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <0240408195036.182545-1-stephen@networkplumber.org> References: <0240408195036.182545-1-stephen@networkplumber.org> MIME-Version: 1.0 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 variable length array and floating point when they are not necessary to acheive the same result. While testing also noticed that the code was computing wrong values on my test system, and that include files were missing. Stephen Hemminger (5): latencystats: replace use of VLA latencystats: handle fractional cycles per ns latencystats: do not use floating point latencystats: fix log messages latencystats: include file cleanup lib/latencystats/rte_latencystats.c | 175 +++++++++++++++------------- 1 file changed, 92 insertions(+), 83 deletions(-)