From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f73.google.com (mail-wm1-f73.google.com [209.85.128.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 028EE198E6F for ; Thu, 1 May 2025 14:19:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746109192; cv=none; b=qWM+imRAfWmxtlk8wWuQeit+8gKwNFT+DebPhNvLbkav+yINQSBFHc5aAe8ozbHw+cPk8/OOPcNhqHHTcx2nbnRdLDh/b56pDI/zs8geQ1dcQx72oSrDRIOYNhIwkAI0ibiUToVxt8L1WSO7SWeigbpuVp4qlYyZCbwZ71mOZ7Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746109192; c=relaxed/simple; bh=RFwLAdDJzHnRsl1AiuqY7ErKiNdGVq/+PnAbJFngrNc=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Hoh9jvuzfRfr3aztizNCoCmdV8UFrUnqWn2uZ/EBmrHS26qGSkGauLYw0WNzqmq9BLW5PmcBtk/6BjGz39/1CsttvNxRvQMjYXCobxG8+lPgacqdANs8FWVR/y/KK5zpfnzJPyb2xdAlfoEKMnEd4cEXRygOTWCsb3qUTti1E+E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--jackmanb.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=33VStrY3; arc=none smtp.client-ip=209.85.128.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--jackmanb.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="33VStrY3" Received: by mail-wm1-f73.google.com with SMTP id 5b1f17b1804b1-43941ad86d4so3766955e9.2 for ; Thu, 01 May 2025 07:19:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1746109189; x=1746713989; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=TmEF1yP8U0niebBh9hfc5iyUEhI2jhPWqahRuFkaIQM=; b=33VStrY3M+0grhQPsFBLTNP+0qv1sXruXkpSi2qEN4NhjcNIKTQAYuEJAYQ0BoKIG8 jb1Yh1UjzmsDgorOQsKiP4KrIIHxdd6+u63LJm9Mk6YBdmv+M5ucvN338dOoNyfhR91V CRopi2hiNlsOiVOnOGjvjSqk0dyxZVVJMP9cAtAG0Gv9Mfe2atHMzdiix7UpzcOTDR81 HdiGvh1S3AxVRQUaa8BWaKBSzXZveALkGfi7lxoo80GAa/pMY0eqsZWpNchsWSXRH3vQ GboPpGf0LcbzX5ppqQYS7OkW9x9vE+a3kPnyLt8rVX4WJGf8xuIz8rv5M9LRxfloCJ3e +4TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746109189; x=1746713989; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TmEF1yP8U0niebBh9hfc5iyUEhI2jhPWqahRuFkaIQM=; b=bF3Kix/7+/HgeIE06ZFn7PEP8Sk0CotVOMStpRL55Nq4LlW1YF0Btmq7ZNqxLN6wVz +RdHN3oDf2WD+sqGLLe3LqO6SsqIz3zzZyTuXAUA5Uidu0ykeK8XsLh4DZp6SzKbzzR2 h1Sof9BrwAsXm4m9n14BcCm2zUpjV7ZmfP1i1K3v5TPG9k5iMG0DtHakHgzA5aDiLpz9 hwkn8uDMCDBgpDm5sxe0HyAZKP6x/+dwSg3s6pCqhTUklzlffNA6aIvR1P0EmYVmb9Xp aeMAjivAMGq+sIhpOnaq343OUZuAdnOE5f0OLBwvSvvIH7PGgXq8gAERn+nZBEfNP1mq wuQA== X-Forwarded-Encrypted: i=1; AJvYcCX3mknRNdTceh9mSLwnV1K2x/7RZ5gV6wPzkIIZ3YNaEmD32F313B6N4JPLAOui52ycjV9wcn+aY8UQDT0=@vger.kernel.org X-Gm-Message-State: AOJu0YyPIdskMbJ+WU0lOabe5Qahp/qnIR1+5ZPdBYG0VwfnNRTddJSg IsO6x5O4yqx5iJNaP8lGngkRU9OkjRQKYVQXspNIPPMmvgu87nuv9nSwzKtOtae3wJIMZr+8VT9 JrK58qIon8g== X-Google-Smtp-Source: AGHT+IE4OWD5XxcERH4cgRX5gY9PM+u+mzYGVEd/YlTx4e+t3SrV5tDi5azUj0xMuNVR7NdRXpnF4uWQLtuxPQ== X-Received: from wmbhe15.prod.google.com ([2002:a05:600c:540f:b0:441:b79a:76cf]) (user=jackmanb job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:35d6:b0:43c:f8fc:f686 with SMTP id 5b1f17b1804b1-441b64ed9d8mr27510245e9.3.1746109189194; Thu, 01 May 2025 07:19:49 -0700 (PDT) Date: Thu, 01 May 2025 14:19:47 +0000 In-Reply-To: <20250429123504.GA13093@lst.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250429-noautoinline-v3-0-4c49f28ea5b5@uniontech.com> <20250429123504.GA13093@lst.de> X-Mailer: aerc 0.20.0 Message-ID: Subject: Re: [PATCH RFC v3 0/8] kernel-hacking: introduce CONFIG_NO_AUTO_INLINE From: Brendan Jackman To: Christoph Hellwig , Cc: Keith Busch , Jens Axboe , 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 , 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 , , "H. Peter Anvin" , , , , , , , , , Winston Wen , , , Changbin Du , Linus Torvalds Content-Type: text/plain; charset="UTF-8" On Tue Apr 29, 2025 at 12:35 PM UTC, Christoph Hellwig wrote: > 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. Can you elaborate on that - does it introduce new fragility?