Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp631582lqh; Fri, 31 May 2024 11:18:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXqIHJc8D4APBjS84YYFlKfJpfyg9nFxsBmo/0D0ksT61uaN7baRQcgEZfIIqM7cx/sGEGWkt94YBQTMx1XaItA9EW+SEyxB/fPFeT6WA== X-Google-Smtp-Source: AGHT+IGY1v6gUR/X/WCWlsniJY0LPdLQnTg4YN48nDloLiUjrep50snBBCzuvxf21BjgIrqu6fpj X-Received: by 2002:a05:620a:2fa:b0:794:ef4e:721b with SMTP id af79cd13be357-794f5cc8410mr243614285a.48.1717179529423; Fri, 31 May 2024 11:18:49 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794f32c2bf4si247747285a.774.2024.05.31.11.18.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 11:18:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197292-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=nDpBPCxX; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-197292-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197292-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 562501C23391 for ; Fri, 31 May 2024 18:18:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE98917D358; Fri, 31 May 2024 18:18:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="nDpBPCxX" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) (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 02C8C17CA17; Fri, 31 May 2024 18:18:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=192.198.163.9 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717179505; cv=fail; b=r+vqeJJ5f+/U5zcdk2ikAndZZSENi2bZ5hJuWtDGaJnCVRLPC5B8nmI8llbryHCEnRcoiXNgqUEmXa3HacJzOWQEy8U+GLXkeej9s/HqSkV8SOigpPaBxrr54rCqKXGINiDXEDerAHY/YWjLHTeTZuL0sU71zZA8XB/46SrHMqY= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717179505; c=relaxed/simple; bh=lB1mmhap15g7zFinCWLWtssdomVvCzMnpOHF9zfpgaA=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=us8OuFjVl2UJQT1pP53E/R8Z1F7Uyi4zykA9pVvtXAdw1rB5LOKjrBvw2O57NxggbWT6oOk7OdkB3Rsakzg8bCVubr1TyXGI+A0EOlEFZyO9Eya+RYHXxalBGcKQNzpcre5PsBuifANO0kIY3oDnXRRkQ4Ye+m6DUv0kHgANwqQ= 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=nDpBPCxX; arc=fail smtp.client-ip=192.198.163.9 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=1717179504; x=1748715504; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=lB1mmhap15g7zFinCWLWtssdomVvCzMnpOHF9zfpgaA=; b=nDpBPCxXlyPs2tMevGJ6Q4wder/H+V1nbzrnrLWnPfn8tvQjqef6ohik l6JZPmqY+wn3KxunNyUI5878gT3p6eOa1T0dRbk/GC0app89YK3n75j95 24KiCZzhYwkSmb6q1Nw+QaDsk0l1pn+tvyqufsi9dCNp2RSKvvlDwbbP+ 16awKMPw7AesLef4RabxXZWS2Hde3NT60Aq8zYUXtr8Csi5fIWSo2igZs D2B3Y1rIUg6bdx3aQyC8QpQJZ5CJXxbLsC9oYFPshh8uk36m1og4YlIxL yu8l7fwWYkw6oj/dWdNYd1RJqAUQ+KhiRXLEgB4qMdbq2mMOtcAqoRJxB A==; X-CSE-ConnectionGUID: A0Um9z6wSwaHDyt4t8WZXA== X-CSE-MsgGUID: 1Eb7WWewSW2n7UfebdD27w== X-IronPort-AV: E=McAfee;i="6600,9927,11089"; a="24398918" X-IronPort-AV: E=Sophos;i="6.08,205,1712646000"; d="scan'208";a="24398918" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2024 11:18:23 -0700 X-CSE-ConnectionGUID: ZUabQ7ZnR5moGSsDy+IZrg== X-CSE-MsgGUID: sUey8DPnQ/2ezjJNAKvggw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,205,1712646000"; d="scan'208";a="40686772" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmviesa005.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 31 May 2024 11:18:19 -0700 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.39; Fri, 31 May 2024 11:18:18 -0700 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.39; Fri, 31 May 2024 11:18:18 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) 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.39 via Frontend Transport; Fri, 31 May 2024 11:18:18 -0700 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.41) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Fri, 31 May 2024 11:18:18 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BeDd3czch89bJfLOLTrtdLdVpdgPL4HSjeEm1BeLQpwSLahHbAvtGPzIPZitBHe1RF/Uu4J1/5GQgRnoYRspREOn1zuo+cH6256eFUPgEPe8HMAT1KF6kN7uLsWSOtsB/AaJ7GzTXuDj97Xu4ZtrkHa75kFgZfYeFplEm4Um1gt1rmtTfKHc33eaXyLNdaIiNeng1e4g5KiVVEd4+p1Iv/NR+HnJjYZaevZXLw2LARm4drxcDs+9qfa3QKzCDFcZA14d3oeW9xa9x/Smz/auqZDg4wGfsGpVpI1w3k1Oq9MBVSbSYgvv8lyGrSXPCgbRhzgNv8+482uMTaqdZFhokg== 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=ZdTLL7ND1RIW4Jb9X7fu2tBnchkUqpNCy9+jo2TnrB0=; b=e92EWpQ5tqCKoi3S5tWuDjdFsrrVaBQ1jO7rtYdnDAxPB2AlBO6aBnXmO59uhX8rdLJ1GifWPAAh9zhZPuOYI+uVgG2k6zj3yrGOUWGeAUApVT2lg+3+NijN3iRo3PTxsMOQeP8/+qDWUER3conosDUZUAhrLjUKU64ohYwty6iKn1YtJaQZTcA6fMFsHs3za5YAtxET+WuLm63rn5pUuIr7c18QTE4cO4lbG8F7NAsLAhkyT/HYz+NNBgbijGAJPgbwCICiCISwL6czVEq46mUI5DZGMX/wLkmkJ4BNRzRe8qMZ8T4ULYR2s7ndmp013JtwYQmZs7idOzcKF+E+lg== 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 CH3PR11MB8316.namprd11.prod.outlook.com (2603:10b6:610:17b::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.22; Fri, 31 May 2024 18:18:16 +0000 Received: from SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::61a:aa57:1d81:a9cf]) by SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::61a:aa57:1d81:a9cf%3]) with mapi id 15.20.7633.017; Fri, 31 May 2024 18:18:16 +0000 Message-ID: <1fa7f60d-6feb-4b99-bc3b-3dcdd22515f5@intel.com> Date: Fri, 31 May 2024 11:18:14 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 13/16] selftests/resctrl: Convert ctrlgrp & mongrp to pointers To: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , , Shuah Khan , Babu Moger , =?UTF-8?Q?Maciej_Wiecz=C3=B3r-Retman?= CC: , Fenghua Yu , "Shuah Khan" References: <20240531131142.1716-1-ilpo.jarvinen@linux.intel.com> <20240531131142.1716-14-ilpo.jarvinen@linux.intel.com> Content-Language: en-US From: Reinette Chatre In-Reply-To: <20240531131142.1716-14-ilpo.jarvinen@linux.intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: MW4PR03CA0071.namprd03.prod.outlook.com (2603:10b6:303:b6::16) 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_|CH3PR11MB8316:EE_ X-MS-Office365-Filtering-Correlation-Id: 13b57f15-dc83-440f-b6b7-08dc819e0a90 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?SXlZakxObkJENW0raGFBcTF5VzEyVVpjRHcydUluWEFVVUU3bFE1NC94WjZS?= =?utf-8?B?TVF6YUdrejhSNE1VdzdUSlMxTlFrVEdOQUp6QVpTY094dE05ZnU0VkJRY3E3?= =?utf-8?B?andtcVN5aDRhVys5Zzk4SmxnVmgyb3A5dEdPRnludUJROGcvQWRnVEZXZFUv?= =?utf-8?B?ZlJubUJBUC9KQ0ZwNUFwS3dROGkvMldvOElvaXdnb0FQRlc1MFNNaU83ZTg1?= =?utf-8?B?cGdFV1I1KzFwL0xubzJka1cxMmpzTG5DUDRPeHZleX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21NNjdoMytWejllZHhUaEpOdnlnMmF4NWl5?= =?utf-8?B?cGlFNDlQZWw3eDJIZ2Q0MFo0SEFFaG1qUk1EZkhPbjhXb3JkY0ZGek4vUGpp?= =?utf-8?B?SzZQbHVaQUFoZzJYZGc2ano4UlFhUmlwdmxLZnI1a2hVeWQwM2tYaWJ0endD?= =?utf-8?B?OVpLN0hCa2Q1K2VMRDI5SXNuUlViV1AzYXIwMkJhSC9Mem5hNkxQQWRCSHpv?= =?utf-8?B?K2N1UGVEcWhrR3BsMEE4cVZ4cFBRNWllQjgxbHFET3krL002QURWTi9kQlh6?= =?utf-8?B?QlF6YXRpcmY2WXBKZnFQVDZ5dmtmYnhCNGpWUExMeVMyNVdubzlxbVNaTG9t?= =?utf-8?B?TndsUk96L1FVVDRIUXlFM0lObmZiZ09EKzRJY0U3VkJaNWpwZytXMS9LdEFt?= =?utf-8?B?Ynl4VytuaDk1cDh1V0JhdExscTRvUWFPZk5HN3lrOU1YbTRHRVZRR24wTnll?= =?utf-8?B?NWlzelkwYUVnSlk4eFloeEUzYWNEbUltRTNRZEsxdUhBcDVvTFU3Qjd4YjRL?= =?utf-8?B?OGtQWXZVOFNPdUFHUyt2OWRjekpYRjdWTERreVJTaGdHTzFJZkFHOHd3PT0=?= 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)(366007)(1800799015)(376005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?blNMN0lzVS8rbXFFRUcwaXdhdlc5bmJXOGd4a1plRnNZSFdmZldvNUtvYUEx?= =?utf-8?B?MGJBeUV5aldhU1JmRGhpRloxUTlCbVFZbmJTeFJmN2pINkd3YTJvVmNRWFg0?= =?utf-8?B?RWpGUE5XUkZVZDlYeGZFeTc1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=?utf-8?B?M0JGa1VsY2hCV2l4YmdvNXhaOGNZM1p2VnFycjNnMzloWllBSWx4YTN5OU1z?= =?utf-8?B?eGZoREh3YlVKSTFmY0dGZzMvQkVYci93Mmt3Y08yNzlqb1pWMlpVS1UzME81?= =?utf-8?B?enMxL1E2Tks2YnR3c3VIOU9yZWVIUCs4OE9Iekd1cVNpWDVZcUYrMEVhZU0w?= =?utf-8?B?dWpiWVAzZzg4TEtVVU5JbTBRWTQxTURVUFc3TTlxWmowUVBVbmxwN3JhdVV1?= =?utf-8?B?UkE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 13b57f15-dc83-440f-b6b7-08dc819e0a90 X-MS-Exchange-CrossTenant-AuthSource: SJ2PR11MB7573.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2024 18:18:16.2935 (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: SVOeKaDYk0jxUUpbex8aHBerKTpD/ZvKgWPqGLduvnb4dNMTUgNJcYnns+EdO8HurC2APH7huBRblfZcHr9jZOMvVTsCJA+23fu8FW0NcaU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB8316 X-OriginatorOrg: intel.com Hi Ilpo, On 5/31/24 6:11 AM, Ilpo Järvinen wrote: > The struct resctrl_val_param has control and monitor groups as char > arrays but they are not supposed to be mutated within resctrl_val(). > > Convert the ctrlgrp and mongrp char array within resctrl_val_param to > plain const char pointers and adjust the strlen() based checks to > check NULL instead. > > Convert !grp_name check in create_grp() into internal sanity check by > returning error if the caller asked to create a group but doesn't > provide a name for the group. The existing code already abides this by > only calling create_grp() if mongrp is non-NULL so the error should > never be returned with the current selftests (ctrlgrp is never NULL). This paragraph is no longer relevant and can be dropped. > > Signed-off-by: Ilpo Järvinen > --- > v5: > - Return 0 if grp_name is null (restore earlier behavior) > - Move the root group note from comment into kerneldoc > > v3: > - Removed wrong comment > - Changed grp_name check to return -1 on fail (internal sanity check) > --- > tools/testing/selftests/resctrl/resctrl.h | 4 ++-- > tools/testing/selftests/resctrl/resctrlfs.c | 16 +++++++--------- > 2 files changed, 9 insertions(+), 11 deletions(-) > > diff --git a/tools/testing/selftests/resctrl/resctrl.h b/tools/testing/selftests/resctrl/resctrl.h > index 5967389038d4..a999fbc13fd3 100644 > --- a/tools/testing/selftests/resctrl/resctrl.h > +++ b/tools/testing/selftests/resctrl/resctrl.h > @@ -91,8 +91,8 @@ struct resctrl_test { > */ > struct resctrl_val_param { > char *resctrl_val; > - char ctrlgrp[64]; > - char mongrp[64]; > + const char *ctrlgrp; > + const char *mongrp; > char filename[64]; > unsigned long mask; > int num_of_runs; > diff --git a/tools/testing/selftests/resctrl/resctrlfs.c b/tools/testing/selftests/resctrl/resctrlfs.c > index f4dc8ef23a8c..893041faaf18 100644 > --- a/tools/testing/selftests/resctrl/resctrlfs.c > +++ b/tools/testing/selftests/resctrl/resctrlfs.c > @@ -456,6 +456,9 @@ int taskset_restore(pid_t bm_pid, cpu_set_t *old_affinity) > * @grp: Full path and name of the group > * @parent_grp: Full path and name of the parent group > * > + * Creates a group @grp_name if it does not exist yet. If @grp_name is NULL, > + * it is interpreted as the root group which always results success. "always results success" -> "always results in success"? With changelog and comment fixups addressed: | Reviewed-by: Reinette Chatre Reinette