Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2228372/?format=api
{ "id": 2228372, "url": "http://patchwork.ozlabs.org/api/patches/2228372/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260426093930.47809-1-atrajeev@linux.ibm.com/", "project": { "id": 2, "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api", "name": "Linux PPC development", "link_name": "linuxppc-dev", "list_id": "linuxppc-dev.lists.ozlabs.org", "list_email": "linuxppc-dev@lists.ozlabs.org", "web_url": "https://github.com/linuxppc/wiki/wiki", "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git", "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/", "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/", "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}" }, "msgid": "<20260426093930.47809-1-atrajeev@linux.ibm.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260426093930.47809-1-atrajeev@linux.ibm.com/", "date": "2026-04-26T09:39:30", "name": "tools/perf/sched: Update process names of processes in zombie state for both -s and -S options", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "e50c63322fec89efadd2779f9b30e1e8dae1018a", "submitter": { "id": 90290, "url": "http://patchwork.ozlabs.org/api/people/90290/?format=api", "name": "Athira Rajeev", "email": "atrajeev@linux.ibm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260426093930.47809-1-atrajeev@linux.ibm.com/mbox/", "series": [ { "id": 501520, "url": "http://patchwork.ozlabs.org/api/series/501520/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=501520", "date": "2026-04-26T09:39:30", "name": "tools/perf/sched: Update process names of processes in zombie state for both -s and -S options", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/501520/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2228372/comments/", "check": "success", "checks": "http://patchwork.ozlabs.org/api/patches/2228372/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linuxppc-dev+bounces-20120-incoming=patchwork.ozlabs.org@lists.ozlabs.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linuxppc-dev@lists.ozlabs.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=cTmad9Aa;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=112.213.38.117; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-20120-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)", "lists.ozlabs.org;\n arc=none smtp.remote-ip=148.163.158.5", "lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.ibm.com", "lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=cTmad9Aa;\n\tdkim-atps=neutral", "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=linux.ibm.com\n (client-ip=148.163.158.5; helo=mx0b-001b2d01.pphosted.com;\n envelope-from=atrajeev@linux.ibm.com; receiver=lists.ozlabs.org)" ], "Received": [ "from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g3M9l0xh5z1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 26 Apr 2026 19:39:54 +1000 (AEST)", "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4g3M9k10jSz2ySC;\n\tSun, 26 Apr 2026 19:39:54 +1000 (AEST)", "from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com\n [148.163.158.5])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4g3M9h6vzfz2xlK\n\tfor <linuxppc-dev@lists.ozlabs.org>; Sun, 26 Apr 2026 19:39:52 +1000 (AEST)", "from pps.filterd (m0356516.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 63Q4A79U1150119;\n\tSun, 26 Apr 2026 09:39:44 GMT", "from ppma22.wdc07v.mail.ibm.com\n (5c.69.3da9.ip4.static.sl-reverse.com [169.61.105.92])\n\tby mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4drk1jbw0s-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tSun, 26 Apr 2026 09:39:44 +0000 (GMT)", "from pps.filterd (ppma22.wdc07v.mail.ibm.com [127.0.0.1])\n\tby ppma22.wdc07v.mail.ibm.com (8.18.1.7/8.18.1.7) with ESMTP id\n 63Q9O5jg029691;\n\tSun, 26 Apr 2026 09:39:43 GMT", "from smtprelay02.fra02v.mail.ibm.com ([9.218.2.226])\n\tby ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4ds8avh4n6-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tSun, 26 Apr 2026 09:39:43 +0000 (GMT)", "from smtpav03.fra02v.mail.ibm.com (smtpav03.fra02v.mail.ibm.com\n [10.20.54.102])\n\tby smtprelay02.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 63Q9ddmw51315160\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n\tSun, 26 Apr 2026 09:39:39 GMT", "from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id BA6952004D;\n\tSun, 26 Apr 2026 09:39:39 +0000 (GMT)", "from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 8018820040;\n\tSun, 26 Apr 2026 09:39:34 +0000 (GMT)", "from localhost.localdomain (unknown [9.124.219.109])\n\tby smtpav03.fra02v.mail.ibm.com (Postfix) with ESMTP;\n\tSun, 26 Apr 2026 09:39:34 +0000 (GMT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1777196393;\n\tcv=none;\n b=LebCdNhimGqY1ARtYCyOu60pH4YGfDpZ2DErpno6Ci7VMVFbjvEJ0BV5tfARIsaVFF4V54qjBguPooYDnow6d/t43TMUdLMdARGtWgXfhR9HO+CC0C2g7yEU6LnZ0k4/Uzlps+N5QHk7fRwG14TI34ECV1IutQzmLCqC3ZaOgT3EB1rkcM/vsu0dmzDL/6S4OYVBMrgenAJvFiSdB6lOOiIMeDxrpcKqkFC8Niru/9Z9ySa3fFYYmZdwukDkpjJiv7vJii4E/r3MUyQ/AYadJl0g2AWXr2vepg6RO2U4jo1CRULrpmS18blVYrMqRvu1zW7t231KvWW+lbml2SHc6g==", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1777196393; c=relaxed/relaxed;\n\tbh=Rzji9qKGrPdQU8n/vuCu/SOzBClb11q0e3ag7y2Rt6I=;\n\th=From:To:Cc:Subject:Date:Message-Id:MIME-Version;\n b=OPN2tue2uVD0Q+sXBQLZbURu5Op1Q4r39E9egscPPIuwbnUtOiZb0GYZYWXUj+DIFZfLgjF365jbVZz5RT4uy1xsDv57FPrGSIJelQOgBKEaGpWAQBYG8632nT91SJQwYuiz3iZoOWCJSp8uXNfcuGWViu1N0n7bo206OGQv3VXjjE7EeFsXKfhvHrSk5545zxG4QOe877OVBka9HkEFEuyO1u9X+J7sQZavCPklskMlbPXsZcW7zOyCHT/Sm8k/SWdMfC+HUAvRB9So1xz09IToTdn+RQL6urq4AVY/H/FdtF1c1Mv0YdrTS5LEDFz9dGsObNmJILA+UsPQqQ7wVA==", "ARC-Authentication-Results": "i=1; lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.ibm.com;\n dkim=pass (2048-bit key;\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=cTmad9Aa; dkim-atps=neutral;\n spf=pass (client-ip=148.163.158.5; helo=mx0b-001b2d01.pphosted.com;\n envelope-from=atrajeev@linux.ibm.com;\n receiver=lists.ozlabs.org) smtp.mailfrom=linux.ibm.com", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc\n\t:content-transfer-encoding:date:from:message-id:mime-version\n\t:subject:to; s=pp1; bh=Rzji9qKGrPdQU8n/vuCu/SOzBClb11q0e3ag7y2Rt\n\t6I=; b=cTmad9Aaa7IMs3MVuHomJCNXcJ316XXbhjwdtepMyJ/dSN7QKm3ByGw4p\n\t7ALzdNDQPaxhjK50J68fog1W72G6mmWXp8gE0P3qOJmch3lBPBCLAAhLcswK7nM7\n\t8S8Xml2D1VLCp4f/n5pOnIoGHMeMOPf8smBuFbg8seM5vQLzHj7CmUbMdPxoNqAY\n\tIkMM4sV3TjxiJM//TBvJ+ZNusK994HrJhB/GGsPBoI+aP8eLA+9/TlKXk6TWDBwM\n\tlFd/Y/LB5Lf4aytmVDnofq62RNa+FmCBM/4e+rkZfhxlTM1h/af8+yASRSOkAZqC\n\t11aMZs7dL2ldSYqXRL3qZ6N2iyZiQ==", "From": "Athira Rajeev <atrajeev@linux.ibm.com>", "To": "acme@kernel.org, jolsa@kernel.org, adrian.hunter@intel.com,\n mpetlan@redhat.com, tmricht@linux.ibm.com, maddy@linux.ibm.com,\n irogers@google.com, namhyung@kernel.org", "Cc": "linux-perf-users@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,\n atrajeev@linux.ibm.com, hbathini@linux.vnet.ibm.com,\n Tejas.Manhas1@ibm.com, Tanushree.Shah@ibm.com, Shivani.Nittor@ibm.com", "Subject": "[PATCH] tools/perf/sched: Update process names of processes in zombie\n state for both -s and -S options", "Date": "Sun, 26 Apr 2026 15:09:30 +0530", "Message-Id": "<20260426093930.47809-1-atrajeev@linux.ibm.com>", "X-Mailer": "git-send-email 2.39.5 (Apple Git-154)", "X-Mailing-List": "linuxppc-dev@lists.ozlabs.org", "List-Id": "<linuxppc-dev.lists.ozlabs.org>", "List-Help": "<mailto:linuxppc-dev+help@lists.ozlabs.org>", "List-Owner": "<mailto:linuxppc-dev+owner@lists.ozlabs.org>", "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>", "List-Archive": "<https://lore.kernel.org/linuxppc-dev/>,\n <https://lists.ozlabs.org/pipermail/linuxppc-dev/>", "List-Subscribe": "<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>", "List-Unsubscribe": "<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>", "Precedence": "list", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-TM-AS-GCONF": "00", "X-Proofpoint-Reinject": "loops=2 maxloops=12", "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDI2MDA5OSBTYWx0ZWRfX/8+LjuHDFXki\n dtU7ns7jpK1cb6Fdv94IFoUfNQcOg9pizjsRxGvYpafg53EHU9oYZh7P3+It2oIKofk7w6Ni3vT\n ls9+KMP5obKOyl4We5AYNUbrWHP39gQm3TK4xAFUbXzWvDrn8jB6Bu2d2HpqS9OsEaE4VEaMj+b\n 3bzsamCVHtvUupwB3ApzR/MPPYmSH4Q10SRRe+jCGCV7Unagbc3FqBi8IMwrukIBEs+3INkBnsD\n vkvwNOWBX7CnqehtTFgsj9zDXMyYA6FmkqHNNBCYiBzPVDyu90Dt66FclhSDFdwjMLLrwErq47+\n 5t0FbKrNHySDFl/hGHtSc6CshloSUKR7H82YvbDFVWkuXNx6lG55pavOAiPR2TIF6mO5dp+pQ6H\n Brtkv27nkcy1qfZ2xUliLzgQ3O3ICtOPKyWBBcm43s0PmztKwBn6Xh3JCoPqB5VEYmYb2GTF+Hh\n 1YZdXp2QAsh+7ATgu7w==", "X-Proofpoint-GUID": "VA2OYQ8NSMqxzS-t4DUpBhtFlq7NHEgQ", "X-Proofpoint-ORIG-GUID": "1qfgpkasp8_3e0-KPL2UHD0bI7UgIUOs", "X-Authority-Analysis": "v=2.4 cv=MohiLWae c=1 sm=1 tr=0 ts=69eddd60 cx=c_pps\n a=5BHTudwdYE3Te8bg5FgnPg==:117 a=5BHTudwdYE3Te8bg5FgnPg==:17\n a=x5QCPqNzQhPJdF4W:21 a=A5OVakUREuEA:10 a=VkNPw1HP01LnGYTKEx00:22\n a=RnoormkPH1_aCDwRdu11:22 a=Y2IxJ9c9Rs8Kov3niI8_:22 a=VnNF1IyMAAAA:8\n a=Fhc_E1mSigePmb3TSNAA:9", "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-26_03,2026-04-21_02,2025-10-01_01", "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n phishscore=0 adultscore=0 suspectscore=0 bulkscore=0 spamscore=0\n priorityscore=1501 malwarescore=0 clxscore=1015 lowpriorityscore=0\n impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc=\n route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604200000\n definitions=main-2604260099", "X-Spam-Status": "No, score=-0.7 required=3.0 tests=DKIM_SIGNED,DKIM_VALID,\n\tRCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,\n\tSPF_PASS autolearn=disabled version=4.0.1 OzLabs 8", "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org" }, "content": "In redhat perftool testsuite, observed fail for this test:\n -- [ FAIL ] -- perf_sched :: test_timehist :: --with-summary (output regexp parsing)\n\nThis led to analysis of \"perf sched timehist\" summary options.\n\n # perf sched record -a -o ./perf.data -- sleep 0.1\n This will record using perf sched record\n\nperf sched timeliest has two options \"-s\" and \"-S\"\n # perf sched -i ./perf.data timehist -S\n -S : Captures summary also at the end\n\n # perf sched -i ./perf.data timehist -s\n -s : Captures only summary\n\nThe test saves -s result which has only summary and compares with\nsummary which comes at the end from -S . Since there is a difference\nin these two, test fails.\n\nChecking the behaviour change in -S and -s results, difference is:\n\n rcu_sched[16] 2 4 0.013 0.001 0.003 0.006 33.23 0\n migration/11[73] 2 1 0.006 0.006 0.006 0.006 0.00 0\n migration/3[33] 2 1 0.006 0.006 0.006 0.006 0.00 0\n - :216753[216753] -1 1 0.041 0.041 0.041 0.041 0.00 0\n + sleep[216753] -1 1 0.041 0.041 0.041 0.041 0.00 0\n migration/8[58] 2 1 0.005 0.005 0.005 0.005 0.00 0\n NetworkManager[811] 1 2 0.089 0.028 0.044 0.060 36.06 0\n migration/13[83] 2 1 0.005 0.005 0.005 0.005 0.00 0\n\nHere 216753 is pid for sleep which is a zombie process. This is\nhappening in latest kernel due to an update in \"-S\" result.\nIn -S, the process name appears in the results \"sleep[216753]\",\nwhere as in the -s, only pid is present in the summary result\n\":216753[216753]\".\n\nAfter commit 39f473f6d0b2 (\"perf sched timehist: decode process names\nof processes in zombie state\")\nfor -S option, if process name is using pid, it uses different way to\nset it. So that we get the process name and not just Pid.\n\nThis change went in only for timehist_print_sample() function.\nAdd this improvement in generic place so that even -s option (which\ncaptures summary) also will have meaningful information.\n\nSigned-off-by: Athira Rajeev <atrajeev@linux.ibm.com>\n---\n tools/perf/builtin-sched.c | 14 +++++++++-----\n 1 file changed, 9 insertions(+), 5 deletions(-)", "diff": "diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c\nindex 555247568e7a..ee1b89a6af50 100644\n--- a/tools/perf/builtin-sched.c\n+++ b/tools/perf/builtin-sched.c\n@@ -2197,11 +2197,6 @@ static void timehist_print_sample(struct perf_sched *sched,\n \t\tprintf(\" \");\n \t}\n \n-\tif (!thread__comm_set(thread)) {\n- const char *prev_comm = evsel__strval(evsel, sample, \"prev_comm\");\n- thread__set_comm(thread, prev_comm, sample->time);\n- }\n-\n \tprintf(\" %-*s \", comm_width, timehist_get_commstr(thread));\n \n \tif (sched->show_prio)\n@@ -2890,6 +2885,15 @@ static int timehist_sched_change_event(const struct perf_tool *tool,\n \t\t\titr->last_thread = NULL;\n \t\t}\n \n+\t\t/*\n+\t\t * If the process name is not set for the thread, use \"prev_comm\"\n+\t\t * to set it. Otherwise the sched summary will have just pid information\n+\t\t */\n+\t\tif (!thread__comm_set(thread)) {\n+\t\t\tconst char *prev_comm = evsel__strval(evsel, sample, \"prev_comm\");\n+\t\t\tthread__set_comm(thread, prev_comm, sample->time);\n+\t\t}\n+\n \t\tif (!sched->summary_only)\n \t\t\ttimehist_print_sample(sched, evsel, sample, &al, thread, t, state);\n \t}\n", "prefixes": [] }