From patchwork Fri Apr 19 17:28:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 879 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 038FC43EB2; Fri, 19 Apr 2024 19:29:38 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 797FF40696; Fri, 19 Apr 2024 19:29:38 +0200 (CEST) Received: from mail-ot1-f42.google.com (mail-ot1-f42.google.com [209.85.210.42]) by mails.dpdk.org (Postfix) with ESMTP id A37BF402D9 for ; Fri, 19 Apr 2024 19:29:37 +0200 (CEST) Received: by mail-ot1-f42.google.com with SMTP id 46e09a7af769-6eb7b6f92d4so1332255a34.0 for ; Fri, 19 Apr 2024 10:29:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1713547777; x=1714152577; 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=Wf2f1J9Ik6L1bT0ayMMsvfOtwUxImPji0838qP5Z0xs=; b=V8AsCq2YrSYm3VS6DC9wqkOFoZRRBByHc0085//Xq+NQh2ov+jJ2VHpnP7WCtZCYAb k3ViIEwu052rPFJH3ey2gUT8MzQGtbs2n7Gbp2I24OqaI+17qH2rasTEh6qSDTc9ZXRR AvVrFFOgUBxmT24t/XPGgRPAQxGjxNhyvDgkfVBZ5vUaClR5h468OlRtB9qonZJxov3c BbqEk9dGkUnkHj6KRM90s9Alzb1TvQG9oHLlCBUltZF5D+JDyzkKQXpYv/+6qglGKqSP 4H26UCMx7fonWJKfZgnan/8b/YQo39BIZ4kvY844aq16closEpzxZVzwNwog1QxYpagp GKdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713547777; x=1714152577; 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=Wf2f1J9Ik6L1bT0ayMMsvfOtwUxImPji0838qP5Z0xs=; b=ZP0dqUPGXoWsYRVFd23fdmZUla8cmkVrfzURpOhfZ7hTzkeWlzAsOUH6MtaGOs3Pn1 fe5Mcbtrur1vov90MK3lOsI0J/i+sVc+mbg8xCnSYCrv9lgCCXCDdSmS3JYbLF5yrsFQ vI0rR9ovMn4nyRqZ6RPGCH19ZDigujMMuprBANiecRQKtq3zpvm6KDbODUjBi+m4CcC1 sTgAGpaY37yNpYbFGSh7RvvWw3Qs56NaqkFt76X/8DQ/tE2q8hfFX6DQoUBIkigzeuJT SfYBMSANfl9i/+18YIFhSopF3YJXcygMFE/B2UvyEzeKw7GV+IMBJ0xXeBAxd08NlRrF 9CIQ== X-Gm-Message-State: AOJu0Yw43ANh+qgUdhELxh7PLpkotewD6hFvMXX5tDQR7iFAiK51f6+T fHXWvLvNvB++gpfaTJ/Cu6E+Oj2kDFX2s8YUv3ZHV12tOtn9P7AzRV5ekAu80R9porl4MRLt3uD O X-Google-Smtp-Source: AGHT+IFJ8/Aw/ksWVnIeX+5r8x0EwEHlROn7i54PfQAEnk/yQytURZ/JMOYJZFX44loUzW/vOArpqA== X-Received: by 2002:a9d:7988:0:b0:6ea:2adf:7cb8 with SMTP id h8-20020a9d7988000000b006ea2adf7cb8mr3330634otm.29.1713547776758; Fri, 19 Apr 2024 10:29:36 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id h16-20020a632110000000b005f3c5cf33b5sm3383074pgh.37.2024.04.19.10.29.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 10:29:36 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v4 0/6] latencystats: cleanup Date: Fri, 19 Apr 2024 10:28:20 -0700 Message-ID: <20240419172926.55447-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 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. v4 - review feedback and fix pedantic warnings Stephen Hemminger (6): 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: fix for pedantic warnings lib/latencystats/rte_latencystats.c | 182 +++++++++++++++------------- 1 file changed, 96 insertions(+), 86 deletions(-)