From patchwork Fri Oct 23 04:43:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 318907 Delivered-To: patch@linaro.org Received: by 2002:a92:d1d1:0:0:0:0:0 with SMTP id u17csp125657ilg; Thu, 22 Oct 2020 21:44:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzP8rcodHwFK6GkWv/GA53tWUGzNj2rBwjOHs4f9lINsLkbmQC1Vm7lX7WbFNVqW9WPp+XP X-Received: by 2002:a17:906:7a51:: with SMTP id i17mr259287ejo.234.1603428265868; Thu, 22 Oct 2020 21:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603428265; cv=none; d=google.com; s=arc-20160816; b=YoV6jAhJ0XLvAazR/BRlrbeTbMepEbbD1hoKIP97gTmbP6+DUjh6NQ8+Up8W3iCmC5 CVW6UoD7pf1EmPgEQQYgyu4SPajtkUjYnT3NF87qEkMY5hf3LoKw22RItkQqxu3yjWof 8qmgW4XQ+6lQ9K4J7pG10ZFy8wnMM58RzCwhAx4Jbdc19wBODjGS6a9egUwyech8OpIW SURyMIgeP3OuPz5H+o80CABS6y1PkqMFLMt8z2byuUS09F2+/FOH2A5cpjUSgAgqXEQq 7eLWr03H22xHW6uj4GbDZHX8vIxgyTOVdzBecmLRyLzaTVUV0Ou0oeq8TVYpQyVcyPW0 an3w== 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=kM2HE2l9gP7K26DlIhc5pe/23R1BHP5JKEQ+96nII8k=; b=IK7mTnhzOvgJskFjfSFomqeydbJ7zf9DbbMhdNagKbsOsktI/m/XuXWyImwD3K5YCP Av9resuHXYt7JisRsCiqrIPSnDQWtC6zlZXuy6EEc9D1ngSNXV4O1w22DGxIss9iRPhP RlSK1oWynlD/TWiC7gupaqEef4RkoB02kGl14bOHCTpvpPfpcJJAkjAt9S9AclCS2LXv GX96y+3p7hrr/3GS7nc42P1ZD1oPb7Y6zvyYR7O360kQJEghkIBE46M6P4tYcFPsv1lt tD+gR+shxyrRywYqzhaETM7U5MIP76H+3Cs5IeG7Bbi4GMUW+t2iqP3JuNd2noTfyH7l u9Tw== 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 le9si152403ejb.208.2020.10.22.21.44.25; Thu, 22 Oct 2020 21:44:25 -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 9466B6968; Fri, 23 Oct 2020 06:44:13 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 91F446968; Fri, 23 Oct 2020 06:44:10 +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 176E0101E; Thu, 22 Oct 2020 21:44:10 -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 0FC183F66B; Thu, 22 Oct 2020 21:44:10 -0700 (PDT) From: Honnappa Nagarahalli To: dev@dpdk.org, honnappa.nagarahalli@arm.com, konstantin.ananyev@intel.com Cc: olivier.matz@6wind.com, david.marchand@redhat.com, dharmik.thakkar@arm.com, ruifeng.wang@arm.com, nd@arm.com, stable@dpdk.org Date: Thu, 22 Oct 2020 23:43:39 -0500 Message-Id: <20201023044343.13462-2-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201023044343.13462-1-honnappa.nagarahalli@arm.com> References: <20200224203931.21256-1-honnappa.nagarahalli@arm.com> <20201023044343.13462-1-honnappa.nagarahalli@arm.com> Subject: [dpdk-dev] [PATCH v3 1/5] 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 --- app/test/test_ring_stress_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Acked-by: Konstantin Ananyev 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; }