From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 306CD19DFAB; Wed, 16 Jul 2025 18:24:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.92.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752690262; cv=none; b=h/OQS0x3I8rR5ZSv9k02xvYgbx4Kd54EXIBEmaXWKAEGlOWITyAmrI4QsXMBBqILEuu1liX2dBfYTG6qtsWjkuz2z3Blu7A8ZUlytcyt1P4cwW0WXu0L6YNKpVl9JbplgsoTEp2jxA3RZsqj6VW7AW6tgTlkU84gE/QR8KmzYho= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752690262; c=relaxed/simple; bh=rq2sNcvGNSXQGHJOcJcmFZzvpuSjQI0+RgGNGsfTdds=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MNZUsoQiwt7prun+BbJU9B8W58wdqRcqS9irCV9CVtoQsJtKZQpdiLT6SC/wS8ZwyKVzduEsWbs0D924jMzzS5ObrONGwZDUghz3krZhQhB5BFZbRxPO+DdyK86b7ZduWxTihiVUjl3qgDTUmSTkX1LKnkSkPSWsj3XbUU/DT00= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=De6aRbuk; arc=none smtp.client-ip=90.155.92.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="De6aRbuk" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=c186ZNgQmAaLS8afZJIRv4pOWgMcJfYqLO2lB+Do3FQ=; b=De6aRbukFLaahYguOiPeZ/16x4 CRNwGMxNGkbljygJ9Ogege8ytbzXLVS17ASPMstF2omMKYMcUNJi6wQVwvaxhRFOKHq9IQojG3HpQ hEJkXl2XoC4IBh7p5HfVQdi9zasAB7FXaZKfUtLL8mFyYRGtR5Dckc/llRjSwNeQseKADmksy8MX5 ucUqRkCp4wjS7j6iWfwAvAMjNgAXYUpIVFHlS8s1RDy4/Rj8B02iF3EcKp9b8VasQ/9JxgtGHg2N0 pNnRv11KacQ6ZsvhoSUVFOJhiD8YkpjyCLl3/gN5j7mN/Nz1Nbq8h1NdNXsLE5hcZrtHaSDEKMkZU IINqJGgA==; Received: from 77-249-17-252.cable.dynamic.v4.ziggo.nl ([77.249.17.252] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.98.2 #2 (Red Hat Linux)) id 1uc6nf-0000000A9X8-29NZ; Wed, 16 Jul 2025 18:24:15 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 63CAB300230; Wed, 16 Jul 2025 20:24:14 +0200 (CEST) Date: Wed, 16 Jul 2025 20:24:14 +0200 From: Peter Zijlstra To: Alexei Starovoitov Cc: Menglong Dong , Menglong Dong , Steven Rostedt , Jiri Olsa , bpf , Martin KaFai Lau , Eduard Zingerman , LKML , Network Development Subject: Re: Inlining migrate_disable/enable. Was: [PATCH bpf-next v2 02/18] x86,bpf: add bpf_global_caller for global trampoline Message-ID: <20250716182414.GI4105545@noisy.programming.kicks-ass.net> References: <20250703121521.1874196-1-dongml2@chinatelecom.cn> <20250703121521.1874196-3-dongml2@chinatelecom.cn> <45f4d349-7b08-45d3-9bec-3ab75217f9b6@linux.dev> <3bccb986-bea1-4df0-a4fe-1e668498d5d5@linux.dev> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Jul 16, 2025 at 09:56:11AM -0700, Alexei Starovoitov wrote: > Maybe Peter has better ideas ? Is it possible to express runqueues::nr_pinned as an alias? extern unsigned int __attribute__((alias("runqueues.nr_pinned"))) this_nr_pinned; And use: __this_cpu_inc(&this_nr_pinned); This syntax doesn't actually seem to work; but can we construct something like that? Google finds me this: https://gcc.gnu.org/pipermail/gcc-help/2012-February/109877.html