Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/118045/?format=api
http://patchwork.dpdk.org/api/patches/118045/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20221012104805.44185-7-fengchengwen@huawei.com/", "project": { "id": 1, "url": "http://patchwork.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20221012104805.44185-7-fengchengwen@huawei.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20221012104805.44185-7-fengchengwen@huawei.com", "date": "2022-10-12T10:48:04", "name": "[v9,6/7] test/memarea: support dump test", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "ff2361ab2ae62582e29a23afc246c08da78f83ee", "submitter": { "id": 2146, "url": "http://patchwork.dpdk.org/api/people/2146/?format=api", "name": "fengchengwen", "email": "fengchengwen@huawei.com" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20221012104805.44185-7-fengchengwen@huawei.com/mbox/", "series": [ { "id": 25175, "url": "http://patchwork.dpdk.org/api/series/25175/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=25175", "date": "2022-10-12T10:47:58", "name": "introduce memarea library", "version": 9, "mbox": "http://patchwork.dpdk.org/series/25175/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/118045/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/118045/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id B159AA00C4;\n\tWed, 12 Oct 2022 12:54:07 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 4F7E34301D;\n\tWed, 12 Oct 2022 12:53:55 +0200 (CEST)", "from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255])\n by mails.dpdk.org (Postfix) with ESMTP id 7073B43012\n for <dev@dpdk.org>; Wed, 12 Oct 2022 12:53:51 +0200 (CEST)", "from dggpeml500024.china.huawei.com (unknown [172.30.72.56])\n by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4MnTt32n3xz1P6g2;\n Wed, 12 Oct 2022 18:49:15 +0800 (CST)", "from localhost.localdomain (10.67.165.24) by\n dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2375.31; Wed, 12 Oct 2022 18:53:49 +0800" ], "From": "Chengwen Feng <fengchengwen@huawei.com>", "To": "<david.marchand@redhat.com>, <mb@smartsharesystems.com>,\n <anatoly.burakov@intel.com>, <dmitry.kozliuk@gmail.com>,\n <jerinjacobk@gmail.com>, <hofors@lysator.liu.se>", "CC": "<thomas@monjalon.net>, <dev@dpdk.org>", "Subject": "[PATCH v9 6/7] test/memarea: support dump test", "Date": "Wed, 12 Oct 2022 10:48:04 +0000", "Message-ID": "<20221012104805.44185-7-fengchengwen@huawei.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20221012104805.44185-1-fengchengwen@huawei.com>", "References": "<20220721044648.6817-1-fengchengwen@huawei.com>\n <20221012104805.44185-1-fengchengwen@huawei.com>", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Originating-IP": "[10.67.165.24]", "X-ClientProxiedBy": "dggems704-chm.china.huawei.com (10.3.19.181) To\n dggpeml500024.china.huawei.com (7.185.36.10)", "X-CFilter-Loop": "Reflected", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "This patch supports rte_memarea_dump() test.\n\nSigned-off-by: Chengwen Feng <fengchengwen@huawei.com>\n---\n app/test/test_memarea.c | 35 +++++++++++++++++++++++++++++++++++\n 1 file changed, 35 insertions(+)", "diff": "diff --git a/app/test/test_memarea.c b/app/test/test_memarea.c\nindex 5252d47fc1..5aa0683427 100644\n--- a/app/test/test_memarea.c\n+++ b/app/test/test_memarea.c\n@@ -266,6 +266,40 @@ test_memarea_alloc_free(void)\n \treturn 0;\n }\n \n+static int\n+test_memarea_dump(void)\n+{\n+\tstruct rte_memarea_param init;\n+\tstruct rte_memarea *ma;\n+\tint ret;\n+\n+\t/* prepare env */\n+\ttest_memarea_init_param(&init);\n+\tinit.source = RTE_MEMAREA_SOURCE_LIBC;\n+\tinit.total_sz = MEMAREA_TEST_DEFAULT_SIZE;\n+\tma = rte_memarea_create(&init);\n+\tRTE_TEST_ASSERT(ma != NULL, \"Expected Non-NULL\");\n+\n+\t/* test for invalid parameters */\n+\tret = rte_memarea_dump(NULL, stderr, false);\n+\tRTE_TEST_ASSERT(ret == -EINVAL, \"Expected EINVAL\");\n+\tret = rte_memarea_dump(ma, NULL, false);\n+\tRTE_TEST_ASSERT(ret == -EINVAL, \"Expected EINVAL\");\n+\n+\t/* test for dump */\n+\t(void)rte_memarea_alloc(ma, 1, 0);\n+\t(void)rte_memarea_alloc(ma, 1, 0);\n+\t(void)rte_memarea_alloc(ma, 1, 0);\n+\t(void)rte_memarea_alloc(ma, MEMAREA_TEST_DEFAULT_SIZE, 0);\n+\t(void)rte_memarea_alloc(ma, MEMAREA_TEST_DEFAULT_SIZE, 0);\n+\tret = rte_memarea_dump(ma, stderr, true);\n+\tRTE_TEST_ASSERT(ret == 0, \"Expected ZERO\");\n+\n+\trte_memarea_destroy(ma);\n+\n+\treturn 0;\n+}\n+\n static int\n test_memarea(void)\n {\n@@ -276,6 +310,7 @@ test_memarea(void)\n \tMEMAREA_TEST_API_RUN(test_memarea_alloc_fail);\n \tMEMAREA_TEST_API_RUN(test_memarea_free_fail);\n \tMEMAREA_TEST_API_RUN(test_memarea_alloc_free);\n+\tMEMAREA_TEST_API_RUN(test_memarea_dump);\n \n \treturn test_memarea_retcode();\n }\n", "prefixes": [ "v9", "6/7" ] }{ "id": 118045, "url": "