From patchwork Thu Nov 7 16:07:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepak Surti X-Patchwork-Id: 13866717 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E43A1D43377 for ; Thu, 7 Nov 2024 16:21:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=tZ/alzjkXRVhJbyU/UQMeY9dzEOt1z/ZPXPWZpB/Yhk=; b=0QgvpP2VmxF4sAm2ZsVgsX9RQz fVxo1YRV4mx1ixAq5Jn4FwAitOoY4Pw/S1OUkl9ngHrVqwZhsKXHsF9s36MXFz3wVQAcI8bbnSrTP C95g1nfh959bO4JyG0Hs+XwvbKgdL3owFlCi5vo/hYzNpYmIcWadJm6A/S5AROW/zRS6Gr72sC4/f W+nrjxWxP+q6kjk0x0QNDfY3oELJESZ+00OtA3kFKDD4/lcJ9+QDUVGpODqMQc+s5dHPTy/tGPJH8 UA7wV3uoUli6I88j7qlT4h1KoH0flbFIQXdI4Zum7czJeqGNAxRt4vZdjYUe1HrOU/vj9QP3c26pI rBIM6BTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t95G8-00000007bqS-2hSe; Thu, 07 Nov 2024 16:21:24 +0000 Received: from mail-vi1eur05on20620.outbound.protection.outlook.com ([2a01:111:f403:2613::620] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t954p-00000007YUg-0m4i for linux-arm-kernel@lists.infradead.org; Thu, 07 Nov 2024 16:09:44 +0000 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=XQBNgIDcqc71H6nfNsyCy9wAOMiAlQ98a8AUc1oij8y/uPcOFArlnrN75erdcuOnXGH8Qxe4sDWrdMpa7UgD1hRYWq4lNKdDwJUEjZmgDzH+/m4WrODP0YKOeInvHDGeuId1fb2cTGD6QFmWHHHxrxhcpJxvXIzmzRSJF7QCE2FRCGn7PawgkVxBmUrf3PXM2T+kPcrAyvix7p647LtyT2ssywSy7noDybV/lJpsPgOouCvZYBU/tgIKE4qehfYnQOLVkD3gGEL0yswAbnQcrCqBrWziNGOGlaOrUBYbbVny0gUM6XLV5udPf4Wd3zN3mTjqwEf5di9pxgoqi++mWA== ARC-Message-Signature: i=2; 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=tZ/alzjkXRVhJbyU/UQMeY9dzEOt1z/ZPXPWZpB/Yhk=; b=w0pfJKVB4tcyOWziUtqqYss/EC6w3zzFc95c2jRCWGrQReeGnDncJ0INOVAYXZDvkIjP79Mer3GfVo9F0ObwEExgACen1TWT+k/iBTY5w4CK8xawDJalDYZwpA/dhQ/9CHmXfj9g5i6cYz1AvrqwUn4Ljjly7DXN5ht0+3PJWa9EJLODa8MHdh6kWImZT/qEtQ0gypVxtf1wJTwHFmu1BWAG0azf8ZLKBajwUYFLF1Lq8GsgNVW5sS8Cb3Ez92CUWVpvLaqVdCE5isqsBnDxC7Av6tY+ZmIcweVFgc13VIQ4cbPviyYQpMVdkd2h9UpjUoOrZJBWwTxnp5Tm+VqpEQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tZ/alzjkXRVhJbyU/UQMeY9dzEOt1z/ZPXPWZpB/Yhk=; b=nZNWolRWhiTa4NrCUVQvV0rkSRp+2bU+ZHUispC3ljs4Cc9dEGpWHwi4JdZVS5nJ0lIgEK80HPa6SlsmFpl4YnsVIkaI+gzxyGR5UQDtadsMFhn127v2UcACBHj6aZhf1aEWL5bsAx4xPjs34qsi4Cm1dxhXS4zMm4M+oJASzs0= Received: from DUZP191CA0041.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:4f8::20) by AS8PR08MB8945.eurprd08.prod.outlook.com (2603:10a6:20b:5b5::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.30; Thu, 7 Nov 2024 16:09:34 +0000 Received: from DB1PEPF00039234.eurprd03.prod.outlook.com (2603:10a6:10:4f8:cafe::4) by DUZP191CA0041.outlook.office365.com (2603:10a6:10:4f8::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.20 via Frontend Transport; Thu, 7 Nov 2024 16:09:34 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=arm.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB1PEPF00039234.mail.protection.outlook.com (10.167.8.107) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8137.17 via Frontend Transport; Thu, 7 Nov 2024 16:09:33 +0000 Received: ("Tessian outbound 8223600b7a9c:v490"); Thu, 07 Nov 2024 16:08:33 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 573f6fff17491099 X-TessianGatewayMetadata: 4HNeXTWXU6Akrp+qb97tsQiIN2nyXEpUHsNm/72iCnoMtr5UU+T3Ytl6EhQreN2xOHcfKIuQZ1ZoTqRtusWxWAq6OUiPZV1Zy1htG2Gmx57XPwvDjPcbYd8jPx7vl66NbQFYyg7GUoY/knpvvBP67GO2ZkZZd8ULCZt5pHY+Ajs= X-CR-MTA-TID: 64aa7808 Received: from L2e95e45bda57.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id CBF47E2A-0E0A-4469-9404-D7318797DC7F.1; Thu, 07 Nov 2024 16:08:25 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id L2e95e45bda57.1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Thu, 07 Nov 2024 16:08:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=O9m3c+0tVFEz6e3QGwTnCMsM3CaPDsBdD5uxU4Pwhn2jJzMjauCDEErnGw6/cwlZ2/D5Og9ApJcPU7UB4rNJlZAsxZqOXrLw+LP4xNh1bqjposmyfZLZCXUusHlgouqKFWcTDwrNTnTc8WrCAIIDaSHmQlJnoRXUBmIQNo3SK82bNWOlZGz6nr8ZIwClXaLd6ftwVLTaBWGl/NYXIoIqKbS9aDrvUAK9K9+sHT77vL/UN4HpCUVWTeS82ThZHiV2Q0GbO0ZnB6kD6lNW+RwkawyRy9LVHZqueO9O6eg2BHLoNpBQnAvnAp11d43caiHdzkAnR+ePjFGsspkBznDJSA== 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=tZ/alzjkXRVhJbyU/UQMeY9dzEOt1z/ZPXPWZpB/Yhk=; b=JWp8RrmHHhjf23w91TijVpZgyeOA7ZQcBVQPIW/T5o6KbkU7XdPBGI6wLk9WB1zRnXI7OJaq5QA/HUhlhOy/aTLbcrjmqkwJ+8RGjYNAqIN7JyrAEJrrjXbhxg0WtPPLtnwMaSlOryMzpHfvBqeWSWH3v/29aq2K9BVmZ5YnJuz+bX3p3SXXh99Gm2g3Ls0fh2B3uaY7fXrfuFHZPdYQahXqcHFJv+X13ztmD06rMieVsRDp1VvLFvmqr8DTDk3alGR8k+Ss6c0L7uq5GKjJCPbD+apkFg/p42/bjplOyZbF504xEseN99+WVnr++DIoi5Vr8ziyZM+FFcKdMcQ09g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=infradead.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tZ/alzjkXRVhJbyU/UQMeY9dzEOt1z/ZPXPWZpB/Yhk=; b=nZNWolRWhiTa4NrCUVQvV0rkSRp+2bU+ZHUispC3ljs4Cc9dEGpWHwi4JdZVS5nJ0lIgEK80HPa6SlsmFpl4YnsVIkaI+gzxyGR5UQDtadsMFhn127v2UcACBHj6aZhf1aEWL5bsAx4xPjs34qsi4Cm1dxhXS4zMm4M+oJASzs0= Received: from AS4P190CA0028.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:5d0::17) by PAWPR08MB10239.eurprd08.prod.outlook.com (2603:10a6:102:367::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.31; Thu, 7 Nov 2024 16:08:21 +0000 Received: from AMS0EPF00000199.eurprd05.prod.outlook.com (2603:10a6:20b:5d0:cafe::52) by AS4P190CA0028.outlook.office365.com (2603:10a6:20b:5d0::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.20 via Frontend Transport; Thu, 7 Nov 2024 16:08:21 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by AMS0EPF00000199.mail.protection.outlook.com (10.167.16.245) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8137.17 via Frontend Transport; Thu, 7 Nov 2024 16:08:21 +0000 Received: from AZ-NEU-EX06.Arm.com (10.240.25.134) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 7 Nov 2024 16:07:48 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX06.Arm.com (10.240.25.134) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 7 Nov 2024 16:07:47 +0000 Received: from e132406.cambridge.arm.com (10.2.3.22) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Thu, 7 Nov 2024 16:07:46 +0000 From: Deepak Surti To: , , , CC: , , , , , , , , , , , , , Subject: [PATCH v1 4/4] tools/perf: Modify event parser to support alt-period-jitter term Date: Thu, 7 Nov 2024 16:07:21 +0000 Message-ID: <20241107160721.1401614-5-deepak.surti@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241107160721.1401614-1-deepak.surti@arm.com> References: <20241107160721.1401614-1-deepak.surti@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AMS0EPF00000199:EE_|PAWPR08MB10239:EE_|DB1PEPF00039234:EE_|AS8PR08MB8945:EE_ X-MS-Office365-Filtering-Correlation-Id: d1e194c2-f01a-4700-975c-08dcff4691cd x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0;ARA:13230040|1800799024|7416014|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info-Original: xVdQLaGkhG4+9fxwBWBvjoM0NOiXnoKS3bQz5gbUNR0ixDA6lDgm/tGbae4vTMIwwsPPbHTaS4phEez2htm9bdUVK3qwjTAxul1APTSeu/Om/QNZPA6lLvbrM2sWXXXb8wGI3xXTioFRR0so7dqwKpUTaAPmopJg6gE5xfO0KA97VXi/MyfLAwXqF8DHP+7XcCiK9GPPpMQ7Xu634Hr5x4IgfpVUm0JztynW0FpDfSkrNoMkMq94nQ0lsu7kj7ZBd+FRdKZE4ntFF/1/KXt3hlXJ3kBu3sGE4SDH15YM34lZdEid+75y20XUccdVhesuEReKD/BuiYd7esvRbo2xSolQVMDe8DQc7NW8XeIIlN+s1unuFV6PdidP8yC2lVNmvUqYogltXHH/g+fAV5HiF2DM7qagkzgR0MNi+xce4h4b02wSgLxy2x0cFw+1T1Mng7m5XEu+wV4uYxOLvzc/HwCTcS42LdfobwE0ulIKvY7eWleYcSDpUVqZtyIePl/unMlc9QYPLvgc/nJ7Pox65MsP8/lf1Ub7yzxlshCtYM1w1c5TRJxvraOS6fgdghuMFWYbGaJFREkU+LnBtE3g3RI1Q0HPprkycEyUiRpjVtKByY4OnKedBosjLOubTAKjehdlDx9tOK3cHkJg6PD1fFtEpzVi1PVdXo710buvSYjLIzll1ElsXm011mNSWISZbgO5PQV0ilnHMUHPgR/eM+jMKlL+8ZKOYKvSyK3T+aoBmx+373/qYFXR3GVKC05mG5nqUeJT4VKH4Puto0lnonMj5b1lqvbg1d+Waf+2mw1oUj+0GJ8iULTnf0jYpeRtlH8IEln8pK33VgZH7LpANFhvIQmi88xi74Vku32/FHSMm1LgQMo/P5BdopgZr9cIF0IQMfHo8R+dptoZRhXTYUl3gkKkRiZQZ0sICvwvAJYDp35d/PUEgGDKEKnkYhi2YNrh/JI5xfK0wenaLXBEqQ/LgT11BW+vZSWbdGdLTf03JOpepRYIe67NN7ByuyDh15HTNZuPz5pSnDgdSPzkzd9mVePgFdZM/8Xr0ebjWv/qot7Txb/05YzYqMwfUYH/XurOlXZrdONpvJkIt1AuCyw3SmiEYgewDCIiyHBBcg9+Sjxbb4Bs1maL6pvweH454XZFZTkUGVBgyfcYFswPgS7qoBnjjaiaWzy860LHs5PeaPdgw9f2nR6iHzpC1LaseiJZ46b7jLIYq99D4jE9XUoQ/oxtjsGHrtSHhsOnfgucgFMDrDFwCS2EKRvw96PaHuUl7Pc/jiWofNIgYt0/5SZtR/THK2094L6FvKA2ENy6zg4+e0kWCAM/2m/MR1yPQqIWQKHIZx1cvgoOFVOh3ei5q//ftgje0lG0Npoqaa8ndJSq0+Gpsa4sjJdDEEz4sdW0mWkHAgK2fesY5tEUXQ== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(36860700013)(82310400026);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR08MB10239 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:20b:5d0::17];domain=AS4P190CA0028.EURP190.PROD.OUTLOOK.COM X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB1PEPF00039234.eurprd03.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: b81b87fd-2e59-48b8-3a72-08dcff466688 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|35042699022|1800799024|82310400026|376014|14060799003; X-Microsoft-Antispam-Message-Info: Qz69eaf5j/sUMLBXypMpo9yZBP3be/axJLRPXi7IAbo21ElwQ+bSHQiyIPjWWEJo0rXWqBMq/P1Lw6K26vOGGbyln1gTZjVL7fg1JK0RSFyWTHvHrTteQXz4LsVYFBnFYQvkPfM0RwScssQTDMTjs4a7Rk3r4Wz1HaAmBDaX2jA/+vD6LN8aM34Ju5IPT/zDb7FRNl8CRyGgTMyzyPiRMUwDuA0BKSdUB2mP8tmaXrTslIm9TxgekxsZk0tWTk8D6G0ZfPy+j5lkmxcYO/ibEwrANjTDTpAZN4JQ3QVvTGHoTDO3COXLs8rsB5DazeKuhKvwf4cM6orNmkZxibjoWLdxkLbdk8Dp0TLwP3AWGuA+YMpK7oh76ob7v6Fk9onixIZajLSpsvpJH8YnIvEeAfnoxhO95Crop4UWIsiMqBtivQISbg12G+VyOgQZZha0yxnHyxMyv8j4bhxnLduh2BwJHTkF7UR1dRbWGM9EFIbzn3xY/T+wyDAAhBcn4LSa+f+h/s5goek+wlOQJ8dHZiwe9u4sIxr4zgyqWlm3jpGPPUUWc8GEtObotwhAoZfcqIFSBmoqS29DkdI7kWu7l3VHDI301fmgi6Xexvqv9z4xmy+xk4+Q/IDKN1ViPbdC+MjAGHDhku1hyoqxrpSeeKReu+WynKknREI3n+4+WBtlIFlT9L06Y5Yl0MzEaUURL3dWrYdmKoN75C9Ej6aQala+pBqbF38KT5+NGYEYkWhqEbwd0R8a24gVyV2LOMlE6q39/J26DT8aybcax/U3FJNJ3zU1vL4bRdtRWePy3zG/Oo6imyFVCGcxJTnBdZihE0v0ih3QbQLj7vUePhd5cETviNJbsKHoCVF+PgtK9/S3La+t1W+/fdNp4Ci+xZtgqNCQL05ySh9N4KugOMA0hnA5aN3v9QA3aE9Sk+7URpZ7oVeYQTSHi2WvLmsNMo1Ukr8vXUTD5XxkxsFdnFPQ6fpXyoNZZ2Uzt066YbBjnPrNBX4T+alJluT6rNPMZUoVZZzGlbLoHcg64hF2q5g5xTMzdL4OCBM5axWj1/K8BiTdg5YLjql/Jgnf0NRpx85YPxgdmPuttV5f7yREEhGBDlsyMTr8enofejtFA7l02aDopNapAh/n8eGpQCcUhT75mYZkPShAxU9n5OPd6CQi12L/NSKPrz9P1R8rTV+O2QYb+UWbGyTYlaT1d1aq2DJc9CMSo6qKZ8pM+7d1ychaerNbpX0FjCCeMJ6+I8aclReLHvVGxIMIxonSJoMCu/cg+zOREX9Ah1rd098n6XwcWBhgHPxizEhv9v5JgJD2epR6++W5znT1rKjKbKzYCe/va2yYNZC8yUoPcwKtazeu4eZtG3YLClIa39OxMciitdVdb3egZYhBBknhp67aI6yz+LHmhujrxwvN+PJPb1kS7g== X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230040)(36860700013)(35042699022)(1800799024)(82310400026)(376014)(14060799003);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2024 16:09:33.8575 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d1e194c2-f01a-4700-975c-08dcff4691cd X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB1PEPF00039234.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB8945 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241107_080943_408293_8742D8AA X-CRM114-Status: UNSURE ( 7.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Ben Gainey parse-events is modified, adding the "alt-period-jitter" term which can be used to enable random jitter of the alternative sample period. Signed-off-by: Ben Gainey --- tools/include/uapi/linux/perf_event.h | 10 +++++++++- tools/perf/tests/attr.c | 1 + tools/perf/tests/attr.py | 1 + tools/perf/tests/attr/base-record | 3 ++- tools/perf/tests/attr/base-record-spe | 3 ++- tools/perf/tests/attr/base-stat | 1 + tools/perf/tests/attr/system-wide-dummy | 1 + .../tests/attr/test-record-alt-period-jitter-term | 13 +++++++++++++ tools/perf/tests/attr/test-record-dummy-C0 | 1 + tools/perf/util/parse-events.c | 15 +++++++++++++++ tools/perf/util/parse-events.h | 3 ++- tools/perf/util/parse-events.l | 1 + tools/perf/util/pmu.c | 1 + 13 files changed, 50 insertions(+), 4 deletions(-) create mode 100644 tools/perf/tests/attr/test-record-alt-period-jitter-term diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/linux/perf_event.h index bedae424ba36..16dbeea5803e 100644 --- a/tools/include/uapi/linux/perf_event.h +++ b/tools/include/uapi/linux/perf_event.h @@ -461,7 +461,15 @@ struct perf_event_attr { inherit_thread : 1, /* children only inherit if cloned with CLONE_THREAD */ remove_on_exec : 1, /* event is removed from task on exec */ sigtrap : 1, /* send synchronous SIGTRAP on event */ - __reserved_1 : 26; + /* + * jitter_alternate_period: + * + * add a limited amount of jitter on each + * alternate period, where the jitter is between + * [0, (2</dev/null 2>&1 +ret = 1 +kernel_since = 6.11 + +[event-10:base-record] +sample_period=3 +alternative_sample_period=2 +jitter_alternate_period=7 + +freq=0 +sample_type=7 diff --git a/tools/perf/tests/attr/test-record-dummy-C0 b/tools/perf/tests/attr/test-record-dummy-C0 index d4f0546e02b6..0f3360c35a5e 100644 --- a/tools/perf/tests/attr/test-record-dummy-C0 +++ b/tools/perf/tests/attr/test-record-dummy-C0 @@ -54,3 +54,4 @@ branch_sample_type=0 sample_regs_user=0 sample_stack_user=0 alternative_sample_period=0 +jitter_alternate_period=0 diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 48723cea3a51..d3a4f52a7644 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse-events.c @@ -827,6 +827,7 @@ static const char *config_term_name(enum parse_events__term_type term_type) [PARSE_EVENTS__TERM_TYPE_LEGACY_CACHE] = "legacy-cache", [PARSE_EVENTS__TERM_TYPE_HARDWARE] = "hardware", [PARSE_EVENTS__TERM_TYPE_ALT_SAMPLE_PERIOD] = "alt-period", + [PARSE_EVENTS__TERM_TYPE_ALT_PERIOD_JITTER] = "alt-period-jitter", }; if ((unsigned int)term_type >= __PARSE_EVENTS__TERM_TYPE_NR) return "unknown term"; @@ -856,6 +857,7 @@ config_term_avail(enum parse_events__term_type term_type, struct parse_events_er case PARSE_EVENTS__TERM_TYPE_METRIC_ID: case PARSE_EVENTS__TERM_TYPE_SAMPLE_PERIOD: case PARSE_EVENTS__TERM_TYPE_ALT_SAMPLE_PERIOD: + case PARSE_EVENTS__TERM_TYPE_ALT_PERIOD_JITTER: case PARSE_EVENTS__TERM_TYPE_PERCORE: return true; case PARSE_EVENTS__TERM_TYPE_USER: @@ -1010,6 +1012,16 @@ do { \ } attr->alternative_sample_period = term->val.num; break; + case PARSE_EVENTS__TERM_TYPE_ALT_PERIOD_JITTER: + CHECK_TYPE_VAL(NUM); + if ((unsigned int)term->val.num > 7) { + parse_events_error__handle(err, term->err_val, + strdup("expected a value between 0-7"), + NULL); + return -EINVAL; + } + attr->jitter_alternate_period = (unsigned int)term->val.num; + break; case PARSE_EVENTS__TERM_TYPE_DRV_CFG: case PARSE_EVENTS__TERM_TYPE_USER: case PARSE_EVENTS__TERM_TYPE_LEGACY_CACHE: @@ -1137,6 +1149,7 @@ static int config_term_tracepoint(struct perf_event_attr *attr, case PARSE_EVENTS__TERM_TYPE_LEGACY_CACHE: case PARSE_EVENTS__TERM_TYPE_HARDWARE: case PARSE_EVENTS__TERM_TYPE_ALT_SAMPLE_PERIOD: + case PARSE_EVENTS__TERM_TYPE_ALT_PERIOD_JITTER: default: if (err) { parse_events_error__handle(err, term->err_term, @@ -1269,6 +1282,7 @@ do { \ case PARSE_EVENTS__TERM_TYPE_LEGACY_CACHE: case PARSE_EVENTS__TERM_TYPE_HARDWARE: case PARSE_EVENTS__TERM_TYPE_ALT_SAMPLE_PERIOD: + case PARSE_EVENTS__TERM_TYPE_ALT_PERIOD_JITTER: default: break; } @@ -1323,6 +1337,7 @@ static int get_config_chgs(struct perf_pmu *pmu, struct parse_events_terms *head case PARSE_EVENTS__TERM_TYPE_LEGACY_CACHE: case PARSE_EVENTS__TERM_TYPE_HARDWARE: case PARSE_EVENTS__TERM_TYPE_ALT_SAMPLE_PERIOD: + case PARSE_EVENTS__TERM_TYPE_ALT_PERIOD_JITTER: default: break; } diff --git a/tools/perf/util/parse-events.h b/tools/perf/util/parse-events.h index f1482361321a..9b9649da1932 100644 --- a/tools/perf/util/parse-events.h +++ b/tools/perf/util/parse-events.h @@ -80,7 +80,8 @@ enum parse_events__term_type { PARSE_EVENTS__TERM_TYPE_LEGACY_CACHE, PARSE_EVENTS__TERM_TYPE_HARDWARE, PARSE_EVENTS__TERM_TYPE_ALT_SAMPLE_PERIOD, -#define __PARSE_EVENTS__TERM_TYPE_NR (PARSE_EVENTS__TERM_TYPE_ALT_SAMPLE_PERIOD + 1) + PARSE_EVENTS__TERM_TYPE_ALT_PERIOD_JITTER, +#define __PARSE_EVENTS__TERM_TYPE_NR (PARSE_EVENTS__TERM_TYPE_ALT_PERIOD_JITTER + 1) }; struct parse_events_term { diff --git a/tools/perf/util/parse-events.l b/tools/perf/util/parse-events.l index 1972a5a696ef..c22e64407d64 100644 --- a/tools/perf/util/parse-events.l +++ b/tools/perf/util/parse-events.l @@ -332,6 +332,7 @@ aux-output { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_AUX_OUTPUT); } aux-sample-size { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_AUX_SAMPLE_SIZE); } metric-id { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_METRIC_ID); } alt-period { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_ALT_SAMPLE_PERIOD); } +alt-period-jitter { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_ALT_PERIOD_JITTER); } cpu-cycles|cycles { return hw_term(yyscanner, PERF_COUNT_HW_CPU_CYCLES); } stalled-cycles-frontend|idle-cycles-frontend { return hw_term(yyscanner, PERF_COUNT_HW_STALLED_CYCLES_FRONTEND); } stalled-cycles-backend|idle-cycles-backend { return hw_term(yyscanner, PERF_COUNT_HW_STALLED_CYCLES_BACKEND); } diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c index 7615d05e389f..c7a5ee61c436 100644 --- a/tools/perf/util/pmu.c +++ b/tools/perf/util/pmu.c @@ -1739,6 +1739,7 @@ int perf_pmu__for_each_format(struct perf_pmu *pmu, void *state, pmu_format_call "aux-output", "aux-sample-size=number", "alt-period=number", + "alt-period-jitter=number", }; struct perf_pmu_format *format; int ret;