Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1518479rwd; Tue, 16 May 2023 19:25:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Q3lPff8N7V5i+WxZDsiaHwoyNr4X/RmsoTYuK/w+E9rV3ooLmNA48E+pYc+RdssMwtysK X-Received: by 2002:a17:90b:3904:b0:247:8029:fb30 with SMTP id ob4-20020a17090b390400b002478029fb30mr42086354pjb.42.1684290338781; Tue, 16 May 2023 19:25:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684290338; cv=none; d=google.com; s=arc-20160816; b=QlHmWsG45Rkw97jsXjSpavDj8hpUImf++aUGOsIBOwCtC7Gcs7atAQJXCVYtp2SBTz 46bJgXzcCFjrdO1C/PvwOtdeD/5NOKWRd/JHGC/XOYIoB+NwOVfLaJGua7V9fXx1uHWG ULIJ4E0f/kx9JuHWy5pjnvFQGI51nM7ub3DZ4pXkZeouRv+kUDZejyvWWdaGHUktQb/r cNht7BUGE2nBLduQERKjQVcL8yDtnz2FLSjUy2IUX5EHJehVrmJjdFWrPPNmEnmCI+so LLzaK4CAd0ttiFItOsuRmF5EEpIYPezsLa6zZszg3/dxxPcfeUILRTkX1VDS3gPWplky ZXIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=HKuJtUgRGoAveoB6dPRcY53BxMHmJW4YivLP7XJy1Ow=; b=i/LW9E+uHeOeugBY1Kinzb3lDE2IORtd3nIOCaj22RS7dt/2RbPMZe2Zmob7nuyUQc 05wOubp+BoE2ge/5Gc2NG5Yl/9HeWNGKc0AbiF+K+7MYKXkuvBeBDn29aTLHhBXJbwyI hyD3Ccx41W9oAGf3Ifvw7oZCrhB5zhRCfFuIyMuFa0vToqEhaFlxbxgAuChRCA0CgkBS CVAwQZqpPx6MERA2ESr09ZlaeN2Njh4qkfBKkoT6GKPN+E8Z4vH23X4fXg7ncL/zPLOT N5lk9uDIRTn/60UiAdasT/DAfX0eUZDHxxOsMoPgVe6CpRv6sDC4mV3hD92Mc8Y93tNp pWLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=oEJH3YQ6; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bm18-20020a656e92000000b0053416d0b54asi7054582pgb.155.2023.05.16.19.25.27; Tue, 16 May 2023 19:25:38 -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=@gmail.com header.s=20221208 header.b=oEJH3YQ6; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231701AbjEQCAe (ORCPT + 99 others); Tue, 16 May 2023 22:00:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230436AbjEQCAd (ORCPT ); Tue, 16 May 2023 22:00:33 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D865A49C1; Tue, 16 May 2023 19:00:26 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-50bcb4a81ceso339780a12.2; Tue, 16 May 2023 19:00:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684288825; x=1686880825; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=HKuJtUgRGoAveoB6dPRcY53BxMHmJW4YivLP7XJy1Ow=; b=oEJH3YQ6WJ1R0OeRcB1/RwAm81/CWoDJLhbS/+eBIUbEEgBfrBcwY4jg02JHw4xZGl 2IJfYYQjgXKHbc1Ai3f81W4K9sTZCQAO+WSkEMbI1vQD/TyYDVSLtlwqQEy19TIbmi/y IJ/MxVA0NVWR4uhCrNUVK513twP+NIU3bPu/zGrg+ZsRCsm7yAAOOVkPR5qvMvkucsXm jG7Ood62c+ARTTr3hKMnTWA2o7RoVGHzT3y2QwOE9VPCWREMHlmxAO/DDiyFMJFJMxB6 q/w0HkiATVBsVpcbCZDmPe++RtEEFQXqwUBKisYQhi+wnYe9t+yadRw0fyTFkZO2Zd2M nQ0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684288825; x=1686880825; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HKuJtUgRGoAveoB6dPRcY53BxMHmJW4YivLP7XJy1Ow=; b=VPi+8BxDzwZ3NUcno3hAt7y7XRmk8puKqtDUW0s0v5cvp9SSlxaq/bX/c6R+oGZnzL DUWhNPpsLVqOMQExHcLKeBoqgKCc34dodv52FyzephKw+MYKE8zynKeQArcYGgGO54Y4 9M2zjlWi78AXAPwvZTtb4cGWk0+j+YUZAIwRXHMlNamudgGsyhrI1xMxlVYYgMoPjBnp 06htJ9aQOeRb3rQDn3TSnzKuzSxg9mwTzMSei3/epgPVCu4cxKsukHnSJPs7XiDW/2Rx o8x26cLymIF1JMBZUEL/nI9No2GUI4D1h2YqO7rCc4PGCc1ctleOmgcWuPpd9oOh1Vmq peEg== X-Gm-Message-State: AC+VfDwiavPPvboqUU1lv/blJ3LtnMotcyMoK8OJaP2sqX7mCBxJC8Bs REizXsSX5GsP3tN37oWVmh7I2Zi8AfesdMqGDs4= X-Received: by 2002:a50:fb87:0:b0:50b:c72a:2b26 with SMTP id e7-20020a50fb87000000b0050bc72a2b26mr857161edq.9.1684288824921; Tue, 16 May 2023 19:00:24 -0700 (PDT) MIME-Version: 1.0 References: <20230516071830.8190-1-zegao@tencent.com> <20230516071830.8190-5-zegao@tencent.com> <20230516102006.76dfd68a@gandalf.local.home> In-Reply-To: <20230516102006.76dfd68a@gandalf.local.home> From: Ze Gao Date: Wed, 17 May 2023 10:00:13 +0800 Message-ID: Subject: Re: [PATCH v2 4/4] rehook, fprobe: do not trace rethook related functions To: Steven Rostedt 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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 Got it! Thank you, Steevn. Maybe I can give it a try later :) Regards, Ze On Tue, May 16, 2023 at 10:20=E2=80=AFPM Steven Rostedt wrote: > > On Tue, 16 May 2023 15:18:30 +0800 > Ze Gao wrote: > > > CFLAGS_REMOVE_early.o =3D $(CC_FLAGS_FTRACE) > > +CFLAGS_REMOVE_rethook.o =3D $(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 =3D -pg > > CFLAGS_REMOVE_early_printk.o =3D -pg > > CFLAGS_REMOVE_head64.o =3D -pg > > CFLAGS_REMOVE_sev.o =3D -pg > > +CFLAGS_REMOVE_rethook.o =3D -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 :=3D n > > --