Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp70719lqt; Wed, 5 Jun 2024 17:54:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXnQvBv7qp5ArN6ZYw9tBT4Q87xh/H/XAml4TWsSeo46lK0MBzWhrfbzNTHBXyu1ooqAThg11Li9iSxD+2UiAKV7fqX1KsRnbwn+QTBnA== X-Google-Smtp-Source: AGHT+IFQ/EwzKp+sOgdzKty7XDvqfwpJXsBl5CSJpyJqsTV835sQmwunaqKTk0xXgVSE9zAe5jAO X-Received: by 2002:a17:902:ea0f:b0:1f2:fb89:1d3e with SMTP id d9443c01a7336-1f6a5a03d96mr55498235ad.7.1717635261364; Wed, 05 Jun 2024 17:54:21 -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-1f6bd7e5852si2247985ad.408.2024.06.05.17.54.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 17:54:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203467-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=QazOTMB4; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-203467-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203467-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 5B183B22221 for ; Thu, 6 Jun 2024 00:52:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98114D528; Thu, 6 Jun 2024 00:52:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="QazOTMB4" Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2080.outbound.protection.outlook.com [40.107.96.80]) (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 9CDBD748F; Thu, 6 Jun 2024 00:51:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.96.80 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717635120; cv=fail; b=F8gURsogN5mbhntY5wI08QHPQPZ7wW3ZdupqdzSrr3m5EUznas4PZi+xp3DsvrCJi/JMK9Vtn4OWehK5t2R94xizeILSVtDcQziflZGMxztZRwYjm/KyPSx5vTe/4EBbGMyjyUAA3ki5nJN6IHlj9mYlFxpz9TTLFTwgu8U0lCk= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717635120; c=relaxed/simple; bh=i26ZNKjA5/26pTI7gMSKArdLqtUA+25UTzb3QW+Hhq4=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=eMr/wqphjZZYLxADBhTGz+Zulp4kIlWfl9vE3QjqjSlb+prX6hTgFrMW/MiJTyGXWrgKA9hKLCDRst++OOyz9ygGsslUjE8AdKQwIQuUQ4vqJNSzj7vD/sGiqtItCuL7qtgE457sZjptOqEFD3hiOl91kop0/LSlG4/ygK2x0uc= 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=QazOTMB4; arc=fail smtp.client-ip=40.107.96.80 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=XpkxLbM3a23A1hmcE/Rf8+6t/tGm3jHkG6iaPE6+ObktidyFTdGywPw3cJLuXbw2r6FNCzi2ImSHqPnRzRye/2R0HQaILJz4q9DH7KBV94UpY7dGF7JyPSbV/gjN5sdQ8mbAI/mPv6bMouAFOJUY5poLPLHISaVOJRgoRGJEihlU+yh6DOxfEkkdmmZ+vnKcIJXLI1va4OwJ5RGIiuvyBgtMG6MzcVnmwjyPb40bmID1wDyd/xP2rUUDEieByoUaZeMb/FG6+CAKI4C6bp9TuldPhrEF+kjIOB4YOBAbfJgN3zU/JsFAoo/OMbqddZsrfFNzCk7tmJs3tKx/FpWmxw== 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=RaiOYnp1ZQqOIkxg0wDszBgy0YlOZ6KL4syzDfCaeaQ=; b=VTBglN4yAJ9hZefZwTVZlg/CrIyjGarHUeR5HZh8e1r/v+5fi4dC2wj5ZqLHsNxnJAWUql1Ts48Ytvr3sthPrxoMtFZz03HwxUYXYnkZ4ZpI2ATeoiJ1JbuNqrhHpPCV8LpNNiMCeKt3T1c4+g9oM6Slo/NrZ8A+3TNEXY85Xuo86Ie5/fRsp7qobr17iq4wUxOgilVXIUNX+hakwhkV+Q/DaBC5DB9j27aW+L6R/nHw2m4n154PEyghGsu2XiZvRrfwL5ZkyksY3N4ATBKMrh15+lLuQTMtLjRNu7sKBznyC4u/qLPXhgK5DSXPMl6Qknv2EFHOiG9F2Yhb02UELw== 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=RaiOYnp1ZQqOIkxg0wDszBgy0YlOZ6KL4syzDfCaeaQ=; b=QazOTMB4Q2ze62S1D6va6p12XlfdgKBbNkMx/sTccaIS6asBO6qJwVBNzBL2T19U4OTZD8YziCq8vMA/S2PGHV/YST2l30ImOxDC8T28du8UF/TKb73Q5KQHIZQo/WZ0bzgY10oNRxfVLIfl6K+D4fNxMyfv4ROXgeRU7+l7vNE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from MW3PR12MB4553.namprd12.prod.outlook.com (2603:10b6:303:2c::19) by LV2PR12MB5943.namprd12.prod.outlook.com (2603:10b6:408:170::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.27; Thu, 6 Jun 2024 00:51:56 +0000 Received: from MW3PR12MB4553.namprd12.prod.outlook.com ([fe80::b0ef:2936:fec1:3a87]) by MW3PR12MB4553.namprd12.prod.outlook.com ([fe80::b0ef:2936:fec1:3a87%4]) with mapi id 15.20.7633.021; Thu, 6 Jun 2024 00:51:55 +0000 Message-ID: <3d13b669-ba74-6c63-8591-8e4eacd6524f@amd.com> Date: Wed, 5 Jun 2024 19:51:52 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Reply-To: babu.moger@amd.com Subject: Re: [PATCH v5 00/16] selftests/resctrl: resctrl_val() related cleanups & improvements Content-Language: en-US To: =?UTF-8?Q?Ilpo_J=c3=a4rvinen?= , linux-kselftest@vger.kernel.org, Reinette Chatre , Shuah Khan , Babu Moger , =?UTF-8?Q?Maciej_Wiecz=c3=b3r-Retman?= Cc: linux-kernel@vger.kernel.org, Fenghua Yu , Shuah Khan References: <20240531131142.1716-1-ilpo.jarvinen@linux.intel.com> From: "Moger, Babu" In-Reply-To: <20240531131142.1716-1-ilpo.jarvinen@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: DM6PR13CA0021.namprd13.prod.outlook.com (2603:10b6:5:bc::34) To MW3PR12MB4553.namprd12.prod.outlook.com (2603:10b6:303:2c::19) 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: MW3PR12MB4553:EE_|LV2PR12MB5943:EE_ X-MS-Office365-Filtering-Correlation-Id: 039e9dc2-3f45-465e-68d0-08dc85c2dcf0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|1800799015|376005; X-Microsoft-Antispam-Message-Info: =?utf-8?B?bmRhS0ZFTVJHaVY5a1dDTWFReVB6My9HcXlmZXp4TXZIaDhjMnI5WFRqaUdZ?= =?utf-8?B?Q2txcHpPaHF1QnJzZTdNZWJGaHBoN0lSTmNpZ1NnMUNFalZzcjRRK0Rsb3lo?= =?utf-8?B?VDVvallJVGNKYk9UcGxoVUZpZFFPb3NNVlk0Y2RmazBkV1VqS3RrOVkyb2JU?= =?utf-8?B?QWMrdHNrQ0tGQmlIYUlaMEZNUm1aSGlXRGJ1UVNVRzNWeFlLc0hwSEtzM0hq?= =?utf-8?B?d3VsenRwZ3hBUmRuUUF6NURkeHNxVHlWa0xFZ3BMU3BWdzZURVpxNzc2b0FG?= =?utf-8?B?bUozVDdtT0NTNWQ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pLcktGemlLdjBGZERubEk2UmVBTEZXNzRVMXNqV3V1N1podXRh?= =?utf-8?B?VjBlL1R4MUNiZ2plLzN3Q3Y0Mzd0VTRPTmlnQWxYcjdmQnpPbjRROTdiRGZh?= =?utf-8?B?VlljWFhnY0g4Wm8xUDBIMUw3UzJpRjNFeDYvRlEzY2grcnNmWTBRUXU1Nkhr?= =?utf-8?B?NW9iRVFnVURWVUhEMm5LeU85U1NDbDU3QkhEQXg2NTRlTFhNMlEwMjNkV1By?= =?utf-8?B?TGdmZk9rSkR3aHBlR0hySmx2Uzh5bnN3akVPcUxjK28rbTJEWW1sODlvcWNv?= =?utf-8?B?MExWTjNGaUJ1endZZ2RLODJmeDcyZEQreVczMmp0QnJtOUdkNW41MDRURmxR?= =?utf-8?B?Q0JyakhnVy9udzJQQ0VsSHUxNkNjUkVWRzhEL0ZYUGM4dVBLbWhwaFlGTlNw?= =?utf-8?B?bk5BREtmZUMzWEhSdWg4YW5HeVpqQVFHOTBpa0RaWFVxU1c3amp4WTFvMVlv?= =?utf-8?B?U1dCaklHSlgrc3E0cVpaTFdJNUl6UTdGam8yZEYyMkhnZEFhNER6RkZEM1lF?= =?utf-8?Q?8cPMmdwhDjB9OoLAFZCLHN43UO62gf0bzvivIli?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW3PR12MB4553.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(1800799015)(376005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WjBXM1VIalN0L2FPZ2N4ejRzdVZQZUVnQi9zL2ZvRWJWeDRhMWZHZGNDWElZ?= =?utf-8?B?T1M5cW5aK3NUcFFpb3d6UGtxbWxOQk4yVnp5MFpMTElIVGlPK0dTWVZlMGhN?= =?utf-8?B?d29MU05KTkhITzhPbGJLM2toakFXQk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f-8?B?MUpLcnluT1NqallxUFRQMFNLYjBPSTNGOC9JZ0ZvV1RjNml2REJCam0vekM3?= =?utf-8?B?T3hGeThudXZ0ckpQRHFtOUFTK1BhbUJSQ3dqakg5bFNsUEphSGMvZkZRaGhl?= =?utf-8?B?L2xCVS85NlBJelU0RzJmZ2hyUHRjcEg0cU91dU4vd0Z0QkNXR2NCSm9EQmI2?= =?utf-8?Q?uJ7A=3D?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 039e9dc2-3f45-465e-68d0-08dc85c2dcf0 X-MS-Exchange-CrossTenant-AuthSource: MW3PR12MB4553.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2024 00:51:55.9344 (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: Dutm4lwZlEOWfN6fQZTOC1V3p7ayOxzpEQwZb0PenMrhQd3/s8vd2pjd5B5l9gwr X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR12MB5943 Tested the series. Tested-by: Babu Moger On 5/31/2024 8:11 AM, Ilpo Järvinen wrote: > Hi all, > > This series does a number of cleanups into resctrl_val() and > generalizes it by removing test name specific handling from the > function. > > Hopefully these reach also Shuah successfully as I've recently seen > rejects for mail from @linux.intel.com to gmail addresses. > > v5: > - Open mem bw file only once and use rewind(). > - Add \n to mem bw file read to allow reading fresh values from the file. > - Return 0 if create_grp() is given NULL grp_name (matches the original > behavior). Mention this in function's kerneldoc. > - Cast pid_t to int before printing with %d. > - Caps/typo fixes to kerneldoc and commit messages. > - Use imperative tone in commit messages and improve them based on points > that came up during review. > > v4: > - Merged close fix into IMC READ+WRITE rework patch > - Add loop to reset imc_counters_config fds to -1 to be able know which > need closing > - Introduce perf_close_imc_mem_bw() to close fds > - Open resctrl mem bw file (twice) beforehand to avoid opening it during > the test > - Remove MBM .mongrp setup > - Remove mongrp from CMT test > > v3: > - Rename init functions to _init() > - Replace for loops with READ+WRITE statements for clarity > - Don't drop Return: entry from perf_open_imc_mem_bw() func comment > - New patch: Fix closing of IMC fds in case of error > - New patch: Make "bandwidth" consistent in comments & prints > - New patch: Simplify mem bandwidth file code > - Remove wrong comment > - Changed grp_name check to return -1 on fail (internal sanity check) > > v2: > - Resolved conflicts with kselftest/next > - Spaces -> tabs correction > > Ilpo Järvinen (16): > selftests/resctrl: Fix closing IMC fds on error and open-code R+W > instead of loops > selftests/resctrl: Calculate resctrl FS derived mem bw over sleep(1) > only > selftests/resctrl: Make "bandwidth" consistent in comments & prints > selftests/resctrl: Consolidate get_domain_id() into resctrl_val() > selftests/resctrl: Use correct type for pids > selftests/resctrl: Cleanup bm_pid and ppid usage & limit scope > selftests/resctrl: Rename measure_vals() to measure_mem_bw_vals() & > document > selftests/resctrl: Simplify mem bandwidth file code for MBA & MBM > tests > selftests/resctrl: Add ->measure() callback to resctrl_val_param > selftests/resctrl: Add ->init() callback into resctrl_val_param > selftests/resctrl: Simplify bandwidth report type handling > selftests/resctrl: Make some strings passed to resctrlfs functions > const > selftests/resctrl: Convert ctrlgrp & mongrp to pointers > selftests/resctrl: Remove mongrp from MBA test > selftests/resctrl: Remove mongrp from CMT test > selftests/resctrl: Remove test name comparing from > write_bm_pid_to_resctrl() > > tools/testing/selftests/resctrl/cache.c | 10 +- > tools/testing/selftests/resctrl/cat_test.c | 5 +- > tools/testing/selftests/resctrl/cmt_test.c | 22 +- > tools/testing/selftests/resctrl/mba_test.c | 26 +- > tools/testing/selftests/resctrl/mbm_test.c | 26 +- > tools/testing/selftests/resctrl/resctrl.h | 49 ++- > tools/testing/selftests/resctrl/resctrl_val.c | 364 ++++++++---------- > tools/testing/selftests/resctrl/resctrlfs.c | 67 ++-- > 8 files changed, 290 insertions(+), 279 deletions(-) > -- - Babu Moger