Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2650570rwb; Mon, 15 Aug 2022 09:00:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR4almGv9qqtxLek5+DAYPs2uKxNkQHlJlnYKUOW8ySSqWg04r9jR6ZPcOMy9YgK/X8Buk1Z X-Received: by 2002:aa7:c1d0:0:b0:43c:f89f:a134 with SMTP id d16-20020aa7c1d0000000b0043cf89fa134mr14965544edp.4.1660579212078; Mon, 15 Aug 2022 09:00:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660579212; cv=none; d=google.com; s=arc-20160816; b=AJ7Tm3gX7RGf1pjDhuQnX42qQhzlk5vUXeSBL5WPCPfTcNA+knlbfKFsfD/nbSDifu ZqAQPZ/iG779x/OhwZjB1NemkGtbpohJwlYSsKoCL0cfxCexvFuF2t4KGAiN2GNTru++ KX5j8lxD6VfAD56H998klGLJCtSzHA/LAzc/yD1zq35SBUJmWcSACcRD+iMTP2eBCJjq px4jXCeTb6iyQzfnpYOGErsAiter96D/uRUZBqw7waRbfGkAqIW+C09nMifiPOIijOIJ MSftIWKcP6KXhceGfs0nEQF9+L9/njqNVog4md/n/AhlPwaKzXXfdOjIWL7H9KtXSMNB mhIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=UQvscJSsdXPOcAhWiT72N2tDM26GdYpPP1MYTIwMOU0=; b=YIkSayClM1ag6dI5pXug/whdZSxs0U9DXtiDJmcX0BrVNuWbajCLmL6+S5d63v79/d TlONIER0NuPej8Wn0ERJY19AuX/6xfD63rKh3YRaQk4k+18qAkwkCkcSd3NXBKmfNMhX wCPUqh6NO6ZmlYQUZHm3EcY17iX12hFNrgzjDVJ9wCWqPUR5Od8prJoeOd2KFAV5MqrO OOfJthpc9uFVpRfs4Q/Z+DcHAjHsOobKpCIhuYEnBjorET92PRn5sBwuzq7WMagPV7n1 KVKzm5BYYjaWDhWamex87nRSAn2IBwp4rAZWrawTORYXIlkxRMSPQEi93XvpsNjv5Avf VIiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=DZvWZNNL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt6-20020a1709072d8600b007309efc29a4si11625406ejc.691.2022.08.15.08.59.45; Mon, 15 Aug 2022 09:00:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=DZvWZNNL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231232AbiHOP20 (ORCPT + 99 others); Mon, 15 Aug 2022 11:28:26 -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: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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.