Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp50136lqh; Mon, 6 May 2024 10:53:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVVl1qiUF5H5mMHHkjIWtOcRnxoYaULvAvbEB8ONewi5+XSmpBsc1llEvL93NGI9ZRo8AqA7101YaQ2Ddya8KJp0OwoOIvt8cfSTfX1lg== X-Google-Smtp-Source: AGHT+IHjhwnqcGvE9cp9FRkO+UlRinL96cekEdzmdmi2coPg4kuh594FK/BEgTLzG+pAqogDERCp X-Received: by 2002:a17:902:850c:b0:1e4:2859:e59b with SMTP id d9443c01a7336-1ee635638b7mr4202895ad.28.1715018032536; Mon, 06 May 2024 10:53:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715018032; cv=pass; d=google.com; s=arc-20160816; b=LCjSG7r9Td+bykvU52W3iY9h1dAoDlAQtGjOz/ZodeFYbRV47kdd/bvf0sEPIigkLm Q41cNjN1gnppHnatNex2dAQnvGGms5AVY5CBpUnrj5aHpbYH8H+XFOYKdLxyfc52hd9D 1s7nDW5NYQndfHijm9T6jIDTcOLZzKQ8FagrgHaBHXHdLPpbH4JeowJRcuamIfHLfTiQ m11+8Re4jvueyXABdRJwaPisDwCs3qQ+dxuUCw8gsXpkIBqBjuFRid7IliJ/bY8czy6F /SEDalFflYyUeX7lypBgW9hH7L+S5ABcdt6792KYtYrVLYHDFJ+4ydLtCLj25VjqnVX2 Atjw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=FUGMMupAPyTjhsBm+JyojI6wKDcTvEPB7bwOihmPhF0=; fh=GPZK+tFsoqgr3qj/KZTAYnMLYXjcPi3fRBLD0YXLbYE=; b=u6c41tBNa/l8qjcZn/piXOJKO9M36S3MCBT8FKn2rSlfooRP/wdQCLGKRft5RFfVBl 25PLvha+ZgGgXeGt+tepRWbUU/ggKczSFDBK3vVV+NZXdekybGRrUKlO8pWuqcdQvCvI c80W0E3U9AFyvBMllPKfJt2QSlzWEH5XxZPlM51BUfUfEnshBpSlucaS0ftfttxg3HAt Etr8bliD9K3ss/M7iUw/HlA54pYq1/ArAmDBDU/oUvG60T5MOiD19caODlolCJXTEE9B L+Tk4IgS2lbFu4LxA2MzHuKiSEMAqYE1lpwz+QrYDRJzP8Ih7yZFX5tlhpPcjVXP8IdM gSvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pLJbixAP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-170254-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170254-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id p4-20020a170902ebc400b001e0c95a0d66si9142152plg.32.2024.05.06.10.53.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 10:53:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170254-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pLJbixAP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-170254-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170254-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 25539B220F8 for ; Mon, 6 May 2024 17:52:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE99C1586D3; Mon, 6 May 2024 17:52:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pLJbixAP" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0D00D157499; Mon, 6 May 2024 17:52:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715017932; cv=none; b=ceHVhuRO0g81fOmLrF+5AGi8RZsBiNKuTfoEpsh46ky4897DWIiBC8TkkiULltjFPX3lkooHttufMYse3ZUClIOV4jUsTwfTrd6UYF9mqmkdcB0YneBlunZEOz+30tAroTGUhuMJmdy5eoKMyoJTTLBTMVt5XddCpm2bpJa0MTw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715017932; c=relaxed/simple; bh=nRh8dpWji7uY8eJ4RGAFfGFlIL6vXEenXmag2d8In6s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EauefInqws9Zm8TmtvcK9Co6086ooAvN1w2OAll4rp550Ziu6eeRqUNTT+37MI0Xje+agUoDR2nOWGCp4KcMt7dqJXe/7sKFGmgvTcc45NseUI+TU0uu4peHdCezaaOKz52mJSaCwBubnEKQiF4P4MomR4bQ+G4wWNTSWcLwjUM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pLJbixAP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA6D8C4AF65; Mon, 6 May 2024 17:52:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715017931; bh=nRh8dpWji7uY8eJ4RGAFfGFlIL6vXEenXmag2d8In6s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pLJbixAPS7iJw4/Bu7BSb6XEUCh17iRnmwsmuaAkEzweUezDHmrF1x3Jtrmku21dO v+p8pNWM+QE7jXMUdWsbVR2YGosz1I0Xkd9m1tGVE5S7GcNJ3MjWgAqme0fPnjq/pt 0vZvXAhxda6uReLJ8sR7duR6FCAWEBwTJADc23WLPSBCiA24Jb7iIZFuVnu2RGC356 FenII2FLayRBEomafXN6Vrq/ilwhjfdVAOJuTUd/f2Zewy8LN2Pxjon2RxGZf8x3T3 WQjAkEOdXyxkyhypg1nhpAESGr4QGRQHsWkxnOae0UxjmTjL2XPJAAEJ9HTSBgbY7i WIYxVm/yUNq9w== Date: Mon, 6 May 2024 10:52:09 -0700 From: Nathan Chancellor To: Miguel Ojeda Cc: Yury Norov , Miguel Ojeda , Kuan-Wei Chiu , kernel test robot , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Nick Desaulniers , Bill Wendling , Justin Stitt , linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 1/2] lib/test_bitops: Add benchmark test for fns() Message-ID: <20240506175209.GA1425562@thelio-3990X> References: <20240502092443.6845-2-visitorckw@gmail.com> <202405030808.UsoMKFNP-lkp@intel.com> <20240503041701.GA3660305@thelio-3990X> <20240503155401.GA3960118@thelio-3990X> <20240503222338.GA1908482@thelio-3990X> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Sun, May 05, 2024 at 12:42:50PM +0200, Miguel Ojeda wrote: > On Sat, May 4, 2024 at 12:23 AM Nathan Chancellor wrote: > > One gotcha that might be worth mentioning is that this combination only > > works on functions and non-local variables (i.e., static or global). > > Yeah, since the `unused` one only applies to that, right? No, unused can be used with local variables, used cannot. https://godbolt.org/z/1hroMGzb1 Cheers, Nathatn