From patchwork Fri Apr 3 18:41:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 185177 Delivered-To: patch@linaro.org Received: by 2002:a92:de47:0:0:0:0:0 with SMTP id e7csp882663ilr; Fri, 3 Apr 2020 11:42:30 -0700 (PDT) X-Google-Smtp-Source: APiQypJXSzGyLUGuiLw9Zv0HVAOxqlJtGjiE4qn1uQqE+I0Yo56T0wDPDWbVnmUgd0Np5NSDe5HE X-Received: by 2002:a5d:400d:: with SMTP id n13mr10473019wrp.396.1585939350814; Fri, 03 Apr 2020 11:42:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585939350; cv=none; d=google.com; s=arc-20160816; b=ykYPZeEWWQNuJ4+SL+CjRq+6vJsIr/G3nfpSZEm8XDmdt9WaGex/3do9fwQJIfdG74 4HCLSdY4I2gIbgHD2rPbSJt1L5bLNtjW1lR6YWYdSlyKV7rsam8Vpoo7ZdJgEfXkfEvv h0ogcawRL5/GAGS0FG4zxm4WPhYNfLEQEL3vq/C3EPCm6VA+NBiP6jMJMAvZDT+Cla5q P/gxrcgDxjzTPUQohqntjVXRlQsx6QDcE0RsY5v+SEaTVyFmRVHgRK/9VpHmmXvm58fS 4XbQVjcCSfNis2vo309afSJMhATCazsLjz8CzS9WnBc+hJINVdFHLUa9yPvxrUoy+BHf HzhA== 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=IQQ9bDsWhiU7su9Cmq1YEO3OcuxDo7YXhJRXqIpkUUk=; b=0uSXlAchRpVslNhrKPeHlNUMiLgfEMCuf4AiiU9QNUWcMCYl8nGGOfxu7uoA+E/fRu jZHCQaIAJECyNC/y6McGc3u5sNmKxWiWF+VzWPG2i4wRdEYAL1tqv637HKRc8yFf3ogV GIH+2yVI3jsTW0J0PKB73WmDJSXsLA0QKy4NChlaUjAVmadMaJBgcyUDROvszVCrUwrk Qcblb2dK06RCXIIbzu5s/LD/Rc9YxeaOOVApTHDankRYQl702RTsiUAYdRkg8A/4Q3UK QY5OYkfZ0Ko/HLMzDmaTg0nEbfqMZJ6xn2kBnvZOrJvcAH4/hxdVegIy8EZoSOwpwFM+ em/g== 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 c2si4037512wru.415.2020.04.03.11.42.30; Fri, 03 Apr 2020 11:42:30 -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 3EE391C1F6; Fri, 3 Apr 2020 20:42:03 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id B8D391C1DF for ; Fri, 3 Apr 2020 20:42:00 +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 434C01045; Fri, 3 Apr 2020 11:42:00 -0700 (PDT) Received: from qc2400f-1.austin.arm.com (qc2400f-1.austin.arm.com [10.118.14.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 32DD53F71E; Fri, 3 Apr 2020 11:42:00 -0700 (PDT) From: Honnappa Nagarahalli To: konstantin.ananyev@intel.com, stephen@networkplumber.org, vladimir.medvedkin@intel.com Cc: dev@dpdk.org, honnappa.nagarahalli@arm.com, ruifeng.wang@arm.com, dharmik.thakkar@arm.com, nd@arm.com Date: Fri, 3 Apr 2020 13:41:42 -0500 Message-Id: <20200403184142.7729-5-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200403184142.7729-1-honnappa.nagarahalli@arm.com> References: <20191001062917.35578-1-honnappa.nagarahalli@arm.com> <20200403184142.7729-1-honnappa.nagarahalli@arm.com> Subject: [dpdk-dev] [PATCH v4 4/4] lib/rcu: add additional debug logs 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" Added additional debug logs. These helped in debugging RCU defer APIs. Signed-off-by: Honnappa Nagarahalli --- lib/librte_rcu/rte_rcu_qsbr.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/lib/librte_rcu/rte_rcu_qsbr.h b/lib/librte_rcu/rte_rcu_qsbr.h index 213f9b029..dd51e7e35 100644 --- a/lib/librte_rcu/rte_rcu_qsbr.h +++ b/lib/librte_rcu/rte_rcu_qsbr.h @@ -716,8 +716,15 @@ rte_rcu_qsbr_check(struct rte_rcu_qsbr *v, uint64_t t, bool wait) RTE_ASSERT(v != NULL); /* Check if all the readers have already acknowledged this token */ - if (likely(t <= v->acked_token)) + if (likely(t <= v->acked_token)) { + __RTE_RCU_DP_LOG(DEBUG, + "%s: check: token = %"PRIu64", wait = %d", + __func__, t, wait); + __RTE_RCU_DP_LOG(DEBUG, + "%s: status: least acked token = %"PRIu64"", + __func__, v->acked_token); return 1; + } if (likely(v->num_threads == v->max_threads)) return __rte_rcu_qsbr_check_all(v, t, wait);