Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp787444rwd; Tue, 16 May 2023 07:45:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6qEHZWOTBjxwNjn84moWcRvDn+PTFQgThJkDDcLXkc4uTLC7r7wD9fUKiiH3ME4KNM7Xsa X-Received: by 2002:a17:903:1ce:b0:1ac:a02f:c9a4 with SMTP id e14-20020a17090301ce00b001aca02fc9a4mr29143949plh.4.1684248316093; Tue, 16 May 2023 07:45:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684248316; cv=none; d=google.com; s=arc-20160816; b=U3qqqdR9p2jzcQ+08IOw1JnrPKvjqM9yenQY4J+8zcWdZrVHlUqAlDyqqMGGFRLL47 G9HW9s4jwfGAhAag3mfF4844bkyZvGH4pcXf+oQsu8ANb0SeTVjmn1gvBDO8lT0KD/lc tJOFIrwcOOACl8/74ciqcQw16WEHQ2LcNDItFjpTg90lilQjAiHHwBLLq8WHDBJC39wl 6bgNZaVo8vRst42/wXXJIXuNhlHTFqrJjWsrIkgObENNai8zS258jmTLMNFJ9lAbVLXt DtWx6SfDJF5xZpJSZit1flu1nsnUshF/pfDYSC5pOq3B4ZNhS2JeQiBJGEf3CxiWCMrr pVNQ== 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=MLJZT4giqJXoLL4qROVAqqCPAS7upiENshWXVB/uyP4=; b=hs/khmTuZE6njRTO17FVUe11T+B5OkdbahiUCr5RYwb51vEV4569QxEkRutjNAnw6M 8ww1+ctHd6DlVmM/LXJO3xw3NR2e1clckgkUVBtbVGzcbXYKX9sNAj8kZjJ+eEM57TUU wMDgKSKhp5K7lD/UCEvWP2eRq3FFI3tD5pYVg5A75h8VuY1li9eQYL+7XN2LAVT6YR+x ouTEuR5tNrFWzWMSigxD3qvQfnIEITofFAwcgsjtXtBkdGiCz0YMxDSLKWowZ1k/OLPr a9kF8iC/sVCLpn55b2wKCSEEuQsabaMXrsRcdTM8URz/fLHCHB1EFO4hGMWTpHfUxpG8 fZjA== 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 h9-20020a170902704900b001aaf6228a75si17672870plt.88.2023.05.16.07.45.00; Tue, 16 May 2023 07:45:16 -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 S233061AbjEPOVB (ORCPT + 99 others); Tue, 16 May 2023 10:21:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233899AbjEPOUe (ORCPT ); Tue, 16 May 2023 10:20:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF6E593CC; Tue, 16 May 2023 07:20:20 -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 dfw.source.kernel.org (Postfix) with ESMTPS id D60DB63A9D; Tue, 16 May 2023 14:20:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FB3AC433EF; Tue, 16 May 2023 14:20:07 +0000 (UTC) Date: Tue, 16 May 2023 10:20:06 -0400 From: Steven Rostedt To: Ze Gao Cc: Masami Hiramatsu , Albert Ou , Alexander Gordeev , Alexei Starovoitov , Borislav Petkov , Christian Borntraeger , Dave Hansen , Heiko Carstens , "H. Peter Anvin" , Ingo Molnar , Palmer Dabbelt , Paul Walmsley , Sven Schnelle , Thomas Gleixner , Vasily Gorbik , x86@kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-trace-kernel@vger.kernel.org, bpf@vger.kernel.org, Conor Dooley , Jiri Olsa , Yonghong Song , Ze Gao Subject: Re: [PATCH v2 4/4] rehook, fprobe: do not trace rethook related functions Message-ID: <20230516102006.76dfd68a@gandalf.local.home> In-Reply-To: <20230516071830.8190-5-zegao@tencent.com> References: <20230516071830.8190-1-zegao@tencent.com> <20230516071830.8190-5-zegao@tencent.com> 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 Tue, 16 May 2023 15:18:30 +0800 Ze Gao wrote: > CFLAGS_REMOVE_early.o = $(CC_FLAGS_FTRACE) > +CFLAGS_REMOVE_rethook.o = $(CC_FLAGS_FTRACE) > > endif > > diff --git a/arch/x86/kernel/Makefile b/arch/x86/kernel/Makefile > index dd61752f4c96..4070a01c11b7 100644 > --- a/arch/x86/kernel/Makefile > +++ b/arch/x86/kernel/Makefile > @@ -17,6 +17,7 @@ CFLAGS_REMOVE_ftrace.o = -pg > CFLAGS_REMOVE_early_printk.o = -pg > CFLAGS_REMOVE_head64.o = -pg > CFLAGS_REMOVE_sev.o = -pg > +CFLAGS_REMOVE_rethook.o = -pg Unrelated to this patch, but someday we need to change the -pg above to $(CC_FLAGS_FTRACE). -- Steve > endif > > KASAN_SANITIZE_head$(BITS).o := n > --