Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/28514/?format=api
https://patches.dpdk.org/api/patches/28514/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20170908145055.50280-1-xuemingl@mellanox.com/", "project": { "id": 1, "url": "https://patches.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": "<20170908145055.50280-1-xuemingl@mellanox.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20170908145055.50280-1-xuemingl@mellanox.com", "date": "2017-09-08T14:50:54", "name": "[dpdk-dev,v2,1/2] eal/malloc: fix RTE malloc debug macro", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "336cf075f6d506037d41d6221032132e99fd7960", "submitter": { "id": 814, "url": "https://patches.dpdk.org/api/people/814/?format=api", "name": "Xueming Li", "email": "xuemingl@mellanox.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20170908145055.50280-1-xuemingl@mellanox.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/28514/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/28514/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 8FE43199B9;\n\tFri, 8 Sep 2017 16:51:41 +0200 (CEST)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n\tby dpdk.org (Postfix) with ESMTP id 93DF2199AB\n\tfor <dev@dpdk.org>; Fri, 8 Sep 2017 16:51:40 +0200 (CEST)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n\txuemingl@mellanox.com)\n\twith ESMTPS (AES256-SHA encrypted); 8 Sep 2017 17:51:38 +0300", "from dev-r630-06.mtbc.labs.mlnx (dev-r630-06.mtbc.labs.mlnx\n\t[10.12.205.180])\n\tby labmailer.mlnx (8.13.8/8.13.8) with ESMTP id v88Epbht028581;\n\tFri, 8 Sep 2017 17:51:38 +0300", "from dev-r630-06.mtbc.labs.mlnx (localhost [127.0.0.1])\n\tby dev-r630-06.mtbc.labs.mlnx (8.14.7/8.14.7) with ESMTP id\n\tv88Epa1U050340; Fri, 8 Sep 2017 22:51:36 +0800", "(from xuemingl@localhost)\n\tby dev-r630-06.mtbc.labs.mlnx (8.14.7/8.14.7/Submit) id\n\tv88EpWnN050338; Fri, 8 Sep 2017 22:51:32 +0800" ], "From": "Xueming Li <xuemingl@mellanox.com>", "To": "Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>", "Cc": "dev@dpdk.org, Xueming Li <xuemingl@mellanox.com>", "Date": "Fri, 8 Sep 2017 22:50:54 +0800", "Message-Id": "<20170908145055.50280-1-xuemingl@mellanox.com>", "X-Mailer": "git-send-email 2.13.3", "In-Reply-To": "<20170823022926.169272-1-xuemingl@mellanox.com>", "References": "<20170823022926.169272-1-xuemingl@mellanox.com>", "Subject": "[dpdk-dev] [PATCH v2 1/2] eal/malloc: fix RTE malloc debug macro", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "This patch replaces broken macro RTE_LIBRTE_MALLOC_DEBUG with\nRTE_MALLOC_DEBUG.\n\nFixes: af75078fece3 (\"first public release\")\n\nCc: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>\nSigned-off-by: Xueming Li <xuemingl@mellanox.com>\n---\n lib/librte_eal/common/malloc_elem.h | 4 ++--\n test/test/test_malloc.c | 10 +++++-----\n 2 files changed, 7 insertions(+), 7 deletions(-)", "diff": "diff --git a/lib/librte_eal/common/malloc_elem.h b/lib/librte_eal/common/malloc_elem.h\nindex f04b2d1e4..ce39129d9 100644\n--- a/lib/librte_eal/common/malloc_elem.h\n+++ b/lib/librte_eal/common/malloc_elem.h\n@@ -53,13 +53,13 @@ struct malloc_elem {\n \tvolatile enum elem_state state;\n \tuint32_t pad;\n \tsize_t size;\n-#ifdef RTE_LIBRTE_MALLOC_DEBUG\n+#ifdef RTE_MALLOC_DEBUG\n \tuint64_t header_cookie; /* Cookie marking start of data */\n \t /* trailer cookie at start + size */\n #endif\n } __rte_cache_aligned;\n \n-#ifndef RTE_LIBRTE_MALLOC_DEBUG\n+#ifndef RTE_MALLOC_DEBUG\n static const unsigned MALLOC_ELEM_TRAILER_LEN = 0;\n \n /* dummy function - just check if pointer is non-null */\ndiff --git a/test/test/test_malloc.c b/test/test/test_malloc.c\nindex 013fd4407..5558acda4 100644\n--- a/test/test/test_malloc.c\n+++ b/test/test/test_malloc.c\n@@ -108,7 +108,7 @@ test_align_overlap_per_lcore(__attribute__((unused)) void *arg)\n \t\t}\n \t\tfor(j = 0; j < 1000 ; j++) {\n \t\t\tif( *(char *)p1 != 0) {\n-\t\t\t\tprintf(\"rte_zmalloc didn't zero\"\n+\t\t\t\tprintf(\"rte_zmalloc didn't zero \"\n \t\t\t\t \"the allocated memory\\n\");\n \t\t\t\tret = -1;\n \t\t\t}\n@@ -180,7 +180,7 @@ test_reordered_free_per_lcore(__attribute__((unused)) void *arg)\n \t\t}\n \t\tfor(j = 0; j < 1000 ; j++) {\n \t\t\tif( *(char *)p1 != 0) {\n-\t\t\t\tprintf(\"rte_zmalloc didn't zero\"\n+\t\t\t\tprintf(\"rte_zmalloc didn't zero \"\n \t\t\t\t \"the allocated memory\\n\");\n \t\t\t\tret = -1;\n \t\t\t}\n@@ -293,7 +293,7 @@ test_multi_alloc_statistics(void)\n \tstruct rte_malloc_socket_stats pre_stats, post_stats ,first_stats, second_stats;\n \tsize_t size = 2048;\n \tint align = 1024;\n-#ifndef RTE_LIBRTE_MALLOC_DEBUG\n+#ifndef RTE_MALLOC_DEBUG\n \tint trailer_size = 0;\n #else\n \tint trailer_size = RTE_CACHE_LINE_SIZE;\n@@ -623,7 +623,7 @@ test_rte_malloc_validate(void)\n \tconst size_t request_size = 1024;\n \tsize_t allocated_size;\n \tchar *data_ptr = rte_malloc(NULL, request_size, RTE_CACHE_LINE_SIZE);\n-#ifdef RTE_LIBRTE_MALLOC_DEBUG\n+#ifdef RTE_MALLOC_DEBUG\n \tint retval;\n \tchar *over_write_vals = NULL;\n #endif\n@@ -645,7 +645,7 @@ test_rte_malloc_validate(void)\n \tif (allocated_size < request_size)\n \t\terr_return();\n \n-#ifdef RTE_LIBRTE_MALLOC_DEBUG\n+#ifdef RTE_MALLOC_DEBUG\n \n \t/****** change the header to be bad */\n \tchar save_buf[64];\n", "prefixes": [ "dpdk-dev", "v2", "1/2" ] }{ "id": 28514, "url": "