From patchwork Mon Nov 6 13:21:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moody Liu X-Patchwork-Id: 741698 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C120AC4167B for ; Mon, 6 Nov 2023 13:21:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232406AbjKFNVa (ORCPT ); Mon, 6 Nov 2023 08:21:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232000AbjKFNV2 (ORCPT ); Mon, 6 Nov 2023 08:21:28 -0500 Received: from AUS01-ME3-obe.outbound.protection.outlook.com (mail-me3aus01olkn2149.outbound.protection.outlook.com [40.92.63.149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9001F94 for ; Mon, 6 Nov 2023 05:21:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GZhKyOCvzGuicjCATXh0DAISkHzI0FQS6jH0BP5ki/lZVtW27vR+vvemdlWpCpTLSoKI7HN2JxNH+6CFibVNwYC4XGkn/TYbq8uicWxVHAoOZ6xjZefaaDWCDTVlTEOjThjRyjpSSGcONHB26ets76jvWsU6CM3E5/8mx9gBEgJ7Vtjea8yMsKZwGtPMfw02w7zjo61Y3nM8j4DFe2Wa8dbBnpqKpUf/Mf7y1Z20YQf3HUZs+fSrpTGRic5aOzOX8PnCCuK1WkLKBWlSxNMh+z3fkwN9ZeCZCZ3n87Hw9bk0Vvp03MXLeevnNO0QW+CT31W9/rd82zsEF7Th1By78Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1waEGewgtpNloL5Ezoanp4kGnZMKF16AD9erxUPZONg=; b=gv5ukatwPEteNqvP/yZT5tbet2fAt+JchgkgAXkMG6RfhPAPwARZ2OnEGBReVVreOX7zs1DPb4zsJjpSnIvv8r6V22ewCpRxUGjpA+h2QcnEpr4HPwuY8OyC2edklB0T0t+kYitXWeG/xGFoRkfb92wQHmhhpM7P8RZfNHADXfSP1q12xKpi47J/RWujlz4CgTVqijiaxRvBr4eeOla2eKI/UeTkhhtWxu7hvK379fTAZWXT6j0618Y5+at2r9pL7X/PcxQI8K9mbJtFBw2s8D3qvFSnQlbIs1SvJHgNCotKSSG4d3ne64vBQdw018vS1DBC3F3kZ7+c65FK3gERIw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1waEGewgtpNloL5Ezoanp4kGnZMKF16AD9erxUPZONg=; b=C9/SOYJqj6YqACoePyrEPNNnN9jT6jweOIvs3UUr42FK521TAHZg4gzHCXyVVsKXsCi/E9pQl7osNqtMKTNnNBn3ovx6igPUvvt9bO11pmrOle9EmPdyXLTyEyUgvvk4Wi2xAhNeZV4Ff7NJSrz6RL5jzNOh09UD1xxE/O5uzrBczuOV+iP60MvO8HQy6ecflstA/MCFL+6tBhG16TKWA+Vdny6SasQ6sac7aiXceScuCkXch97t5uqsi9PvmZyohtaf3tehmNrkaZgEpZjwa8sOxLRYczeWr5yyHFwtXJ/UJZBla/L2Z70ggafiPoAlwzTjXJR5/ulO56JESEIjOw== Received: from SY4P282MB3970.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:196::8) by SY5P282MB4313.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:26d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.27; Mon, 6 Nov 2023 13:21:21 +0000 Received: from SY4P282MB3970.AUSP282.PROD.OUTLOOK.COM ([fe80::836d:df8f:3c3c:cb20]) by SY4P282MB3970.AUSP282.PROD.OUTLOOK.COM ([fe80::836d:df8f:3c3c:cb20%5]) with mapi id 15.20.6954.026; Mon, 6 Nov 2023 13:21:21 +0000 From: Moody Liu To: linux-pm@vger.kernel.org, luoxueqin@kylinos.cn Cc: rafael.j.wysocki@intel.com, Moody Liu Subject: [PATCH] PM: tools: sleepgraph: fix a syntax error Date: Mon, 6 Nov 2023 13:21:04 +0000 Message-ID: X-Mailer: git-send-email 2.42.0 X-TMN: [5A4uUqCicOo0+QNJbUXDnWPm48bPt+WR] X-ClientProxiedBy: LO2P265CA0258.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:8a::30) To SY4P282MB3970.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:196::8) X-Microsoft-Original-Message-ID: <20231106132104.34731-1-mooodyhunter@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SY4P282MB3970:EE_|SY5P282MB4313:EE_ X-MS-Office365-Filtering-Correlation-Id: 009cb6fc-deac-4b40-e9a6-08dbdecb43b1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BU6Q9wYYyJ3DBvoTXbrWjHw3m28HEw9ELTf00CM491gRXIbh2IxQixfR+r+PHwlhXQ9blXrVpFX5iWbBHHm86pAeyLxXKqnh5cJq0NPZ8WGioUD8B/WT8eqUgOts1uUj21KsrGTg2Av6J8VGCOVAIf86TwAOn+KxGbGGmngwKNS+9yx1S0FRIR3KY4mWWbXpyd3gwC2yfHgs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X4HxB9zsyI238gvqcnACtekF8ppuMg6QBMu78I1eI1QSczaFALr9a21K0ROkNNIW/P4OP8Cj3ypzHCDMExJbQnUIToxDI60tV1La8LXMOCCqiz3n2TqyZyXyTpMO/7LcwJfLJd6mBxhDIQ6rC6F/mXrvSWp4kcDTDcAS+vI3pMkKkNWlWIbE+U9scYDsau80maznTpurwYxhJhGuPf9SOd1rTtxl/o6+6IoDLXKRs5GnakDEYSiSAq2R11kZICGFDl3m4JbSHAgk6JQFnttpG9/yHgKna3Gd1ZWICHPTbhN0ujMmb9POgDauTaxZAGGbQzBfSt/DJzY7SmYuoKtBNu6CUCvQXOgGulawZSGgae+vPd3gmpgmKnWtw6/ogdamve+AIgGZrtDkEgo3/YbvBGCqrLDXpGGKzwXJUPxfnQ5M8X3SXqimrg88HZQ+4omNX6Fx0hxRM0g9eVDMbPg6rCo4mEVK5d5vBbXt3Gb/XopvpysyxCavlYlp1iCZrZRiwJIcwRKLfiNsfQEF5izxkVTlWac3NduRVQLy9yaguEDix3YSrkbSHzpxXfsNoP8l2L+JHF9KwVDYO2FMWWGETGx5gK//wRrGIFVJ3J1iTBmwWPR0qyaz5rVGgw4GJLEKQbvCexQLLH0t8jf2YLQWsqq+B+MeM= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 009cb6fc-deac-4b40-e9a6-08dbdecb43b1 X-MS-Exchange-CrossTenant-AuthSource: SY4P282MB3970.AUSP282.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2023 13:21:21.6395 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SY5P282MB4313 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org the elif statement has an extra close bracket ')' Fixes: 34ea427e01ea ("PM: tools: sleepgraph: Recognize "CPU killed" messages") Signed-off-by: Moody Liu --- tools/power/pm-graph/sleepgraph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/power/pm-graph/sleepgraph.py b/tools/power/pm-graph/sleepgraph.py index 4a356a706785..40ad221e8881 100755 --- a/tools/power/pm-graph/sleepgraph.py +++ b/tools/power/pm-graph/sleepgraph.py @@ -4151,7 +4151,7 @@ def parseKernelLog(data): elif(re.match('Enabling non-boot CPUs .*', msg)): # start of first cpu resume cpu_start = ktime - elif(re.match('smpboot: CPU (?P[0-9]*) is now offline', msg)) \ + elif(re.match('smpboot: CPU (?P[0-9]*) is now offline', msg) \ or re.match('psci: CPU(?P[0-9]*) killed.*', msg)): # end of a cpu suspend, start of the next m = re.match('smpboot: CPU (?P[0-9]*) is now offline', msg)