Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1796024lqo; Sun, 12 May 2024 20:14:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWEEdNgfV4BgSyeccQ6DAdc5WM3O4H5mguEu0xpbpOelZiaFM6J/TOLhlcBXle1PQXSwPo2ugzE4Lx2Sh+bjgQVJFrj8+mEw5bBkBoXHQ== X-Google-Smtp-Source: AGHT+IErG504xRWt4VRzNWY8oQcgfYj2rOqGcaC5246PEa1fsAaaFwRNI0hi9TDVvzi9d16wdIxS X-Received: by 2002:a05:6a20:72a5:b0:1a7:59b5:4276 with SMTP id adf61e73a8af0-1afde1df5b2mr8569012637.54.1715570043799; Sun, 12 May 2024 20:14:03 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0bf32701si80383345ad.310.2024.05.12.20.14.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 20:14:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177122-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="s/MK7enq"; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-177122-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177122-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id CC64CB20D52 for ; Mon, 13 May 2024 03:14:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B45C145B24; Mon, 13 May 2024 03:13:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="s/MK7enq" Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2088.outbound.protection.outlook.com [40.107.92.88]) (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 50E5C83CDE; Mon, 13 May 2024 03:13:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.92.88 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715570032; cv=fail; b=UPbu0p9UFn3Qy2xU+K1WeiKagI7VkNVhjQ1Q1l8Tihc+3raPf/DXMNwgpvu2v6iby2/Lelm+PKb7AH+W3s+0F7l2GGt5TFBlXdVw/pgmGetWABG1pa3BAnBo3Jq0WOY6ZLtqXulgbORRRIfwm/GPJfDaQBp2Qx3HCJP322CKU/o= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715570032; c=relaxed/simple; bh=prEjAIUEaWfsSjkVPV5LjZH0xjvq/Ur7FvJSG5CmeRI=; h=Message-ID:Date:From:Subject:To:Cc:References:In-Reply-To: Content-Type:MIME-Version; b=nWmKihzu8G1E9SWerw7Ao67sY3GlUGGFlXMk0UlYoF39vpBUhyODfwwRzNF5ac+lEbupyYhD8snajS8NbnaRAcbXYHZI72J1vs5c4UizvT0++/5ld2jFYe63vv8GsqxHOyBMZi7whcmXpMFW/Wp22166GYk8vpf5SeaT3WpyboU= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=s/MK7enq; arc=fail smtp.client-ip=40.107.92.88 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X1yhI3yx7uV0aiLc3Y51AhGTEiOFRY8UaZ9qZssJC7T3JqEnm2X+e/BueKwoMlFmvNZKY/vtH4cjkknardBIr6JojqEajKVuA9yPpQHbpuBBHVEqaLXZXcVclQHwC2wTUtcFjaQuIqk6iWrZUcxH7afdrWFQfWDQNI4yEIGMl79Fyh3p6WwJBw6+IW/ie+Xii3dfIIyIfiUMnH7zFwNfong9Mju/rWE27KtR+/mrkSlTmHVrFwBBCNdeiaxznjfFcsluPyEKV2Bofjim599eTNMPTW2Z0IhPpt/CCMUOLBhMZBEPhp4VWjpfGRyyTbCCt0+UWez9PQg0pnHTHouBRw== 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=q3ASHcL2fIwdiUBdklV6ExRh2y4y5BWAHnXVkd+yPDo=; b=hBqatbhwjV9v4nvLh2mQQsH8g1ettIMIVB7bQKU3Q+6HahubC58N3GgfAe2epEArM0nSYguaSMjMMuwT7PLzqT1EC+J/GtMGD9lK7EgerdhbuuLsPBvuE51OhZGjqnhQovwq9CGWoZ0WAF0JwtlIO7HYGmdSJRam0sntsOdJ4c0dzqkwj6rfzHTb2xy60H5nlX6gdIOIz75dkkDsR6ItbhSaEejPuWnZNRd2g82PoP2i8B8WIzZ5AWdMf75S3himSEMPxdO6Re8NbT208rUX353e1dSjzXR+OTdraTZWdyIoi35pL3eKciKzw5PJQL5xjmL+AMzvShwsVpb73NKTTg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=q3ASHcL2fIwdiUBdklV6ExRh2y4y5BWAHnXVkd+yPDo=; b=s/MK7enqEgul7z1lihp9xgk0Jp52jNETNH5WECo76afLwzbImFsgUGnuC4uG/nvIzWnE06f4VznMn0uxvv8VFHVlANnaXZv/QIbrl/ZSIFGy4BY7WiEI5hyv3i2VWIrKEqGtVtA0XdQ3vZS6+ajtUiJbe0XhSuwW+ESbTFz+UkQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from PH7PR12MB6588.namprd12.prod.outlook.com (2603:10b6:510:210::10) by DS0PR12MB8293.namprd12.prod.outlook.com (2603:10b6:8:f3::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.55; Mon, 13 May 2024 03:13:47 +0000 Received: from PH7PR12MB6588.namprd12.prod.outlook.com ([fe80::5e9c:4117:b5e0:cf39]) by PH7PR12MB6588.namprd12.prod.outlook.com ([fe80::5e9c:4117:b5e0:cf39%5]) with mapi id 15.20.7544.052; Mon, 13 May 2024 03:13:47 +0000 Message-ID: <284a27be-bd63-d86c-885f-756bd2d37adc@amd.com> Date: Mon, 13 May 2024 08:43:32 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 From: Ravi Bangoria Subject: Re: [RFC 4/4] perf sched schedstat: Add support for report subcommand To: Chen Yu Cc: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, namhyung@kernel.org, irogers@google.com, swapnil.sapkal@amd.com, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, rostedt@goodmis.org, vincent.guittot@linaro.org, bristot@redhat.com, adrian.hunter@intel.com, james.clark@arm.com, kan.liang@linux.intel.com, gautham.shenoy@amd.com, kprateek.nayak@amd.com, juri.lelli@redhat.com, yangjihong@bytedance.com, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, santosh.shukla@amd.com, ananth.narayan@amd.com, sandipan.das@amd.com, Ravi Bangoria References: <20240508060427.417-1-ravi.bangoria@amd.com> <20240508060427.417-5-ravi.bangoria@amd.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PN3PR01CA0129.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:bf::8) To PH7PR12MB6588.namprd12.prod.outlook.com (2603:10b6:510:210::10) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH7PR12MB6588:EE_|DS0PR12MB8293:EE_ X-MS-Office365-Filtering-Correlation-Id: 48eb129a-b38c-465d-b547-08dc72fab43e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|1800799015|7416005|376005; X-Microsoft-Antispam-Message-Info: =?utf-8?B?Mi9lQ1BGc0t0Slh6OThDYWNISkxDOGZRUFZTUFhkeE0zZUUzVS81ZG11NFV2?= =?utf-8?B?aGtRUDg4R3VpdUxxeGk2aFF6VW9ZRnkwTEE4TlpTaUVqZXN5TXFKQ2VlU29S?= =?utf-8?B?blBGUDc2djVDdkJYQnlsYVNsdkQ5T2lTRHh0WktVTHd5ZWJJQjB6REZTUSt0?= =?utf-8?B?WnF2RVI4bWcyVTBKeUc3UlNvQ0Z1aEZXbmhYS0I0L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1ZmRweC83TDJiNmd1bDB5NmRIRnAzRlZ6U3AzNVNR?= =?utf-8?B?akFId0E1dVRDQThnbzZYUml3ZVQ2clRNU2ppVzRpVlh1RG96ZUVqb0EzTFU2?= =?utf-8?B?Q0d1VjJvQlVpaGduTDg3bDRLdlk0SlJmc2J6cGgyQ3FHR2ErOUdEcUZNVzNB?= =?utf-8?B?alZQaUd0N0cxZmZOU1ZBdW81SjVtalBLSE9vU1dUd0U1WkRucFpIQnZVbGN5?= =?utf-8?B?QVc1aEJQN2x3b1gxVldBOE1MUHUveWlRM0VYU3FYcWF6MXQrcnQxeHRKdGxy?= =?utf-8?B?MU5DRFl6MEZpdnN5UHN0WSs4ZzJ3aHZYdno1M0l0V0szc2pZNytsRm8xZ3Ex?= =?utf-8?B?SGlzcDZaZnRqcjFMdC9Bc0VQL0FIeWFzb3dVUU10ekRPSnRHRUtubk9VdzMx?= =?utf-8?B?aE04UStScjBRU3E5cHZhdldVRityWWFULzlLcE80WmRxL3R1Qm5HV0Nta05I?= =?utf-8?B?ZVVIcTBDNmhXUml6bUhJUDB6cHJYYlpiWWw4bTZ1TW1mVU9iZVoyb2tVeUk1?= =?utf-8?B?a0FYOHJueG10ek4vYzcwY2JaK21Kckhoby9lczdZUGdJbFhYeUdHK2ZuRjJ0?= =?utf-8?B?OURXUEhWa0JvdWtJOVRMdHdnSTJ4RDZQeGdUVE5IWStzZkt2QjVnMFBnPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR12MB6588.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(1800799015)(7416005)(376005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?OEM4NE9xU3EzUjIvaXpUbHRRMXl0Zk9aaldoY0pWQjlaNDZYenNLTkUyMGVq?= =?utf-8?B?Z0I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JJYmc4K2Zxd2VpcndqSW8zRm8veWY5?= =?utf-8?B?NUlYNUZDaktCaThsSWpab2RUcEpnMU9rT0tHejJkak5WNHBUbWhvTGhYSmNG?= =?utf-8?B?L3phbkZFZ2tXbGVsOExHNG80aHFDSHczTnZSTitCVUNmNXVWcEZRay9aR2tG?= =?utf-8?B?WDdaYk41anVTSGpkSDAwVGtsbTlQTFJpNkxDNG90TWtKUUFXZFZub1dLTHA0?= =?utf-8?B?T2ZIbXlPZ3RoMzBoRFdXU0g1THRzaHJhSTVacUd6Q2I4SzBscTRnSTNOVENU?= =?utf-8?Q?U7owg2fNP8djX1cHXIUYuzkQo?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 48eb129a-b38c-465d-b547-08dc72fab43e X-MS-Exchange-CrossTenant-AuthSource: PH7PR12MB6588.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2024 03:13:47.2613 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QZ4guOqWpMZFq4YyY1iqML7Xsmot2M/zmpFT2zXXbdlE9QzBPGUkmORFeb5qcHY8nAlZga73Y+35SkscyktBOw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB8293 On 11-May-24 1:15 PM, Chen Yu wrote: > On 2024-05-08 at 11:34:27 +0530, Ravi Bangoria wrote: >> From: Swapnil Sapkal >> >> `perf sched schedstat record` captures two sets of samples. For workload >> profile, first set right before workload starts and second set after >> workload finishes. For the systemwide profile, first set at the beginning >> of profile and second set on receiving SIGINT signal. >> >> Add `perf sched schedstat report` subcommand that will read both the set >> of samples, get the diff and render a final report. Final report prints >> scheduler stat at cpu granularity as well as sched domain granularity. >> >> Usage example: >> >> # perf sched schedstat record >> # perf sched schedstat report >> >> Co-developed-by: Ravi Bangoria >> Signed-off-by: Swapnil Sapkal >> Signed-off-by: Ravi Bangoria >> > > I've tested it on a 240 CPUs Xeon system and it looks very useful. Thanks! Glad you found it useful! > 1. Just to confirm, if we want to add new fields for debugging purpose, > schedstat-domain-v1x.h and schedstat-cpu-v1x.h are the only files to > be touched, right? Correct. > 2. Although we can filter the output, is it applicable to only track some > CPUs? Like perf sched schedstat -C 4 record Yes, adding filtering capabilities should be possible at both record and report time. Thanks, Ravi