Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2218346/?format=api
{ "id": 2218346, "url": "http://patchwork.ozlabs.org/api/patches/2218346/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ltp/patch/20260401054146.99060-1-samir@linux.ibm.com/", "project": { "id": 59, "url": "http://patchwork.ozlabs.org/api/projects/59/?format=api", "name": "Linux Test Project development", "link_name": "ltp", "list_id": "ltp.lists.linux.it", "list_email": "ltp@lists.linux.it", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260401054146.99060-1-samir@linux.ibm.com>", "list_archive_url": null, "date": "2026-04-01T05:41:46", "name": "madvise09: Make memory map output conditional and more informative", "commit_ref": null, "pull_url": null, "state": "needs-review-ack", "archived": false, "hash": "144d4d288bb0dbacc2f19454ae5ef107f73ad924", "submitter": { "id": 91376, "url": "http://patchwork.ozlabs.org/api/people/91376/?format=api", "name": "“Samir", "email": "samir@linux.ibm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/20260401054146.99060-1-samir@linux.ibm.com/mbox/", "series": [ { "id": 498275, "url": "http://patchwork.ozlabs.org/api/series/498275/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ltp/list/?series=498275", "date": "2026-04-01T05:41:46", "name": "madvise09: Make memory map output conditional and more informative", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/498275/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2218346/comments/", "check": "success", "checks": "http://patchwork.ozlabs.org/api/patches/2218346/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "ltp@lists.linux.it" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "ltp@picard.linux.it" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=jkDqURZ6;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it\n (client-ip=2001:1418:10:5::2; helo=picard.linux.it;\n envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4flv7J0wDHz1yCp\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 01 Apr 2026 16:44:09 +1100 (AEDT)", "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id A16063E2A28\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 1 Apr 2026 07:44:06 +0200 (CEST)", "from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it\n [IPv6:2001:4b78:1:20::2])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature ECDSA (secp384r1))\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id B53163E1515\n for <ltp@lists.linux.it>; Wed, 1 Apr 2026 07:44:03 +0200 (CEST)", "from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com\n [148.163.158.5])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by in-2.smtp.seeweb.it (Postfix) with ESMTPS id DB5FC600A6D\n for <ltp@lists.linux.it>; Wed, 1 Apr 2026 07:44:02 +0200 (CEST)", "from pps.filterd (m0353725.ppops.net [127.0.0.1])\n by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 62VJX1YY108580; Wed, 1 Apr 2026 05:44:01 GMT", "from ppma23.wdc07v.mail.ibm.com\n (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93])\n by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4d65dce2aq-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Wed, 01 Apr 2026 05:44:01 +0000 (GMT)", "from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1])\n by ppma23.wdc07v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id\n 6311kr4p013898;\n Wed, 1 Apr 2026 05:44:00 GMT", "from smtprelay02.fra02v.mail.ibm.com ([9.218.2.226])\n by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4d6ttkm627-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Wed, 01 Apr 2026 05:44:00 +0000", "from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com\n [10.20.54.105])\n by smtprelay02.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 6315huEU49152344\n (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n Wed, 1 Apr 2026 05:43:56 GMT", "from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id 23AFF20049;\n Wed, 1 Apr 2026 05:43:56 +0000 (GMT)", "from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id 530C420040;\n Wed, 1 Apr 2026 05:43:55 +0000 (GMT)", "from ltcden9-lp6.ltc.tadn.ibm.com (unknown [9.5.7.39])\n by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTP;\n Wed, 1 Apr 2026 05:43:55 +0000 (GMT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc\n :content-transfer-encoding:date:from:message-id:mime-version\n :subject:to; s=pp1; bh=iZw71CshpYUv1MlXqJDhJiIBs/EnrEfjZSz2wMx9B\n JI=; b=jkDqURZ6WfXjWnXIU0dZAhZHtzH+cMgUNwALvBUYu+c/Eu2aUGdaitOmj\n xrzZAAHGnATBKmGXdgNLCMYfhDt5HUHNLasBfbOCf95jQtHatsDr3KfS6PR4yer2\n Smc3p2WWsPdL961HX4JR6WEEa26GK8FJen89OS4Be0o6FlGDYk27GCKS04ScKyfl\n OkKXWbijvy7+TOW01hipFj5SnUbqDXkHtx8ehUQiyW28jOIgMPzsn2+RXAR1hshA\n CSwEXPDkdx3iDqhCJqGXEeaxvuSeDbUT3sJ3nUqwNM0TAefwjyP387WodX/Q5YJr\n 0KwlCAIlICpUHpADPqR2fPabNtXKA==", "From": "=?utf-8?b?4oCcU2FtaXI=?= <samir@linux.ibm.com>", "To": "ltp@lists.linux.it", "Date": "Wed, 1 Apr 2026 11:11:46 +0530", "Message-ID": "<20260401054146.99060-1-samir@linux.ibm.com>", "X-Mailer": "git-send-email 2.52.0", "MIME-Version": "1.0", "X-TM-AS-GCONF": "00", "X-Authority-Analysis": "v=2.4 cv=RsjI7SmK c=1 sm=1 tr=0 ts=69ccb0a1 cx=c_pps\n a=3Bg1Hr4SwmMryq2xdFQyZA==:117 a=3Bg1Hr4SwmMryq2xdFQyZA==:17\n a=A5OVakUREuEA:10 a=M51BFTxLslgA:10 a=VkNPw1HP01LnGYTKEx00:22\n a=RnoormkPH1_aCDwRdu11:22 a=V8glGbnc2Ofi9Qvn3v5h:22 a=VnNF1IyMAAAA:8\n a=6uQK6bpgce_nHWxh8o0A:9", "X-Proofpoint-GUID": "P0ezKXPNLinczgx_qN4tAzWT-7oT7kv6", "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDAxMDA0MyBTYWx0ZWRfX1iLh/L4CqGEm\n 4qW33FXWLd6LlwfrBdJlMzxpxn3ghnlFna1+eHcZtYA9gAhhNUkj1T0oVN8TE0PtaaKI8PXsLxg\n T/zvwQz/rVPsf/7CTPq/7j2K8kvcGgbM1goSyyJza4CPR9mSOj1OwcP84/bWu18e+sIJVkRPW9B\n 7mGvpkj166wW+iaSUny9Rr9NhkWnhkobDdRCqakhR631V+ojfrx2s4Dv/pGouWBG9xJEnb+5eIf\n cKQR2lGFM2RSF8zuCmYhI5CG2xAn3aaTOwf7p66Bsnsbk9Hnus26//7rtWtRznP7iHJIbSDe+hy\n oXRau9sgKFtNjFWNPbWMCKC77LStyR6VFZOhfDIIP82sIE6ZCNHcG/orHtvW4AUh2ZIYvW4e8JT\n 9tbOJw2GeTDRw5BiSL+tkcDzP7HTE1QG8NWMYc/FN7VbjODXuIYE0KLK6kFNTsWtEbyAp6U+jBR\n 0P+LaLn7PDScFub/Tiw==", "X-Proofpoint-ORIG-GUID": "P0ezKXPNLinczgx_qN4tAzWT-7oT7kv6", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-04-01_02,2026-03-31_02,2025-10-01_01", "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n impostorscore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0\n suspectscore=0 malwarescore=0 spamscore=0 clxscore=1015 phishscore=0\n adultscore=0 classifier=typeunknown authscore=0 authtc= authcc=\n route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001\n definitions=main-2604010043", "X-Spam-Status": "No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DMARC_PASS,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=disabled\n version=4.0.1", "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on in-2.smtp.seeweb.it", "X-Virus-Scanned": "clamav-milter 1.0.9 at in-2.smtp.seeweb.it", "X-Virus-Status": "Clean", "Subject": "[LTP] [PATCH] madvise09: Make memory map output conditional and\n more informative", "X-BeenThere": "ltp@lists.linux.it", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "Linux Test Project <ltp.lists.linux.it>", "List-Unsubscribe": "<https://lists.linux.it/options/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=unsubscribe>", "List-Archive": "<http://lists.linux.it/pipermail/ltp/>", "List-Post": "<mailto:ltp@lists.linux.it>", "List-Help": "<mailto:ltp-request@lists.linux.it?subject=help>", "List-Subscribe": "<https://lists.linux.it/listinfo/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=subscribe>", "Cc": "=?utf-8?b?4oCcU2FtaXI=?= <samir@linux.ibm.com>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it", "Sender": "\"ltp\" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>" }, "content": "The memory map was being printed unconditionally for every test run,\ncreating verbose output even for successful tests. This change makes\nthe output conditional and adds useful context.\n\nChanges:\n- Only display memory map when there are issues (corrupted pages or\n no pages freed), eliminating verbose output for successful runs\n- Add legend to memory map output explaining symbols:\n p=present, _=freed, ?=corrupted\n- Enhance TPASS message to show freed page count (e.g., \"126/128 freed\")\n- Improve TFAIL message to show count of corrupted pages\n\nBefore:\n TINFO: Memory map: p_________p_____________________...\n TPASS: Pages MADV_FREE were freed on low memory\n\nAfter (successful run):\n TPASS: Pages MADV_FREE were freed on low memory (126/128 freed)\n\nAfter (failure with issues):\n TINFO: Memory map: p_________p??___ (p=present, _=freed, ?=corrupted)\n TFAIL: Found 2 corrupted page(s)\n\nThis improves test output readability while preserving debugging\ninformation when needed.\n\nSigned-off-by: Samir <samir@linux.ibm.com>\n---\n testcases/kernel/syscalls/madvise/madvise09.c | 8 +++++---\n 1 file changed, 5 insertions(+), 3 deletions(-)", "diff": "diff --git a/testcases/kernel/syscalls/madvise/madvise09.c b/testcases/kernel/syscalls/madvise/madvise09.c\nindex 1fad983fd..87fe096fb 100644\n--- a/testcases/kernel/syscalls/madvise/madvise09.c\n+++ b/testcases/kernel/syscalls/madvise/madvise09.c\n@@ -219,15 +219,17 @@ static void child(void)\n \t}\n \tmap[PAGES] = '\\0';\n \n-\ttst_res(TINFO, \"Memory map: %s\", map);\n+\t/* Only show memory map if there are issues or for debugging */\n+\tif (corrupted || freed == 0)\n+\t\ttst_res(TINFO, \"Memory map: %s (p=present, _=freed, ?=corrupted)\", map);\n \n \tif (freed)\n-\t\ttst_res(TPASS, \"Pages MADV_FREE were freed on low memory\");\n+\t\ttst_res(TPASS, \"Pages MADV_FREE were freed on low memory (%u/%u freed)\", freed, PAGES);\n \telse\n \t\ttst_res(TFAIL, \"No MADV_FREE page was freed on low memory\");\n \n \tif (corrupted)\n-\t\ttst_res(TFAIL, \"Found corrupted page\");\n+\t\ttst_res(TFAIL, \"Found %u corrupted page(s)\", corrupted);\n \telse\n \t\ttst_res(TPASS, \"All pages have expected content\");\n \n", "prefixes": [] }