From patchwork Thu Sep 19 12:08:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13807664 Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011063.outbound.protection.outlook.com [52.101.70.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C644019C57B; Thu, 19 Sep 2024 11:59:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.70.63 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726747171; cv=fail; b=XPDMgU61q+pP2W5KcNMq9A0erD4aR3ZJs59D/fFYi5/eSjxfCIznTZahK+tdPO95i9J5chOxF+QjkExw6MjUojsvedKDT9u3ppDyB1d3NXARv/G97JyYYZbbSZDSJtsjnSSllSyxD+wC7YaK7Cy6+nJCgszyw72Nhaas1gWSPjw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726747171; c=relaxed/simple; bh=tobdd50oTWYjlKp1IeFnmJH57pldQpf5ZAnYeTWDnDg=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=u/JcxeuVfad1GVWXmLPyHfZHMkNQsWmHkOhEcP43yBAoZ+2GnJiVCwjwHDomIFRMsPgKGfjyAe3CuJOIJLEQLCoyP3NxfLRp5Q+NI0W8ntvLZAECr5xoulLFMWeamCk9GQdllHuj39dgpMpQ02nd6FFsb7hWEO6/C69Yj7YYo9c= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=OoY2tOPd; arc=fail smtp.client-ip=52.101.70.63 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="OoY2tOPd" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XBBY3huheu1YEtwh4gyxNDoC4VrRFWUSjf1vu6fMqyu45LTUNFi9GoUYvG1FlFS5gGPAtox2AFq8LZiQo/XEunIdHsJVWnO9QjvBXxGXQPYJ0f7uAehNnbSmuTw6NBWncu2aBWgHn8WPmyu8ttFXdKEOgeAitSoJdv8TY0pR1tXBNJ16w7tbNHJDmjwvISQI0B/pv/HyvmfawY6vy2yd1irpbBddyxsxKsMoKqwMoqTA0OF0DwCXj7H5iz8TZ0J8FpdhzDvLYij7BA512W4RaUH6C+UT60DnIZ97ht81oXro9KGZWbu2WKDYIXX+axmN2V+uaGfoxEd9DhC8UASwEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=ry/U4jd87m1zq5UVTw6OK4Z6KAovKekEmLz+IfCrRdw=; b=PlHn3AK/VuZavSs0108T+zmmqw0AaLC8iur44Xmg1PaJZh6CuTw5Alik9cmUkCayb854uFVR0M9bU/RWWHQwV6NuWyJhHkG1+wiReYlDjUrSbdklgx3GoeCEmImC5Cn8C8fvQ9Dt8JhdQcVGDrW9snYkbe7htfztQZqITQu26Q83IBx7HzxO6n/zcMqLGT9FEnFPeTTIkY5HFFFhdPGnNdhKgWWHxJ6jzO6HRIXXoBAzVZH9FTKyuBmhpduWe+BAW3eXMD3Oiqedj0zT9hEgusl2SBIlXkfsnK8HQvUMX0MSReAJU38vRCWR+UUfsZiJNliuO+vt/iPmSfQ/qPHqRg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ry/U4jd87m1zq5UVTw6OK4Z6KAovKekEmLz+IfCrRdw=; b=OoY2tOPd1/lAoDWqREpgqu15YjYWwXr6sbNA5vIMoGCvI8rUWFudPUazu9rQPfJPZNW3QwP8acdAFaQk2FHvVDqFGp8o5m2+xYERIlf7rb0c6AoRGgX0fTi+eOYqADHrG/tgBaxwQLxjqX54s0jQiaLZu+7ZNTIajZRBQmHuKauAnfbESF5uWxSq61Fq/HOSBZMakHS8dbi35++HtwEYU4TAUXBhGjyHmmksLGPGPEiuW05CzPNSv/UoZdAfPqprDO6BU4v/EEDP1ZkzKzEpWt6IoKPic3N+grUG2qcW62VqbY0+kHMJ5gtg7e2Br2TC0AF2EX6tAgvZVcrKI4kWTw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) by DBBPR04MB8041.eurprd04.prod.outlook.com (2603:10a6:10:1e2::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.21; Thu, 19 Sep 2024 11:59:26 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%6]) with mapi id 15.20.7982.018; Thu, 19 Sep 2024 11:59:26 +0000 From: "Peng Fan (OSS)" Subject: [PATCH v2 0/2] tools: power: cpupower: Allow overriding cross-compiling envs Date: Thu, 19 Sep 2024 20:08:10 +0800 Message-Id: <20240919-pm-v2-0-0f25686556b5@nxp.com> X-B4-Tracking: v=1; b=H4sIACoU7GYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyjHQUlJIzE vPSU3UzU4B8JSMDIxMDS0Nz3YJcXQMLQxPzNEMDk1RzAyWgwoKi1LTMCrAh0bG1tQCtQjtZVAA AAA== To: Thomas Renninger , Shuah Khan , "John B. Wyatt IV" , John Kacur Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Peng Fan X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1726747701; l=920; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=tobdd50oTWYjlKp1IeFnmJH57pldQpf5ZAnYeTWDnDg=; b=Q0A18Nl0UE3T+bYHSuFE9NN4h9VP6TrC/gx0/U4MuhSX3v0Qv1DUK1htO42Djj12fITDxes5b I9nRpZJ0olHC/luqnVKjEuLZ0CRslS7Fv5puG5dqhtKtGyVxmFVXoAb X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI1PR02CA0019.apcprd02.prod.outlook.com (2603:1096:4:1f4::15) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|DBBPR04MB8041:EE_ X-MS-Office365-Filtering-Correlation-Id: 50a55c62-c00c-4bc0-4e36-08dcd8a28235 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|1800799024|376014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?+feuhn4Ti8IYk/wJkxdQ9imLCJJtN6C?= =?utf-8?q?QP5Ei+8u9AruUzWf958ZKn6f+9q7hKV/KUOlC+AifXSJ7eyHQQbT7qM5fjla/6Qjr?= =?utf-8?q?KubIE0L6+AOB2a4l4m6kVFR+gyiC+22MbbudodgTPkoNzVX0dVWfUpzVdyGoOMKg5?= =?utf-8?q?EtoYpAYz+E8pVfH0zpaH/5Xuw8emS5zSrH1bcCzXLaAqdI1/MG3R2tLJ5KbCCJdjr?= =?utf-8?q?kWX0BLY9Xms7XW6yK6wZFYohrNWeadB5UPvw0+HEtTL+6AXPlwIb3/q7SwHsvNEDs?= =?utf-8?q?Jw2BcWBTKPcca47T6F+/mtKvlpEHmh2m41clXiruE4OEUVdUIMKYDVarrCnwDvKJR?= =?utf-8?q?giZM2fQwLxt/0fv2z7HNu91doqLGB/sQkE3qTfb0Yp0NMlza1BAnKcVfTjGqkQSxi?= =?utf-8?q?mwIioZcgwdbjMdeQ4XeHj+XHsqztET85W/6eEJ8nPumnp24tc6N85TOyD9TqPepzD?= =?utf-8?q?a6dbNyfgZHE2ksjJ6e2nZTxxMjd55je2xY2SoC1zifoOowppIzeyWLkDS7nV1hk4A?= =?utf-8?q?PuA55o0EaU5+8lEd39UfY7VaRtK5XM5Sws2fg32It4jOUmFOVbEFK/jYDeiZYqpVu?= =?utf-8?q?s8g56r/XxEMgjKGDo0MBobOonHwXhL04044LVNaNUAZ8hKjhOIv/FdWPbv5ZDtfhP?= =?utf-8?q?nAxTXAcJE7Eff3iSdKR94//JZ0+F4+HNM9XLxiTZFSZb0kgVbVfRpEkWAxhjlB8YM?= =?utf-8?q?4zyos52c5Hiw3sRxG6/Vzu2y9Nvv4q47o51xivPlIsq+VkTPkKZb6EQt0XNR/vJZX?= =?utf-8?q?WVrvoh5Kuh+blw8/WV2O5hY0fMWi8VMmbiLmG1F/xqssKKMH7D5sYJQWsjvzoYdYl?= =?utf-8?q?XCCm7wLNyLAT7sJe/ewAL/wVlnMmIaEZKdSF9JX5XowZkWUmOeSouoSfYV1FpcvYE?= =?utf-8?q?tFQH/GegVElW4HwirvV33MsdrrhOSFMkkutCx6nT0ZPlwbWtsIUbZC+j5hyHlpdnz?= =?utf-8?q?tXBfhlSBo2aPAm1TvOcFLKRiTMzJN+bXsrDqtObDTxP3NAdQC+hdbGlLJiVspLLk/?= =?utf-8?q?coCgFCM3gtcBe+sA1j0ylakXN2tCHveSjBDJ9icPLTUy1XG8SYwD2JJrgrj/wgxGm?= =?utf-8?q?L5sx0sMMJ5JCf/wmPOYLgd07mI0e3O42pOT2NGW4LI9oDLjeV1t9AjtnbvGHYjZak?= =?utf-8?q?L6hATg/UWQwtjoubZjMHDetBzsVzEfDehvOzryG9uSZ9Tiud7x/65rBsuH9bLOvGy?= =?utf-8?q?OI6/I6EUZyQT91C37TtEQuUF73ZJugJBFJ0pbPkpVV1MgDPbtjlmguB1YOwl2Uvyt?= =?utf-8?q?V/sT4OSbk+3ap/7CHfdT6LNPKdGiIefelUjEFSdwmMzrNIm0BAN5WNH4ghRMRCmng?= =?utf-8?q?6fCU0pxbXABat7StSGKwkPj5JLTjS2E0SA=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8459.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(52116014)(1800799024)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?TrXIRJZNf1cljWOwSYWG3T6eoQFF?= =?utf-8?q?LIpqW2XOgo37XIeTNNF17xH7jU3vnQwzUSa5pzL/4v4OGvrW+NNh2gA6fBMjHwN+s?=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noVV280ORK9Y?= =?utf-8?q?yAZliCkUNGe0NpXCAFVHHRJXq3rLnWvTBu8Vnhsj5cS48nYZDZObOb3FtLopiIE31?= =?utf-8?q?V/sCrPFobrX3VtnwwLAsZehvgyXUwWhR/813ukuMXW0PVmCv5hLQ3aR/2+pvKjQmA?= =?utf-8?q?UObUdzL9FqTBCQBeC6sv2MOPsbWckuls/AgrYK1GVoTVfvMO11eUaulXF7arnEQTt?= =?utf-8?q?3jrgSkVQQohn6jDbyOrNx+6yjDmxH/+cLY0i/j984+a+4cBguU1XdTQUNiVZeQHp4?= =?utf-8?q?qhP+D2ETaqFrByrgOsdoJZ+pfY1tGsSf0Uidyn2ZuOjloynTmzKt+DU6INPIJiX+t?= =?utf-8?q?0rnSUSnV+mSCXmDqcZeupBMJ/N473XtTVe2Uiq/WQh/fw2/2Mo9qHT9c//EyjDFLq?= =?utf-8?q?rW4T2IAiq4vZwlRWN1B9khtahjDhKAwkA5nHnw5FMCxeq5D4THrexWNR5GKyOdvIr?= =?utf-8?q?hOpSbhpG9Vw2oLeL5YLChzramgvy0oiB0I7/WRbIaTJkRiVDpbQjKetfpjvaj8diM?= =?utf-8?q?6NNlQ074ghyP5w9mg6wUSHXEO0UKC+RHZUO9iSIlG9i6gzq7mpq4hQfKWdOkbfAvv?= =?utf-8?q?KEkL++11ECLd?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 50a55c62-c00c-4bc0-4e36-08dcd8a28235 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2024 11:59:26.3043 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: AuuS1EEQ4uEJaZhtoFzKhR9wDfdIV5aq4p4JxNwdvMTDh1J5lL8dh4vEzMhlM2ff38oO28fJEYqqDfH/eh5ZXQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB8041 Two minor patches: Patch 1 is not relevant for cross-compiling, but done when I playing with cpupower on ARM64 boards. Patch 2 is to make it easier for Yocto users to cross-compiling cpupower tools. Signed-off-by: Peng Fan V2: subject update, commit log update in patch 1, 2 Use strerror in patch 1 without patch 2, need update Makefile with 'CROSS = [cross toolchain path]/aarch64-poky-linux-' --- Peng Fan (2): pm: cpupower: bench: print config file path when open cpufreq-bench.conf fails pm: cpupower: Makefile: Allow overriding cross-compiling env params tools/power/cpupower/Makefile | 12 ++++++------ tools/power/cpupower/bench/parse.c | 5 +++-- 2 files changed, 9 insertions(+), 8 deletions(-) --- base-commit: 6708132e80a2ced620bde9b9c36e426183544a23 change-id: 20240917-pm-08147f104e70 Best regards,