From mboxrd@z Thu Jan 1 00:00:00 1970 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 A063C158A37; Tue, 20 Aug 2024 22:10:43 +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=1724191843; cv=none; b=Vx4bWAtp8VxyD//yL3YdOrGPspKAhjz/Rn6aYiXVg9qbKpC/CnIkduOOSXdjIJjci63WTsQhWM6tpRcMt97Xci6WEtpaGpCljcQIIOZro00vNukj2Qpm0zRqWcjVnadk3wWhRDk2TLSAELKu1krTm/sPAC+BgVEJfd69XWQ92hM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724191843; c=relaxed/simple; bh=GeGnXAbPkrNlGGqFsTuYIhb+LAUzOSx4oNiA55XCwcg=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=cIYKfFz/fr5y9Hk5NqJnzCnCZOp+/ituRUrxyyciCMomTiBvsB7cdXc4SQW6UFo6zUhwPnfjq/gZIO7DiF1yN4NF5+sYthq3+Ky5j2M+otkPrfaFm9Z3KuI1V60cdHVCvtsSz6Cy4PYCJGrdrDGQcLRR/nXmzQEJb9YSBzGEOjA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52AC0C4AF09; Tue, 20 Aug 2024 22:10:42 +0000 (UTC) Date: Tue, 20 Aug 2024 18:11:09 -0400 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: Sami Tolvanen , Mark Rutland , Linux Trace Kernel , linux-kernel@vger.kernel.org, clang-built-linux , Nathan Chancellor Subject: Re: [BUG] tracing: dynamic ftrace selftest detected failures Message-ID: <20240820181109.4203158d@gandalf.local.home> In-Reply-To: <20240821070539.981b42e5f3b939c5ce5e3a71@kernel.org> References: <20240819171152.12f05e0ae5c9472004d1b00a@kernel.org> <20240819112902.11451fe8@gandalf.local.home> <20240820005649.dd019cfa70a8955d91cf85a0@kernel.org> <20240819120244.5657eb2f@gandalf.local.home> <20240820100330.9ee6f3d51f22bb9bab7c4b83@kernel.org> <20240821070539.981b42e5f3b939c5ce5e3a71@kernel.org> X-Mailer: Claws Mail 3.20.0git84 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 21 Aug 2024 07:05:39 +0900 Masami Hiramatsu (Google) wrote: > Does the noinline attribute prevent embedding callsite too? I mean > > extern callee() > > noinline callee() > { > ... > } > > caller() > { > callee() // (*) > } > > In this case, does noinline prevent LTO to embed the callee at the callsite(*) > or prevent LTO remove the callee() symbol? > Even though we have it passed as a parameter, I think the compiler and linker is smart enough to see that and notice its use, and that the function passed in is a nop, which doesn't break the flow. Can you add the __used and see if it fixes it? -- Steve