Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1485067rwb; Sun, 14 Aug 2022 05:08:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR4S2pv1QumjkXPpeXdHCieHdhGDyQZBdOhkAVO6VYZXUSKJoXZKKdfNbrpmJl5Fm1XIYYg9 X-Received: by 2002:a17:90b:350a:b0:1f5:6a5e:5d12 with SMTP id ls10-20020a17090b350a00b001f56a5e5d12mr23124682pjb.46.1660478936883; Sun, 14 Aug 2022 05:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660478936; cv=none; d=google.com; s=arc-20160816; b=x7Kis58gPJWU5AKRkksq/hzJpQXsGh2+YirnXpaJMZHQlRzqrpid2GTwtwc03T1sxW ZDY7qctWqnXOTYdf9b+P/EOt2vg3haXjZEwFMvKNTUSQjWvLbX08EtJZuiDcXQ/AJrtp wws5mcV4YRryanRtK2Bhoy0dL6sQrQEIBVayxJK+a/5zpWQ5BeSwStPpxiP4hb3YyEFC WshcMZsO/OZShYMFauoajRHRS0X4UgpS5NTr226ydW6YV3GAuPyn5yJQg1YM9ixhdmMW 1Ssjy4FfaJlJMLvNSuvP8jvC2oO7FOnMFHrHlHrz/D9HsqFPmQqrYbn11tFrNk+nf2F/ jpKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=pi+EDs0ju606Pax+MlZH9DTPnCl1r7EuF3TDHO5l/Zo=; b=K0ChIC1ht4oBwnXREsbrDr02LMje9eCCA54XQSXoCr59lNUnOHNYpsVEq9/CsCvYpB fgYr9+0ptLZKpyezZeNVfhjBJ8M8yxqkOR0zaZ1ku9Ifcx//wvltz8qhrFM+rrghXYeG r0OtolD2o4josnh3GS5vDkKf0emYSkOP1g/gY9pFHX9dZop3up/M8snZle+YECulPFN8 X8PruvRoZwqzp7j8K8YRoCvIUJnP1ErZgII+tnhp3Lfw22it6vIBnpRK+SDtMrbHywCZ 352HUjBOrF+jTwdF4OCnojfE37aEa6qARSpwLvzDPq1/JNSCTTw/5jsI4NwnCxOtD0HB UlaA== ARC-Authentication-Results: i=1; mx.google.com; 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 k8-20020a170902760800b0016d1400b043si7157462pll.395.2022.08.14.05.08.44; Sun, 14 Aug 2022 05:08:56 -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; 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 S230483AbiHNLcZ (ORCPT + 99 others); Sun, 14 Aug 2022 07:32:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229723AbiHNLcX (ORCPT ); Sun, 14 Aug 2022 07:32:23 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D52521811; Sun, 14 Aug 2022 04:32:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id C9FBCCE0B57; Sun, 14 Aug 2022 11:32:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C505DC433D6; Sun, 14 Aug 2022 11:32:16 +0000 (UTC) Date: Sun, 14 Aug 2022 07:32:15 -0400 From: Steven Rostedt To: Jiri Olsa Cc: Alexei Starovoitov , 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 , Peter Zijlstra Subject: Re: [RFC] ftrace: Add support to keep some functions out of ftrace Message-ID: <20220814073215.0a030a45@rorschach.local.home> In-Reply-To: <20220813150252.5aa63650@rorschach.local.home> References: <20220722110811.124515-1-jolsa@kernel.org> <20220722072608.17ef543f@rorschach.local.home> <20220722120854.3cc6ec4b@gandalf.local.home> <20220722122548.2db543ca@gandalf.local.home> <20220722174120.688768a3@gandalf.local.home> <20220813150252.5aa63650@rorschach.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, 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 Sat, 13 Aug 2022 15:02:52 -0400 Steven Rostedt wrote: > Index: linux-trace.git/scripts/Makefile.lib > =================================================================== > --- linux-trace.git.orig/scripts/Makefile.lib > +++ linux-trace.git/scripts/Makefile.lib > @@ -233,7 +233,8 @@ objtool_args = \ > $(if $(CONFIG_HAVE_JUMP_LABEL_HACK), --hacks=jump_label) \ > $(if $(CONFIG_HAVE_NOINSTR_HACK), --hacks=noinstr) \ > $(if $(CONFIG_X86_KERNEL_IBT), --ibt) \ > - $(if $(CONFIG_FTRACE_MCOUNT_USE_OBJTOOL), --mcount) \ > + $(if $(filter $(shell basename $@),$(NO_MCOUNT_FILES)),, \ > + $(if $(CONFIG_FTRACE_MCOUNT_USE_OBJTOOL), --mcount)) \ I believe there's some security and other validations that objtool does that requires it to know about the mcount locations. If BPF is doing something unique, and modifying code as well (outside the jump label and ftrace work), does objtool need to know about that too? -- Steve > $(if $(CONFIG_UNWINDER_ORC), --orc) \ > $(if $(CONFIG_RETPOLINE), --retpoline) \ > $(if $(CONFIG_SLS), --sls) \