From patchwork Sun Sep 8 22:49:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 173352 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp3622342ilq; Sun, 8 Sep 2019 15:51:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIwpxcQsjLFDaiHjRqFzjFNfVYASaSfDdW3lbL+bBMdhxgtb5rA/2QiOSyiX6O8Uq0hs0s X-Received: by 2002:adf:d84f:: with SMTP id k15mr14608533wrl.70.1567983073707; Sun, 08 Sep 2019 15:51:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567983073; cv=none; d=google.com; s=arc-20160816; b=wKZl/rCMbAQryo9SgZZcyUza3hJ6X1ye3zH+BvrgBaPBmx787OW8a/DFItvPynMC0r 38XjxXsXNVIvZFShM8l3eXWTK9eJKgdfijKJHxfk8Y9QKXc5RXV62R2uvjU3fvT2u2RL wfpDeOc2mpYJMzL1uV2u5MpP3umX7FmVud7zE2NDMT7oo5QoVoQnNIZeSwv/aK93Cnb6 Pn+mOisQf8e6d2yNQ43s6nSKxZdFL8KekgjW8R92DHinpa92MPCgVWKpnpHO1IyH4O2N FKpnwu+l0buH3qcTCpFXsmWpXSc9x0d/Z+JDFWuQqteaYsaexpfju8FiR4wzI4AG2/fm frxw== 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=YGibRMzwnMfWsd6OfqErLKh/8iuzGsLgdT7Y7zo9pHA=; b=IQMTytVf447ESWuF+cNaFM+OMg/hXkSyn4uhnWbCYW0XYNtLX+qfzkgDN+qTft36vu 1OUK8fiqYW2ZajjEDmgkci+t+v+cbS2Zhk82sJEWLKs1erBfXaJxzwGYUVIydFJXM1nO nwols8jaJYD37GeNkauITS5i/4pfysLjjDgRmZqXgJpJumMKhCjsnREN/vEXJhTAG00E Ck9uyyWRg9dQtKqC7/nCdte67YagSNpcYReeABUo8fEGb43AagiL6BjXS0JpVABb9vLm LpacJxY+b2YjhOf1St5lPfSidGO8wAKNOYXddWDZdo9cANKMJYbZYiKZYIl5+LbzCFhY RqHQ== 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 c10si5047896wmc.168.2019.09.08.15.51.13; Sun, 08 Sep 2019 15:51:13 -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 177D41BF13; Mon, 9 Sep 2019 00:50:53 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id ED7331E9AE for ; Mon, 9 Sep 2019 00:50:48 +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 821081596; Sun, 8 Sep 2019 15:50:48 -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 7BD5A3F67D; Sun, 8 Sep 2019 15:50:48 -0700 (PDT) From: Honnappa Nagarahalli To: honnappa.nagarahalli@arm.com, konstantin.ananyev@intel.com Cc: dev@dpdk.org Date: Sun, 8 Sep 2019 17:49:47 -0500 Message-Id: <20190908224949.34851-6-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190908224949.34851-1-honnappa.nagarahalli@arm.com> References: <20190908224949.34851-1-honnappa.nagarahalli@arm.com> Subject: [dpdk-dev] [PATCH 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 e0598614c..3a1df5d17 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)); @@ -577,7 +581,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));