Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1976008rdb; Tue, 20 Feb 2024 12:51:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWeBV8PM6FQfWm7YBNvFCP1Gc8pBJD6jB3D4nxvmIWjcvznog41l8Vvw62UrgQ4o+g6EBIq+aRYBHSaTtFdq8Cmav/5Wn5YgLfiqJAG4w== X-Google-Smtp-Source: AGHT+IFzP8T27TRuWjSYhH22kE3GYqsQ9LoFKU/39sbb1DE9klHc0sVYCWWSjwy3bKuTS+t6FFuc X-Received: by 2002:a05:620a:146c:b0:787:73c8:c77 with SMTP id j12-20020a05620a146c00b0078773c80c77mr4501548qkl.17.1708462313053; Tue, 20 Feb 2024 12:51:53 -0800 (PST) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ou8-20020a05620a620800b0078741647cc0si9324378qkn.67.2024.02.20.12.51.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 12:51:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73697-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=m4hxTeUj; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-73697-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73697-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id BE3131C20C83 for ; Tue, 20 Feb 2024 20:51:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03C8E1509BE; Tue, 20 Feb 2024 20:51:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="m4hxTeUj" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 DD0B1612D7; Tue, 20 Feb 2024 20:51:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=192.198.163.15 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708462306; cv=fail; b=IkGO5dXZ6qnfEuaU2oHbYW2Rr8rjr6EciysAD0O/kKkYj9zMgPNmDJMeIT0mQpiqhgjO/JsVyvforIsfFgA/aJNe5GREt2O7ALe2yxiVeAf9fqDE1GCT6rZPvSCHJjRKgKQcMDPqwf2atU+Xg+cqMvKRJXJPq2a67ZUwnWtr4Ek= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708462306; c=relaxed/simple; bh=X0LCmOwgVZezZlR2LLDFtW+wZpGYN+2ICscAIVWzSO4=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=p5kipb7uavUCd/Ya145yw/zBZQD+3vsSd1jzUv1/cCJplZifeya1uxBrSQmRkh6kSYaHB/2netdwI4P/BmM5nkYClNl3V84GYVfE+YuIScvQgJdORf5yMWKRR5ZC3fNXASun5t+AtbDI143Q1VMQ0GxZ1vvH+6b1q6rw1Ye/AB0= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=m4hxTeUj; arc=fail smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708462305; x=1739998305; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=X0LCmOwgVZezZlR2LLDFtW+wZpGYN+2ICscAIVWzSO4=; b=m4hxTeUjNAWyLQotve50tnPHAAeHhVV8ckOQemLp47z7brZr30u9d0SW dvTVYMuJR5jUA09thKVjPFZCtijVDJBdCS9jzzyxS599la2OvFgsEsCjR H+JMvdCh4efBfEU7oRVkSy77UgNOruYBflq1levcWkQY8DoZaXAJA/Mbh j0QSFFvFlgiyGocIuienqoojQ25QEZ4HM0tNEP/UCe7fz4puwA/273HET cABb7WFjdavrxnSn0PJbQY/94j3G7aCQm8q4cyfyCZGugnQx3O7UFfnth LKFugHoMaS9VIRNx1BTPa0r0RZcP3Id3JRq5uSItAuN89VQ3Da6JNhGkI A==; X-IronPort-AV: E=McAfee;i="6600,9927,10990"; a="2726898" X-IronPort-AV: E=Sophos;i="6.06,174,1705392000"; d="scan'208";a="2726898" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Feb 2024 12:51:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,174,1705392000"; d="scan'208";a="4849447" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orviesa009.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 20 Feb 2024 12:51:44 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 20 Feb 2024 12:51:43 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 20 Feb 2024 12:51:42 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Tue, 20 Feb 2024 12:51:42 -0800 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.40) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 20 Feb 2024 12:51:42 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e7BOH1/FYgU5QZelgZHIN+AQtr5n/ZG64LuP9yDD7cioF8KsYwCa5GiAKqZV0dHYz7FrQXBBUyIUb+ETGKKfgpzvWxrIbzGvznq7mXap5B3XhEEGk/OmgZMIvLc+kSx6D4ghTmS1+xeonooQqfd5rgDUodOqv4XVSIh2sLEhWOMz93nNUBdzHk+vbnKJHFOsjdQIbPWTxtc6jB7ThVwLH7weCEbgfbgLfgcH50Xwc9h/rVDx/2Asqx84O9OJgQ45QnyKRXaoHI4rJVhDNyUv+X++774tzFKzRFgWnfXFg5JZxrfeMm+9PwsQLxebRypu4TZcu9EvCyJZkV/u+8JdgQ== 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=/DBfz2WfI1VtEutwj8lDYIn6U00/49rcSPHV3Gg6bEU=; b=nXEwJp7qwZKsgjlulnw4SpPA7foRZrktollg5P9PAOSMNGiDUGrTCxQGZq/TVFpYtz9DQHr9vCwfIYXiPCCSQbHDRADRb1aGur/L0k3WrTqxhFK4CNEvKuZxTgHOmG12sDXHRfGhz9gwPnCcLFeTlKAkY4O4JYrqKmvUsyymVlW8Tno+Rz/gFcGwCRraUc5E12VWuBChZjzP5OK+7ZonsdweFPbkfmztY3x4/6/t3yG3cGADFIqnX7CU8A/4xjvhWW9VwC9nIBvhMEeI8sJI9vPjOJs00MFZcVZZxwdECBMs4YesEO47NavneMUFdUG5kchVv4P23UOlmTjMV/Bxag== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) by SA2PR11MB5115.namprd11.prod.outlook.com (2603:10b6:806:118::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.39; Tue, 20 Feb 2024 20:51:40 +0000 Received: from SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::c903:6ee5:ed69:f4fa]) by SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::c903:6ee5:ed69:f4fa%7]) with mapi id 15.20.7292.036; Tue, 20 Feb 2024 20:51:40 +0000 Message-ID: Date: Tue, 20 Feb 2024 12:51:38 -0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 3/5] selftests/resctrl: Split validate_resctrl_feature_request() Content-Language: en-US To: Maciej Wieczor-Retman , , CC: , , References: <79e6f4b5bcaf36214289e56167fe1d5657cb4d24.1708072203.git.maciej.wieczor-retman@intel.com> From: Reinette Chatre In-Reply-To: <79e6f4b5bcaf36214289e56167fe1d5657cb4d24.1708072203.git.maciej.wieczor-retman@intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MW4PR04CA0185.namprd04.prod.outlook.com (2603:10b6:303:86::10) To SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::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: SJ2PR11MB7573:EE_|SA2PR11MB5115:EE_ X-MS-Office365-Filtering-Correlation-Id: f3e33431-d47a-4a06-ea6d-08dc3255bcf6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: A56U5ExnjXqdC+zS9dBuJGJ/Sj59oh/pi6r/tpMDhvknlxOadPB+fMKEPZDZgijbgchTsy8zFdf3XB9xQF90fpiRA6n5ODQS9tQwcf6EC8huYHzL3mxYUZ/lfMDVaSOEWUqZb4Tg/PBxn7T7ZYgVRQ+6EzSPKxI3Ux2klJJRLE0ug5QQbTGwRTCxfi9spuctq5/3HPBw1mn08M5LRJtvKvQMajISttxkw8TS1LtY63tlfBSEL8Y51qAM4uIApQebxZGjtecPvCyLZCc2NT99F4nBrLhOr34fRJiiXDIZf9/R/02l4vGyKAQ0reNvFvuScGq6GVulRiKWcp3yuA6Ws1PV3XsJ1bCaRAcD6jLuVkvM+VeSdE7fM5vNeBpnlQGKw3vmTeRWmDlETbBMhX/khwLmc4U8gXt0JOxo+raIb/qIjGE1GXtHY9D+HigZ4/N51nP98B93/9HLBaEiykZJf2Nw7HIzRvDYmmtZVgjeAMzoZ2EUOLysvwiKpgY+M0iV6ro19th31jjlzthI4F8WvuAfCwgCZ140u9Uh9zK1tII= X-Forefront-Antispam-Report: CIP:255.255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?B?Vk1pMm5XV2gvRUJwREEyWURJUkxtVmdpT3dhWWc5NldKYnlMQmRmblowNFd3?= =?utf-8?B?RlduckFSMDI0K0ZvOEFCcWVneENxcldjYjkrcS9uSlVvOXN1VUs0REFWNHVH?= =?utf-8?B?ZFVzb3dtdlB2ekc2M2R2YStaRkdHb0U4SWxOUVQ4L0ZDUmR3L1NQaFdxMzBG?= =?utf-8?B?Sm1KT3J1czFBMGVqNGdubGNZaXB1b2RVcFNYYW81R2xxbXRveWMrUGxCTlVa?= =?utf-8?B?d1Uwc3pEL3RrTmpLbm5ldjVEbjl4NmpVOG9ZYWg3SzU3L2UwdGFuNEYzRXNN?= =?utf-8?B?WXBXOTA3VGcvM2RHbjhFZ1JlOFg1L21KZXRLNlVRYnVTd045cFAvUzVqQWFU?= =?utf-8?B?NkM4TC80cENzNnMwRWVtZ1U4b2hRUm9wVGlXem1pOEJaczZhWE4xM3FxalNw?= =?utf-8?B?ZmNieEFmdmU0THd2cUVYcmI2YlFrUklDc0p1VE1mSFBVZTRrU3poRE1vZlFC?= =?utf-8?B?UnpZSjBmb2xCZk1sYk9aTWZjMVU5SlVaSHp3cDRFNVRyVHcwREg2dTZNQU9C?= =?utf-8?B?TUE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: f3e33431-d47a-4a06-ea6d-08dc3255bcf6 X-MS-Exchange-CrossTenant-AuthSource: SJ2PR11MB7573.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Feb 2024 20:51:40.4952 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: axo4cMhpj3qtorSFKYj4rAeonyQMaa3Epq4jsHLzXbsEEsbyZvDW7Vpr84WlMV9ub0tfvfSCGxHR1deZ8PPvHX/vphsUYBPbvQZdgyDO5Sk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5115 X-OriginatorOrg: intel.com Hi Maciej, On 2/16/2024 12:35 AM, Maciej Wieczor-Retman wrote: > validate_resctrl_feature_request() is used to test both if a resource is > present in the info directory, and if a passed monitoring feature is > present in the mon_features file. > > Refactor validate_resctrl_feature_request() into two smaller functions > that each accomplish one check to give feature checking more > granularity: > - Resource directory presence in the /sys/fs/resctrl/info directory. > - Feature name presence in the /sys/fs/resctrl/info//mon_features > file. > > Signed-off-by: Maciej Wieczor-Retman > --- Thank you. Reviewed-by: Reinette Chatre Reinette