From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8F90C25B0E for ; Mon, 15 Aug 2022 15:28:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229797AbiHOP21 (ORCPT ); Mon, 15 Aug 2022 11:28:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbiHOP2Z (ORCPT ); Mon, 15 Aug 2022 11:28:25 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA05E16586; Mon, 15 Aug 2022 08:28:22 -0700 (PDT) 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=UQvscJSsdXPOcAhWiT72N2tDM26GdYpPP1MYTIwMOU0=; b=DZvWZNNLgAtuRrCd+emoRnoaN0 kZbmfDu/UU5Mk0RiHQFzU9HOSbhru+lqvpUvRHJspE+Jg9D2l8UR2mnnjfv70SLzBxY+pa9i7QTgr HaP+GG1mlovcCxD3X+vFEpCfZG8BtM99V513EZfkvVLZ4qJ40JNad4vsuJbcYFJEM/upnCqc8ZFgD ll3+S6eN98hyfklfJ/A+GlaGOrh5tH6njgNwNm4rmfwUoeYhfR/f1NsDx8i3Pxn+xotA4YDyfToEJ iP2eehgX/JWt08hxxhW4J648ieaZm5emk/YIJbCNbZvLA2eSmHYrr9lcKJayvmLMxJ8p6P/6y7iT+ oJ2kvJAQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=worktop.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNc0a-002hLI-2Z; Mon, 15 Aug 2022 15:28:04 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 6E93D9801D4; Mon, 15 Aug 2022 17:28:02 +0200 (CEST) Date: Mon, 15 Aug 2022 17:28:02 +0200 From: Peter Zijlstra To: Alexei Starovoitov Cc: Jiri Olsa , Steven Rostedt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Ingo Molnar , bpf , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , LKML , Josh Poimboeuf Subject: Re: [RFC] ftrace: Add support to keep some functions out of ftrace Message-ID: References: <20220813150252.5aa63650@rorschach.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 15, 2022 at 08:17:42AM -0700, Alexei Starovoitov wrote: > It's hiding a fake function from ftrace, since it's not a function > and ftrace infra shouldn't show it tracing logs. > In other words it's a _notrace_ function with nop5. Then make it a notrace function with a nop5 in it. That isn't hard. The whole problem is that it isn't a notrace function and you're abusing a __fentry__ site.