Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1861293rdb; Thu, 7 Dec 2023 10:36:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IFoXCfFaqn0JfhG925pNw3LBL1TpFn3y57dCanng/ihQnEoycpRo5SMuleLWYJ4T0DXZDoH X-Received: by 2002:a17:90a:c389:b0:286:6cc1:781f with SMTP id h9-20020a17090ac38900b002866cc1781fmr2901122pjt.98.1701974183172; Thu, 07 Dec 2023 10:36:23 -0800 (PST) Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id lr14-20020a17090b4b8e00b002868f5b2c7csi1557447pjb.33.2023.12.07.10.36.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 10:36:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bbMavK1S; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id A42388073299; Thu, 7 Dec 2023 10:35:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233077AbjLGSf1 (ORCPT + 99 others); Thu, 7 Dec 2023 13:35:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233026AbjLGSfZ (ORCPT ); Thu, 7 Dec 2023 13:35:25 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20059171C; Thu, 7 Dec 2023 10:35:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701974131; x=1733510131; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=a0XTHyAi40JPmfv4mrWRB4hoiyBXU5t15cyHpNSGfXU=; b=bbMavK1SBw03wxdTajQCrPe9bL/GqmHMydOqqS97rUTkSpVZ682fw0c9 Xp4l+aPWMxF/vuYkh5bMHWKliU1x8DH39ooYvsJZ1/nqE2mV8GBLkws3L iv8900HEap7+jhZl9PfO7kvnknD/Rl8emzOlRh3hCTA1tSj77k6E9O00I esEmazH/V2dDXpJL+usdfWU0vvKZ0+GhYkoyTW9dJ5St9D7B7S4mDS1YF HWy3dyQmWmClsZpq/WxY2vbonpMbrboZXDSK+5TwpCqYAZQsUdHs+JBqS J81rjWVVn+x8jkRZNwEVpaGqW5y7uLE0qr8nk2pTvL0j0pIen6/qbM5bZ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10917"; a="374448203" X-IronPort-AV: E=Sophos;i="6.04,258,1695711600"; d="scan'208";a="374448203" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2023 10:35:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10917"; a="837830160" X-IronPort-AV: E=Sophos;i="6.04,258,1695711600"; d="scan'208";a="837830160" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga008.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 07 Dec 2023 10:35:30 -0800 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 7 Dec 2023 10:35:30 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 7 Dec 2023 10:35:29 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Thu, 7 Dec 2023 10:35:29 -0800 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.169) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 7 Dec 2023 10:35:29 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CJvvx1Puo18FIE8CEpbmZKZ41McYnC7EQPlwwJMvwmNKW6mRioA44BuFYw0TuNakCMd9QB9VBToBO35MJzBuukcVmFtw55MCkw2+mbvYTepWlUqZ6aS2qyY/W9Ty4c9HCum/wfcUDmvo1Wuiovu5I6Oc0gG2meD2qCar2W5PT+wHL8R9CYe+la9xy/OEt0M3wyNebf3+X16UN0cMxXX23z/UD4Y+59oUFspdOLQpkMjhSaF9KpgpQ3lFnF33ItCVQ1vsEO9hPuT/+lnNuefxAUDcSuyKm/EIz4teq80nEF0rbqnem0cpy+TK/u4Ls4ZpWQmtnw0GLskcHn9JPUBS3w== 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=GIe9Kj34TXVMvyZwLYvNYZBHxuVPQjG7i08qcp4tjBw=; b=BgMlBr1V/NT588b05qQZh9U3K7RM7bP7aikWJ7y49bks8oZHjmR74I2pXDr9/fF+PRRPRb0++Uc2ewotUNtBeoCMv3wyUfUunfvg2/3+dD7fgo46Xxkq9axcrYT269GXmOU9YHu6juSj0VxL35L+IzUAAXXjPB/a1b8VIn5eTTIpFdJp6MuY216RHkuLWVpfcKqP9Qzseq91Hcz1HJJ4sOItBi4BvyLkB3Sgl8Bp2vpEHmZzNoDIc8sIrVnA6wQEZDhSBYfctlevDK8xrruCCxCPyUPa0gu3lexIo+OrV6vhskPENOfwODJgK9AOXpxnZ1AGtvOaESOEDfgm4p4jHw== 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 DM4PR11MB5373.namprd11.prod.outlook.com (2603:10b6:5:394::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.27; Thu, 7 Dec 2023 18:35:27 +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.7068.025; Thu, 7 Dec 2023 18:35:27 +0000 Message-ID: Date: Thu, 7 Dec 2023 10:35:25 -0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 08/26] selftests/resctrl: Split measure_cache_vals() Content-Language: en-US To: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= CC: , Shuah Khan , Shaopeng Tan , =?UTF-8?Q?Maciej_Wiecz=C3=B3r-Retman?= , Fenghua Yu , LKML References: <20231120111340.7805-1-ilpo.jarvinen@linux.intel.com> <20231120111340.7805-9-ilpo.jarvinen@linux.intel.com> <8f6c7b40-5218-4427-865d-55e5f09c594f@intel.com> From: Reinette Chatre In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: MW4PR04CA0138.namprd04.prod.outlook.com (2603:10b6:303:84::23) To SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR11MB7573:EE_|DM4PR11MB5373:EE_ X-MS-Office365-Filtering-Correlation-Id: b7ee73a9-424a-4172-84c5-08dbf753488a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: j3YrbvFMBphsDYtxdWtajZGcwY80N6VfCaytNA52uvTLHnOGW8io6WnDCWPaBxc2MeC+1lnDAIj7z9Aldutn7lqY0DrpB+/b86c+GAGAxWjDbQMa38Yoy+r4z7pXece5ZJPEvD9cFr34JXLaKHEEGKMpQ6Sk/U4Sh3YXKrnuBjMA9EvNKBiKqIzhNGDnu8t+2b68jP0GPrbqrKvNPzkof00HxMjGs8icPy4Zy5l5wW/Z9f1qgVErspmiqyUxfHRvdSkVrZHOwSbOZoyjcR6eTAyurEOiX0pEC2lmIMm83rXDa4IR9/yDMxK1vNmeB08hLN9cS7d1joV3ez0AUpQlqWmHzfc1V0J82FSNDqr/nAruV9pCu0dKbYLRSJmfXOqjryehizhvNHkndEi/ySQ+qe3MwndxuejI2CqzLFNBkA7xpgZg7+wFJwfnyfChvYiFnoK1SYNIry52DjtaioFwA1cvJnNHM6x4I+061qMfKW79U6tYCDB+8KDAmd4eYZA4uGJWqk7hp/m08JPK2uI9QR32SuWBsjhb+zXugKTefuxWzMxgbZNrCIqFmDB5jveJm4XhW3hQKQJ+urt4od++GaO8Pultl37vBAqg/2UrgV7wnQsHXDgLIsLJ9CLWV4PpoVi/UTesXnKfLjBq8qaO0A== 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)(39860400002)(376002)(136003)(396003)(366004)(346002)(230922051799003)(1800799012)(64100799003)(451199024)(186009)(53546011)(26005)(6512007)(8676002)(54906003)(8936002)(316002)(66556008)(66476007)(66946007)(31696002)(31686004)(6916009)(38100700002)(6506007)(6486002)(2616005)(82960400001)(478600001)(4326008)(4744005)(2906002)(5660300002)(41300700001)(36756003)(44832011)(86362001)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?a3d4eTFYZFYzRkdGRFZMY3lIa2s2Z2sxeGxMTHBIYmtkYU55NTdkZTd3cHQv?= =?utf-8?B?K2gxRjRjak5zekhPdFF1VjNxWmxnYU9yc3VnN1VoK0k4TE1OKytIcXVVbVdM?= =?utf-8?B?TlZzczBmU2ZmWnJHN2pFSGRlVVd4UjZUK3BkUDZVNmZhOTBHSDZhUzJNVlJC?= =?utf-8?B?VEZJMVByL2RpRm5GVGZySE00VHdXK0ZaYkx0MGY0RGZyeHZ0TVJybGZPNjlW?= =?utf-8?B?Y096VjdEZjdDMVYyV0ZiTHRSYzRYZTZoMTdIc3VlcFhZa1ZNNVRSajNRTm5i?= =?utf-8?B?SGN2RndBVGI1SG1DcU9WanhGUEl1anp3RDZTMjBzeis3SXU3cHZKNWxGa3pm?= =?utf-8?B?cUJlTU1wOXdYU3VaU0FhT1lta0hEYmpVZ3JOZENobmdkamJWWUsxWVN2bnpy?= =?utf-8?B?YTlUL3R2Q3lSQ3ZmM3NQeWxudE1QZzJqb1hUWU5FSU1IeW5h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thSource: SJ2PR11MB7573.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2023 18:35:27.6033 (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: 7DBvWt39ezSyNKkrorUMXPbj/l8Bn0k7XrFeRHo51A4FHz2CKR5oF5P3IpRHrpzebBNdG7WMeSQylXN6QtGSt3XtS+pegxOZlUjhivh+ZOo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB5373 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 07 Dec 2023 10:35:39 -0800 (PST) On 12/7/2023 10:33 AM, Ilpo Järvinen wrote: > > I already spent some moments in converting all return error -> return -1, > since all such places do perror() calls anyway (which I also converted to > ksft_perror() or ksft_print_msg() where perror() didn't make any sense) > there's not much added value in returning the errno which was not > correctly done in the existing code anyway. Thank you very much Ilpo. Reinette