From patchwork Tue Oct 8 21:12:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 175580 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp6231531ill; Tue, 8 Oct 2019 14:13:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUdtt6hhaaA3lrwagFEnId+L+KwPVElODFlWazGmOlLVxr/wdnzWe7HG/XrVvmX5IJotOn X-Received: by 2002:a17:906:60a:: with SMTP id s10mr5743899ejb.300.1570569200349; Tue, 08 Oct 2019 14:13:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570569200; cv=none; d=google.com; s=arc-20160816; b=ACyP/4qPesSkwpKlSdv4aH9ZbA3rkPAPNmElqpOiMhoE25NwxsvOIILVwFjj455X1o S8x9fYeHpn40AjDQI/NM/vIbifcKh5nhMvPzbQpoF315Skge3xwyc9vIrWI4hVme+wlb 3d9F8sZ+hW6WcvwLpukQoWC+Ik9Be+h39Jj7yuKZaIfBIF+LDU/c1WhVZeJEuExp/KQ7 OF6f7H2Se4COUGDzz6E5cV0Q7wOZNTc/Pw6ow8UCBbeFmkHBxHDbt3TIBAh73L89/B0T QkhvDfbfwD3dFT50jNeKwTYqyk6Nz6vJZdgmSORqlJGPhkgRdwQeAypseHiMjMmQXYeS PiOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:cc:to:from; bh=AeezKaGDRR1hRVjYeLAZIsaGS1cCTRn76j420sJPKUI=; b=d0QASSlbkjIZTHTU+hBLjfHgr3eujnhTxTbv/vFM8xuME/fkozxQlKiMPxtRg/+Klk avln61GLAeRpv43XYckd1vJAFIqtoreNJnbZeW1CuQrXuLOLHCHsWgTcG/STH5kZLFHm THgIliP3YlviRgDxa5AbKBZtIGZnwC8RJFrG/ohuDR+He5aBOiEeK/Kl+6HijPf8J7N9 +h5bvByjRoWbs8+xINwQXgpUotqvUOc7KkbZA5xKRZklrq98G4IlVliLwNh54RXGqjfe 3NBzIWYNbFAqUkJmarYR/dg3Rv+NZUmC+FlNZlhOYnonyVER3F4cjoK01HfYEAKNXB+R Ok6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id qn24si43597ejb.200.2019.10.08.14.13.20; Tue, 08 Oct 2019 14:13:20 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DD2E81D419; Tue, 8 Oct 2019 23:12:51 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 696301C134; Tue, 8 Oct 2019 23:12:43 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E9BA928; Tue, 8 Oct 2019 14:12:42 -0700 (PDT) Received: from qc2400f-1.austin.arm.com (qc2400f-1.austin.arm.com [10.118.12.34]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E22BD3F68E; Tue, 8 Oct 2019 14:12:42 -0700 (PDT) From: Honnappa Nagarahalli To: honnappa.nagarahalli@arm.com, david.marchand@redhat.com, konstantin.ananyev@intel.com Cc: dev@dpdk.org, ruifeng.wang@arm.com, stable@dpdk.org, nd@arm.com Date: Tue, 8 Oct 2019 16:12:18 -0500 Message-Id: <20191008211220.31586-6-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191008211220.31586-1-honnappa.nagarahalli@arm.com> References: <20191008211220.31586-1-honnappa.nagarahalli@arm.com> Subject: [dpdk-dev] [PATCH v2 5/7] test/rcu: use correct nomenclature while printing results 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Use 'quiescent state updates' instead of just 'updates'. Signed-off-by: Honnappa Nagarahalli Reviewed-by: Gavin Hu --- app/test/test_rcu_qsbr_perf.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) -- 2.17.1 diff --git a/app/test/test_rcu_qsbr_perf.c b/app/test/test_rcu_qsbr_perf.c index 280f1811f..d35a6d089 100644 --- a/app/test/test_rcu_qsbr_perf.c +++ b/app/test/test_rcu_qsbr_perf.c @@ -167,8 +167,10 @@ test_rcu_qsbr_perf(void) /* Wait until all readers have exited */ rte_eal_mp_wait_lcore(); - printf("Total RCU updates = %"PRIi64"\n", rte_atomic64_read(&updates)); - printf("Cycles per %d updates: %"PRIi64"\n", RCU_SCALE_DOWN, + printf("Total quiescent state updates = %"PRIi64"\n", + rte_atomic64_read(&updates)); + printf("Cycles per %d quiescent state updates: %"PRIi64"\n", + RCU_SCALE_DOWN, rte_atomic64_read(&update_cycles) / (rte_atomic64_read(&updates) / RCU_SCALE_DOWN)); printf("Total RCU checks = %"PRIi64"\n", rte_atomic64_read(&checks)); @@ -217,8 +219,10 @@ test_rcu_qsbr_rperf(void) /* Wait until all readers have exited */ rte_eal_mp_wait_lcore(); - printf("Total RCU updates = %"PRIi64"\n", rte_atomic64_read(&updates)); - printf("Cycles per %d updates: %"PRIi64"\n", RCU_SCALE_DOWN, + printf("Total quiescent state updates = %"PRIi64"\n", + rte_atomic64_read(&updates)); + printf("Cycles per %d quiescent state updates: %"PRIi64"\n", + RCU_SCALE_DOWN, rte_atomic64_read(&update_cycles) / (rte_atomic64_read(&updates) / RCU_SCALE_DOWN)); @@ -462,7 +466,7 @@ test_rcu_qsbr_sw_sv_1qs(void) rte_free(keys); printf("Following numbers include calls to rte_hash functions\n"); - printf("Cycles per 1 update(online/update/offline): %"PRIi64"\n", + printf("Cycles per 1 quiescent state update(online/update/offline): %"PRIi64"\n", rte_atomic64_read(&update_cycles) / rte_atomic64_read(&updates)); @@ -578,7 +582,7 @@ test_rcu_qsbr_sw_sv_1qs_non_blocking(void) rte_free(keys); printf("Following numbers include calls to rte_hash functions\n"); - printf("Cycles per 1 update(online/update/offline): %"PRIi64"\n", + printf("Cycles per 1 quiescent state update(online/update/offline): %"PRIi64"\n", rte_atomic64_read(&update_cycles) / rte_atomic64_read(&updates));