From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 A495B280A52; Tue, 29 Apr 2025 12:35:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745930114; cv=none; b=JFwTCJmo+VvLLK/nTtMaY1XkDJgKAxbUcg9puFZ8ySVag67XllV55l0h4MIIMLH4PSa3JZg25CwMZMyOYg+UH1lnSTe7+BuszaRnlYa0gf7+2oj2LxHxCdDn+0I5RjuGg0DWZCOmkrZST8Hni379SkU+POV8LN2b1xk75she8vM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745930114; c=relaxed/simple; bh=YA9K64SGJNboEqUy75D/7syj4zAm+0ahG0X4Cz9zGlk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GQNj/YK9l86LH6lCQTW7/MlwxLUJN0QVo1e+qJgWBnejwDysuKhbunXsUxNeO5WfquxSpoL0WwDyZ4nWicKaBjSWAsTlIBAAP+3zIgbs7X8oYhm6IEULcJVb/7AsqrDT9ONOHQMtfen8x2RdALnXYEs3qHphGdsrsOnsVqtetNI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id DBA7F68AA6; Tue, 29 Apr 2025 14:35:04 +0200 (CEST) Date: Tue, 29 Apr 2025 14:35:04 +0200 From: Christoph Hellwig To: chenlinxuan@uniontech.com Cc: Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg , Andrew Morton , Yishai Hadas , Jason Gunthorpe , Shameer Kolothum , Kevin Tian , Alex Williamson , Peter Huewe , Jarkko Sakkinen , Masahiro Yamada , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Vlastimil Babka , Suren Baghdasaryan , Michal Hocko , Brendan Jackman , Johannes Weiner , Zi Yan , Mathieu Desnoyers , Peter Zijlstra , "Paul E. McKenney" , Boqun Feng , Dmitry Vyukov , Andrey Konovalov , Juergen Gross , Boris Ostrovsky , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, kvm@vger.kernel.org, virtualization@lists.linux.dev, linux-integrity@vger.kernel.org, linux-kbuild@vger.kernel.org, llvm@lists.linux.dev, Winston Wen , kasan-dev@googlegroups.com, xen-devel@lists.xenproject.org, Changbin Du , Linus Torvalds Subject: Re: [PATCH RFC v3 0/8] kernel-hacking: introduce CONFIG_NO_AUTO_INLINE Message-ID: <20250429123504.GA13093@lst.de> References: <20250429-noautoinline-v3-0-4c49f28ea5b5@uniontech.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250429-noautoinline-v3-0-4c49f28ea5b5@uniontech.com> User-Agent: Mutt/1.5.17 (2007-11-01) On Tue, Apr 29, 2025 at 12:06:04PM +0800, Chen Linxuan via B4 Relay wrote: > This series introduces a new kernel configuration option NO_AUTO_INLINE, > which can be used to disable the automatic inlining of functions. > > This will allow the function tracer to trace more functions > because it only traces functions that the compiler has not inlined. This still feels like a bad idea because it is extremely fragile.