Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4181692rdh; Tue, 28 Nov 2023 14:20:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IGm+6O0ltTczSXWm3u1oJ72JC0lyLbMNJjCNSqmb02eCsR0Gv2HCytyHZPYGkJ6j6Q66bt2 X-Received: by 2002:a05:6a20:9147:b0:18c:331f:3abe with SMTP id x7-20020a056a20914700b0018c331f3abemr16596205pzc.24.1701210057530; Tue, 28 Nov 2023 14:20:57 -0800 (PST) Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id j6-20020a056a00174600b006cd91c72789si4891450pfc.162.2023.11.28.14.20.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 14:20:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aWpJTZoM; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 5FB3780930F4; Tue, 28 Nov 2023 14:20:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376593AbjK1WUK (ORCPT + 99 others); Tue, 28 Nov 2023 17:20:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376582AbjK1WUH (ORCPT ); Tue, 28 Nov 2023 17:20:07 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB4CF85; Tue, 28 Nov 2023 14:20:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701210013; x=1732746013; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=gBpMmJQP6ovPXsfweOhWIXYN/KmykOLjSuUtJ2btcLg=; b=aWpJTZoMwpCpvbW9rcJaso8kR2KAmsO3JfTd0MFF35WPnCSG1bZqkGsn swiYpDf6UzVpglrTmEdeWj56caTNB100BFUgT1+3IK/BKH9ajfmsetFmS cEqWguIc/kZgBERfkDERTJpY4kpxceNRd4oZH7+8dQp/svG9OCo7GyLBD sbW8fgGqYrrxKNN4pepE5A31IuM/K66Uzd/ytG0LzoU0raVcBFStGhzuI vWDUK5KHoNiCrXALBGq0ctAuRmsLgi2JzPjKqnTiVHfFwDQ0UAZ9Qjl3R fotMEg2h7p5VXGy7HT1pReHPCnPRfHtfhnu1IsZEQ68GaXA/k+CdN+BIp g==; X-IronPort-AV: E=McAfee;i="6600,9927,10908"; a="392792432" X-IronPort-AV: E=Sophos;i="6.04,234,1695711600"; d="scan'208";a="392792432" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2023 14:20:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10908"; a="762080036" X-IronPort-AV: E=Sophos;i="6.04,234,1695711600"; d="scan'208";a="762080036" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga007.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 28 Nov 2023 14:20:12 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Tue, 28 Nov 2023 14:20:11 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) 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.34 via Frontend Transport; Tue, 28 Nov 2023 14:20:11 -0800 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (104.47.73.169) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Tue, 28 Nov 2023 14:19:25 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Nu7KQ7FxYyh/7iYj714kZAJO8DY605uI7VABfr2d95CVH6zW4ylV1Ol+Lf2kCqRiIynxw4Dd9snIGYkKlowCeASLj1xd5R63iSAYFTRniYfSfiCNdX04XErcQQ9/hLcKhb326uXgze0T2MUQBhcIoTbOXJy8gbAVjXqYpTDf99HrpDlerB7k1VoEvO0ld51JiAD7QiTG0of8aHF1RfeD2oVnYuLgKRrBrPrN9buaSzn6uUszyf5fmennHK/gVBMa3o0fSKzi/M0flIlrUMJIJwiyIrpjGTFx9JnzkwMC+5p3fbamEg4c+8dTCnPoxBJjrIezKaBM/mdkYbi5Wnoc6Q== 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=B3dlalNCfQ//5GBejHzqEDrcJobae+aw5xwYKAhACWw=; b=ETDzVFHM8FEEYwpPhnrZ58E/IOPaNsrpcNejTy6HKnodP6mWE5opaRPmuywHxe0Kpgr3aOUIWY7O3u0o9/zcFlKFfOOyEe2j3FmUGYkpoB/jrxilkFJUDNXNn24S2Ggxnp83Tecgn7FP+sD8IFAU0WIB28r+OegoA6Cj0uUWRr1x3uGskpX4iTQAHz5xIpiApeoDkjb1/nq7tvotQshivOXlcQZo5sSWy1pkUUUjOC4isOVlMFFxmfMiS3BHmMCUR1xLJZMMwGnKm/dov4NiAVxjVSwK6wAcznV4GSKMunGOsZJHx0ZkoAd20BV4WExKZwQnrld/JC6XKRdaKUNGKA== 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 SA3PR11MB8024.namprd11.prod.outlook.com (2603:10b6:806:300::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.27; Tue, 28 Nov 2023 22:19:18 +0000 Received: from SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::6710:537d:b74:f1e5]) by SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::6710:537d:b74:f1e5%5]) with mapi id 15.20.7025.022; Tue, 28 Nov 2023 22:19:18 +0000 Message-ID: <72a26cac-260a-4350-ba58-2651070f0246@intel.com> Date: Tue, 28 Nov 2023 14:19:17 -0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 21/26] selftests/resctrl: Introduce generalized test framework Content-Language: en-US To: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , , Shuah Khan , "Shaopeng Tan" , =?UTF-8?Q?Maciej_Wiecz=C3=B3r-Retman?= , Fenghua Yu CC: References: <20231120111340.7805-1-ilpo.jarvinen@linux.intel.com> <20231120111340.7805-22-ilpo.jarvinen@linux.intel.com> From: Reinette Chatre In-Reply-To: <20231120111340.7805-22-ilpo.jarvinen@linux.intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: MW4PR04CA0192.namprd04.prod.outlook.com (2603:10b6:303:86::17) To SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR11MB7573:EE_|SA3PR11MB8024:EE_ X-MS-Office365-Filtering-Correlation-Id: 7b131409-cbfa-4388-1412-08dbf0601013 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8MbeWUgpRbyHh61Dc4IYMVh/iW8/bgHoijJ33gmUt5nso/opL4MYh6QEaWdOkKEoc29CMSHCm9aatOLnlTkBKS8FEdPBzfIIYVKEsD00mWhHVAzVjX0XsA+dOx0oG6oT3m1coBd5BSw3USQQwdiWD0E1mjWAfOd7MgiEWq8eSn89oKYtGWFPV0raUVmolZtefXUUed2+fWSpIZMjuPNzTFLviwWqlJPD6CDh7nQ7JZPRD0ZtUf5syIo3FkNAecCv69yURfHFh/n8QUOiBwaakbsScN5SXrPjYk0/nyBIfn2oYzsNw9qwSUwDFCSPuski5t4Oj+q91MuNZtyM7yNGrtRI7JTnF4R8XK8QGXEJw64eVvkLctmbAKTDvLnsH6MCQxxK/90eCBB+OBnuHlpCJmUnBQn/wEGBp/SODEVsVXMDVcaw2UBrE22vA35OCzOrYFFEuY2BzEu8x456svuEDWxTHaPNybCcSJpWQdEgu4k0G7Kxu91t20WM+mCGyPtFd/tKHv+qTcrefg9QSOcwKVol1yM76YoxwSIcglSOUS06qkNK/uKZJjFvwDr7IaIxmJBoeh/eU1YI89UU00vTQIL7blXSuBXTIiGKOAPQPC7lwFBFM70tqvT2uMF0h9qOwEx8YS0u71R4DjuEog26rQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ2PR11MB7573.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(396003)(39860400002)(136003)(376002)(346002)(230922051799003)(1800799012)(64100799003)(451199024)(186009)(38100700002)(41300700001)(36756003)(31686004)(83380400001)(5660300002)(82960400001)(66574015)(26005)(86362001)(2616005)(2906002)(44832011)(6512007)(6506007)(53546011)(8936002)(4326008)(31696002)(8676002)(6486002)(478600001)(316002)(66476007)(66556008)(66946007)(110136005)(6636002)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TkppWEtpK29hNjkvYythV0M3YXl5RDVISUdPdkRtOEtxY0hOUVJoUEx0eE5S?= =?utf-8?B?ZzF0cW9xSlhiK202MjQ2NFBDRFE0REM3eTBHeFZvWE5rdFdGdzdsc1ljN01W?= =?utf-8?B?WDExVGhUK1pkL3lRN1JUbUpuZXB6V2FxQWh4RDU0RXdUTE8vazJVaVJ0Zk1a?= =?utf-8?B?Y3BraENvTVRLY0dOSkVCcEJiM3pEejlUc2hwbWZWRWNYcUxWSXpxczhJWlZJ?= =?utf-8?B?bzlJN1JpcUF1K2swVE8wemt4RzFrQWJRR1FHSThGM0VoTi9qQkZKZEc4MHFa?= =?utf-8?B?aUhLeU42MDI2RW05NU9MR2xVY2czQ0NuT3FKdCsxN2RjaGhlcndxdHNtNmQ4?= =?utf-8?B?UytJQmM1RDAvV00yWnJKNWNLSHVOKzJ4OWdrVnptb3J3NVFMRkg3RGxmOUp3?= =?utf-8?B?MFdtUG42WmN5dlcxdURVNkpoTjFmclREQ3FXUVdTQVFCazRNVDdJS0ZLelRV?= =?utf-8?B?Y0FrRkc3ZTJuRXhDd2tlZThURmt2azlYblowOEMwMy9maXBmaGQrWHVDM3ph?= =?utf-8?B?TUJod2QxVklZdzlUcEJLb2VVZUZuNFB6QV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Y3U0x5YXNsTUJUYVdNYkZDOVAyTTBWNHlGY3dpZWlQbWo4?= =?utf-8?B?THZIQ3V3T2JkTmw2SHhJbGd4NURYdFk5L1FCUUhLVUdoUWx1MTJNUUdWSFhR?= =?utf-8?B?M29nK0xpT2NCcTBzb3EvR1lUOUFZZlB4T3E5cytwQjA0dGhEWmtmSURxYzkz?= =?utf-8?B?K1pRMTFRRkxSMnFoY29UdHhnVkZ3VmEyOHVDM1h4aXVwM0VGR2xHQ2s2VExO?= =?utf-8?B?WlZ2ZURTUHdhWjM0bCtpNnJhMkFWRVprd0I0Uk5oMjhweDVCU3U4QjVoWjcv?= =?utf-8?B?U3BrcVJUS0lFTkpzbHdPTFQ0QlhpbTg3QUlJRFV3UWdhRVIxdjRqYzE1NU1K?= =?utf-8?B?dWIyWmt6QkQvTGZpSjQ4Ri9FK3U1ZTB6NUtoUThoVUdpUlIxYU1RQzBKMVNO?= =?utf-8?B?TXNra3BjcHYyU1ZKZnM3SEoxN1QwcjFVZytSanh0Q2tOWDIweG1uN1lvNkRY?= =?utf-8?B?THQ4WERJTjJPTmZOa1ZOaFZnMDRjcm8xOWJoS0FIYUpyYjh0OGhxWkpLNERM?= =?utf-8?B?ZkgzWm5VcnBWY3hRaXJzcDZLSDd5VlZ0MXpxd1lQMUxWdzhmbnNRYkNWeFRq?= =?utf-8?B?cW9scFZDT2lPUnliT0d1RHhKbmdqaE9WbkJrbE00UDY4WXdUMnZMUUpRSHAr?= =?utf-8?B?L1RKUnRKTGVlY3ZnRmFzdmlKZnpUZ1lyMTJZRDMyWjN6S1B6L0pJbmZIY2Za?= =?utf-8?B?Q2c9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 7b131409-cbfa-4388-1412-08dbf0601013 X-MS-Exchange-CrossTenant-AuthSource: SJ2PR11MB7573.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2023 22:19:18.1383 (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: pDkUgPz6z9jyynnHMwTMQlWaDCyhtuw9Xgu+t26HYRFmchTZr4YQDtYH18VgVaNY8d0VINHrcajfBX21MPyerWlWZ5WLdAg6dxWjcbyLIxE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR11MB8024 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 28 Nov 2023 14:20:33 -0800 (PST) Hi Ilpo, On 11/20/2023 3:13 AM, Ilpo Järvinen wrote: ... > + > +static bool cmt_feature_check(const struct resctrl_test *test) > +{ > + return validate_resctrl_feature_request("L3_MON", "llc_occupancy") && > + validate_resctrl_feature_request("L3", NULL); > +} > + ... > + > +static bool mba_feature_check(const struct resctrl_test *test) > +{ > + return test_resource_feature_check(test) && > + validate_resctrl_feature_request("L3_MON", "mbm_local_bytes"); > +} > + Could cmt_feature_check() not also use test_resource_feature_check(test)? Why are cmt_feature_check() and mba_feature_check() different in this regard? ... > > +/* > + * resctrl_test: resctrl test definition > + * @name: Test name > + * @resource: Resource to test (e.g., MB, L3, L2, etc.) > + * @vendor_specific: Bitmask for vendor-specific tests (can be 0 for universal tests) I do not think these values were originally intended to be used in a bitmask. The current values do make this possible but I would like to suggest that their definition gets a comment to highlight how those values are used. The rest looks good to me. This is a good addition. Thank you. Reinette