Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4178965rdh; Tue, 28 Nov 2023 14:15:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHSoG1wziRpHx/zzZ0DmZTUxJfwqjm2+AnpIbLPvEL/fd4fC+J3EqgAOroNN3fMgl46fwMj X-Received: by 2002:a17:90a:357:b0:280:cd15:9684 with SMTP id 23-20020a17090a035700b00280cd159684mr17727929pjf.37.1701209706759; Tue, 28 Nov 2023 14:15:06 -0800 (PST) Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id nd16-20020a17090b4cd000b00285be1801d8si6614944pjb.101.2023.11.28.14.15.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 14:15:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FwvXxyGz; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 008C781F8418; Tue, 28 Nov 2023 14:15:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346548AbjK1WOr (ORCPT + 99 others); Tue, 28 Nov 2023 17:14:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346383AbjK1WOp (ORCPT ); Tue, 28 Nov 2023 17:14:45 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F958DA; Tue, 28 Nov 2023 14:14:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701209692; x=1732745692; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=nFheWMl8Q6PsgRdxEk37gC3Lb/0iSEhQVLADUqotUn0=; b=FwvXxyGzbaHtIMt72krwEVRdDi1FvryUgy2RFVXEzP2625YGH2NfmcLN aQRmsUV6xA+GLpDzT8Jrr2MwRoXvp92CcDkbJAy+aN0RWzLWpZHHjrM3M qkVdfzCbGVzM/zm0+7YQyZvw04dW7XKDAeKlsRAhbySdovDoIs+DOFuAR /vw7cVNTqrU3/hpqtxFyic2iQsnpbMnxEcgTG030MIo+CHyBSqQzu7BnO L6Ng/B5G/hdL1UH4JYew4kMQLZX3q6bw8HSGH2MbWjyqB4jlJR3QXNiM1 Ncpbbzjpu1A4B8s/jI2D4Lk66WEwIN728bRjzz99zM/XEhy3hOQs/p4Ra w==; X-IronPort-AV: E=McAfee;i="6600,9927,10908"; a="390201643" X-IronPort-AV: E=Sophos;i="6.04,234,1695711600"; d="scan'208";a="390201643" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2023 14:14:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10908"; a="839207991" X-IronPort-AV: E=Sophos;i="6.04,234,1695711600"; d="scan'208";a="839207991" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga004.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 28 Nov 2023 14:14:52 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx603.amr.corp.intel.com (10.18.126.83) 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:14:51 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) 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; Tue, 28 Nov 2023 14:14:51 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx611.amr.corp.intel.com (10.18.126.91) 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:14:51 -0800 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.169) 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.34; Tue, 28 Nov 2023 14:14:51 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gjwaQmMgiq23e7mNQQ5OIVWCfZptOiBzdH+4GQ92bMpDDTl4nWkt2oEfSxXFngG+6c2f9Ic+WFY0YXRxaNFUvO7JdWi0QBD2M5BH+vj/RI0Zhlcy9PzkAtDdwbBI3k5yBixRfEAcGBkpTqSwdLh3Cqv1ceacWgkLpmVyU2ZhHmoK3em+ply1qTGIp+idiTdzz2Eyb/g3bbce7zwunGXJTJqvwLQLBU/ImPDcDqLD3fh+Hf1FhUp43wznze/W1rdSqYyWIWNIBJlD0Xa8AKTyuL8G2OsnniAUmJz11/5XFAsCPH2OSFw9dRRt8jK2nfxwtu86F5JUYQqa1YJQ6BEXhA== 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=FJnFfK5BgEvWg2jC0F1XCvMOt8C3z/SluwbAcUGP+XM=; b=GrldhCRNkVtgBAfTAYq9Z0jduQ7PrsaLYUUgZjrxYY+AgaBB2/qDsV9xXJgugjg9qXXb4KlfAPHyYynyJLVea9KJqI4e5cYyRgKtRtjtLrzlZ1XMWIORz0RGZ9sSX1kRMvMQ4aH+L0gwZ7YyuCTezuNttCRfX/ljUXSesmXUWDnTg1XgxS1tNzZBhQjRTu0gbekKgQChrv0scdKjg1T//aABT9qs/MgY/GZH0ZPElzJN0cJqYUw7y3dVz8am2mLUsLmhfSrcbsEsGR5roFzXcGMuxtU/vfmAghRNttWOJIPSHIwaQdCZOut+D4UdpiYOV9RhSy/f7oVlfu04atbaTg== 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:14:49 +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:14:49 +0000 Message-ID: Date: Tue, 28 Nov 2023 14:14:48 -0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 10/26] selftests/resctrl: Remove unnecessary __u64 -> unsigned long conversion 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-11-ilpo.jarvinen@linux.intel.com> From: Reinette Chatre In-Reply-To: <20231120111340.7805-11-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: 8b9b968c-c6de-4f5c-a674-08dbf05f6fcc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: V8JcFdYeL3Y0KqBBPBakCho/yOK6QpM9AXalKCBim+aiohTsipPPXru5vS2QNt+NGUJWkqXbE2Z8vgV4TezBVFak8N9fttNaC2GTQqRUFoguHvZE3llQTJ74m+WXGO7U0h5daaMq5vhFqivRGbHpKHnMc9NDc7lS/xmTnJHNhmgCiYU801qyJlWTAs+jV8t6wi4/+KCsuy5zJ+VFTOthhT73+nMVxkhanyMWmwcBttpoJ5AJ7SzXH/WMJTmjQEFaEvyvEOShN5mTONBuRpgyjKgvJHx8VapYI+JcI2Y3wGGyetIhZVYxUUCW9tyR6GEkm9l51e5BZjcoPM0QMkh8eHT0QfUR8TKdXo2lnicT16ZOMVMj2uZwhDU3Va48VIU0yayMzi1HdNFC+mtyypZXLC/OaClynJfrQ1e1UqWsGt+93IufzytvFkVwfOFYOGaEZwp10XIu1Ma1f0O1V3fvFN4sJP2mlProIA3MADXXyz4gPpQVvxi7Ux7Rnezzmc2GxXocns3oXbHfsyUQW+ghDzM5jx4uk8+brnk7cS1kFk5OUtC9GtFsiGBftFHA1rPnzHCDSnfl2ujMETU+IRIIq9jiUnct9vkLP+N9Cqs3XpG6GgkcaoAate0RlrXT3vGvekWCN9kYihC/yzOCUCbtJg== 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)(4744005)(5660300002)(82960400001)(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?VW5ocnJKQnVNalNNYTZ1M3Rmak9rNU9GY0Nwb3hQc3lrNHF3SDRPdTh2YlBh?= =?utf-8?B?R08xUnZ3Y2xzUk5LaUdESGdzY1NmNjc0d0FVeXZySU1jL0U2dWwzNkU3Sm5i?= =?utf-8?B?T20vVllzTTUvVTl5ZDRFaTFRdHJPRWhGQVBuTlNBUTE4L2pvM2QySytGNlNW?= =?utf-8?B?cktkMW10M2xsVmRqMjBYbTJhdy9EZGx5cHpLelkwWDFucGZnS3psS0srNXhC?= =?utf-8?B?bTV6ckg2TzVIMVhXSTJRbDFZbFVBTnNyMUl1S2Rna2Z0SCtpN2NhaHVOOUJ1?= =?utf-8?B?UWFZLzBNZlVVUHNjWlljdmZIb2xEbFhoSHJiRHhGZWNZZmRZU1A5c3poUk9r?= =?utf-8?B?RDRFOUtGR0hrQ2tKK3NDUEkzWGMyV090TzhjMWRpYVV4VXZOSFN3Z3JYd216?= =?utf-8?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message-Id: 8b9b968c-c6de-4f5c-a674-08dbf05f6fcc 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:14:49.2406 (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: UZ/r5Dzl51p9sUGtfqBG0WZljdYQT/OPM4IbEGSJcaUnHAH03VooZDPe4tZuNJNqRyaYKRBAkUf2USW7zKruXFe7esTNxmY7d0jdSqD3LgU= 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 morse.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 (morse.vger.email [0.0.0.0]); Tue, 28 Nov 2023 14:15:04 -0800 (PST) Hi Ilpo, On 11/20/2023 3:13 AM, Ilpo Järvinen wrote: > Perf counters are __u64 but the code converts them to unsigned long > before printing them out. > > Remove unnecessary type conversion and retain the value as __u64 whole > the time. "whole the time" -> "the whole time" Even so, this does not seem quite accurate since not all callers of show_cache_info() and print_results_cache() use __u64. This seems ok but it would be nicer if this was highlighted and not use "whole time". > > Signed-off-by: Ilpo Järvinen > --- Reviewed-by: Reinette Chatre Reinette