From patchwork Sun Oct 25 05:45:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 318960 Delivered-To: patch@linaro.org Received: by 2002:a92:d1d1:0:0:0:0:0 with SMTP id u17csp1695970ilg; Sat, 24 Oct 2020 22:48:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz86txSkaTgl0LoneISvvkfZzMjUXEVeKL+mCukD4PtnbaHT3B6PJWHYLj6wsmpp24bBWcZ X-Received: by 2002:a17:906:6409:: with SMTP id d9mr9660625ejm.344.1603604920020; Sat, 24 Oct 2020 22:48:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603604920; cv=none; d=google.com; s=arc-20160816; b=QhJ5UHvBb3kABhiw3GMsp35iHpMbBHWN8FB833qUurKXlQFAShFOy6kNdh4MnNQa9d +lWhrBVVWVULZMKo7EgfDQls33ueLwXxPOVH7QASEib3uNMz8D7pPHCkfLPD2Y40Idgm ORFwqNASE9FcNJHMWdIURgzabCBBtWPSSb+wJwk7zc/phLtTOe0tygd4rEShg50ghDQf Y7dOXDEIX3IJSuFK+tiyzm+6W/Jn8oxCjZvp5wU2+MfZ1hEqPMLg3GnLvndYG+0uHLA3 NSNbuTzCdgBDaAybShrP+anAOycJTaMcN4h6LtxgbIEsrEW/qGj7GiflkFb9wVqOmcp/ uiqA== 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=G2TfokirCDL4Iwlew9p1Jd9imSeONUbauO+haNUF4HA=; b=YpB7DQnabg7u76sh6hCKpoJyd5Sbxxh+JqCtAr/K94MF0NEfJ3ILV6lqY7ko4XRtON ysjF/w44NRmYrVe6hvFIxiaokrYqzyjgEBDeFzf7SK9k0k9/iA8aoJ09ZqumqkHrljli erba9QhHTiFw3dxWrPI5E8KBMS9bbAvzlBaPiycVfDWXKmQH6vbg+Kj8ytlz7rLpYNCu GIOCRXSxSoa3/WKanXgOLGltbiAHXOpi10BYTTGn+6rqkYPRVxs3AXDcw6Vi8iMgdr7U T0QqeisoDg548yveGs+sxIHCWDyhnXLKO5hqAtMDCb6d4IE2hVV5wNyJJ4fQQpAaIu9m pu8Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id u29si4258629edb.137.2020.10.24.22.48.39; Sat, 24 Oct 2020 22:48:40 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E80D82BF9; Sun, 25 Oct 2020 06:46:23 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id B249C2B83; Sun, 25 Oct 2020 06:46:12 +0100 (CET) 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 2590A113E; Sat, 24 Oct 2020 22:46:11 -0700 (PDT) Received: from qc2400f-1.austin.arm.com (qc2400f-1.austin.arm.com [10.118.12.27]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1D67D3F66B; Sat, 24 Oct 2020 22:46:11 -0700 (PDT) From: Honnappa Nagarahalli To: dev@dpdk.org, honnappa.nagarahalli@arm.com, konstantin.ananyev@intel.com, stephen@networkplumber.org Cc: dharmik.thakkar@arm.com, ruifeng.wang@arm.com, olivier.matz@6wind.com, david.marchand@redhat.com, nd@arm.com, stable@dpdk.org Date: Sun, 25 Oct 2020 00:45:54 -0500 Message-Id: <20201025054556.14277-7-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201025054556.14277-1-honnappa.nagarahalli@arm.com> References: <20200224203931.21256-1-honnappa.nagarahalli@arm.com> <20201025054556.14277-1-honnappa.nagarahalli@arm.com> Subject: [dpdk-dev] [PATCH v5 6/8] test/ring: fix the memory dump size 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" Pass the correct number of bytes to dump the memory. Fixes: bf28df24e915 ("test/ring: add contention stress test" Cc: konstantin.ananyev@intel.com Cc: stable@dpdk.org Signed-off-by: Honnappa Nagarahalli Reviewed-by: Dharmik Thakkar Acked-by: Konstantin Ananyev --- app/test/test_ring_stress_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/app/test/test_ring_stress_impl.h b/app/test/test_ring_stress_impl.h index 3b9a480eb..f9ca63b90 100644 --- a/app/test/test_ring_stress_impl.h +++ b/app/test/test_ring_stress_impl.h @@ -159,7 +159,7 @@ check_updt_elem(struct ring_elem *elm[], uint32_t num, "offending object: %p\n", __func__, rte_lcore_id(), num, i, elm[i]); rte_memdump(stdout, "expected", check, sizeof(*check)); - rte_memdump(stdout, "result", elm[i], sizeof(elm[i])); + rte_memdump(stdout, "result", elm[i], sizeof(*elm[i])); rte_spinlock_unlock(&dump_lock); return -EINVAL; }