Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp343703rdf; Fri, 3 Nov 2023 02:19:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH3zIy+sM7ajPmhe2yGNkR5fs+wAKznKv7t1UpIwWzzx3Ws30yV2GUXLUtT+ZBcDgG3xSLK X-Received: by 2002:a05:6e02:1bc1:b0:34b:ac73:eb97 with SMTP id x1-20020a056e021bc100b0034bac73eb97mr25067142ilv.14.1699003187846; Fri, 03 Nov 2023 02:19:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699003187; cv=none; d=google.com; s=arc-20160816; b=eF9PZeEU6gjQtLpdu6yA3jrHJOUIY1evgom0staRcT0mzXHUlNEPdYH7GRLsPIeDzC xFeJpofXaTxA4F4Ty1aPvfGmvHgN8VekyHKTggGnq35edM0IMk4SusuZ3yiSB1HLcj1c 6lIluX8076uYOXiBTFWqSIqEzEH32NakkeBt9GvDpOMA8FeKJclAnESYUr1X2mqscyWe mDY3TTGwn/+2KIJWOglkOMXpXfJaSKmSV/8YeXnkgGxTohhWk9MQKg9zUTSrbqgjZcps 7Eu17UlyvCMsbMAznpEYHFLPPdAhKJHmmqRGueaxvYXjwZgz1DffPob7z3+iwYi97u6N +H8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=XrTRWnsDbed0wgIVFLCbJhEr0fsm+GRvlD7aLqOAX2I=; fh=XHJC3rNtFqy9NBdwfesynq0dG98cBzq8Qrv2Usg7GS0=; b=Q6+CBqn1E7nmQeNif3BYTDr9oP1i4fz/WpgjO3ghGz5CD0sF7Nii5UXOhjiHTwxCO1 70P/3h6XGciFzJkJ/M+gl44l1+e/CV5267EHc2d+x8dNaWHLec8iiFEwZZDkSz9M/O9y M3hjj3HDNSpG/sRRISqVFMx7xHlXVtmkoRy9qaZaIkTvTvcvyLGVxHMSxdbMHofd8bg1 4qwfJ/ifLlAlAfaqzSXUs5lQN/WpEiOMxT3x/gUqR3leWjVTFTgF7+V11sbqZVQtrR3d nP3g68VAcJice+HTBzoaujaReSIm7feys9wXQd5z35I13kz+OAXtC1G5CG0LVqLfB5Xy 98Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IcnCg9nC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id c23-20020a62e817000000b006b4ac79384csi1201413pfi.347.2023.11.03.02.19.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 02:19:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IcnCg9nC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id E03EF8266262; Fri, 3 Nov 2023 02:19:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346978AbjKCJTX (ORCPT + 99 others); Fri, 3 Nov 2023 05:19:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346954AbjKCJTW (ORCPT ); Fri, 3 Nov 2023 05:19:22 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6D9EDE; Fri, 3 Nov 2023 02:19:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699003155; x=1730539155; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=TQaE3gWuPoN+vhn5f8TIU08jANYcXszj149g9Srszg8=; b=IcnCg9nCre8cyjOWsHnO3sfnE2irH9nPTalc4BIgONngJG6Bo6/I7hu0 UC/BMsUX40Umog04o2/gxkkZMnJtMrGmUOrbF7zAnyHeDZjCPpTwwcFmV 5OatcCvC43wF27T5jDp506zAGXDqSf/OwF9kMGQ6kmCDpxR28xR4WiuLO SLow+WdHM+WbeIEpYOy0Q1TbQ6p5zxCan/Hr5lLrFqUnf1f09dwY3Frc4 /qtN1dgOlI5Ge1gmZCICKW+yL4RGNrbHCe3DBpWwGYle1BJEJBiIVfveH 7g9XZwggcTo4XBU0LzvHgLDSxcfwBOl4fd64Jf2GvehtyDSWF1vPhtiQ+ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10882"; a="475150034" X-IronPort-AV: E=Sophos;i="6.03,273,1694761200"; d="scan'208";a="475150034" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2023 02:19:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10882"; a="796567814" X-IronPort-AV: E=Sophos;i="6.03,273,1694761200"; d="scan'208";a="796567814" Received: from pors-mobl3.ger.corp.intel.com ([10.252.35.38]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2023 02:19:13 -0700 Date: Fri, 3 Nov 2023 11:19:11 +0200 (EET) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Reinette Chatre cc: linux-kselftest@vger.kernel.org, Shuah Khan , Shaopeng Tan , =?ISO-8859-15?Q?Maciej_Wiecz=F3r-Retman?= , Fenghua Yu , LKML Subject: Re: [PATCH 09/24] selftests/resctrl: Remove unnecessary __u64 -> unsigned long conversion In-Reply-To: Message-ID: <6af4deba-eb9d-f796-891b-fc179282b8df@linux.intel.com> References: <20231024092634.7122-1-ilpo.jarvinen@linux.intel.com> <20231024092634.7122-10-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-256014211-1699003155=:1725" X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,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 groat.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 (groat.vger.email [0.0.0.0]); Fri, 03 Nov 2023 02:19:43 -0700 (PDT) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-256014211-1699003155=:1725 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Thu, 2 Nov 2023, Reinette Chatre wrote: > On 10/24/2023 2:26 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 the potential loss of meaningful > > bits due to different sizes of types. > > This motivation is not clear to me. Is this work done in > preparation for 32 bit testing? This raises a lot more topics if > this is the case. So you oppose stating that second part after "and"? My main motivation was keeping the types consistent when I noted that the code does unnecessary conversion to unsigned long (that's the first part before "and"). Of course it has the added benefit of being 32-bit compatible but it was just a thought I added "automatically" without paying much attention on whether it's realistic to assume resctrl selftest as whole would work with 32-bit or not (objectively, the after patch code is 32-bit compatible but it of course gives no guarantees about the rest of the resctrl selftest code base). -- i. --8323329-256014211-1699003155=:1725--