Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1734205ioo; Mon, 23 May 2022 01:53:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzA4a36HwWDL44dkINq3s8UzCJDpHkciezo9QQhCz12PObwLv12ssLEqcCYblj9NJhUbhIR X-Received: by 2002:a63:7c5:0:b0:3f5:d0e3:92bf with SMTP id 188-20020a6307c5000000b003f5d0e392bfmr19484766pgh.155.1653296027711; Mon, 23 May 2022 01:53:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653296027; cv=none; d=google.com; s=arc-20160816; b=wo5Ju13p2yYqevvE9ivB7O1wcYSA6zMtMg5v+e/ziuRNlZr0/ev53WcFbAEn+akN8I J1HEMUpSzos6JOaSNiTM4vfc7+8rLwkGCeIpN9mfvJpl+P/JU3JDgMvxh0636dOc/5k1 sHDL+MldS7Vk+B9C4ialAoqO9AcqfpXujLX38gXQ08H803IUe+g1QPJT5Z2w7FO7WId4 uqTqueF5/SMlhR5x+p3GxaXS91hbqpU6cCwiR0Fkhu48KwPvNOfYcCsbfnFUa8mvpLpX tVeY+SMIKn3pntv8oZkgLBtYum0xv53y/s3jEXc3GbcPMX6OKsZlwvPXTeglj/4RYZNJ ACgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=64FblKzsQYdGz6fqkSHe4/Mnt+TinFiqj0bwW9V3nQ8=; b=XsI0L+rxJKQQCgNe3sVI0JhjY3VVPhRJ83rq6L3woVFICgbe9T8Ap+S3+yzGaF1kxC NXBvKxrjEI8BA96A1bJefnCJCQTDWD7k5HP92p0g6XvRKeHjtV6VdddNLJ7JNDlJMhFj U1kG8yPcPWsjvAqPFkaIvC/gkNz9GzwtkGLVoC+co7nFwnN4wLUCjMdqx2+y/IR7IuRK xtV5WOD6qNkkZZ3oMsnwWbA/3wk4byoOwQW659Cehbq59bjrnJr3MPZa88ScOPjZrxL3 /nin4BthTTpw6EG88YpCpqpH9JuPYFPOv/iyMErCd0ye5fGLZ2sIec4nGr3KyjY+1j+F ZT0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=B+TVMJ5d; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id ip9-20020a17090b314900b001e02d8b314dsi8407522pjb.177.2022.05.23.01.53.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 01:53:47 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=B+TVMJ5d; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 89E3EBC34; Mon, 23 May 2022 01:36:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231901AbiEWIgS (ORCPT + 99 others); Mon, 23 May 2022 04:36:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232053AbiEWIgM (ORCPT ); Mon, 23 May 2022 04:36:12 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E45B364E0 for ; Mon, 23 May 2022 01:36:10 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id p22so24259522lfo.10 for ; Mon, 23 May 2022 01:36:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=64FblKzsQYdGz6fqkSHe4/Mnt+TinFiqj0bwW9V3nQ8=; b=B+TVMJ5dSczlHf5hzCe9CK0Uj1rFfGdBn7KefVcBPApXD17SLcM3OGQ90A1xIofsNv +PETzFrxt2sdHhthin7x03r59noroWWNCRxu4OfEK6QA26aRTpZpqq1oLVoUjmxVZvda cpPHPCK7bRtoU2IWYPwfuUSTLGO77qH94EGzJ8PZfafDZq502nwFq5CCO31iNOQGbTVV wNG3D8QAq7VKM1DR7MJXy9ZC+Q5cRd3RY51RArwhbSSMk8bwLoHs88uH7rKlj2lvFYHL MYfqjXitAlDssggn4Li97mzBL/j559MP3s0GfD6KeZU7LW4RkV7jJo2eBTJ5T+ZHiXLd pXYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=64FblKzsQYdGz6fqkSHe4/Mnt+TinFiqj0bwW9V3nQ8=; b=4hik1e1+FRVnJmZu5A4vnaauTA4IzNzPuePlC+nTIGaAO+9nyFJ5zHTQqYY3/Cl3Nd u+U8199dPhY4vFFSP8lTm0ziMLilR9tzP4Qf0bApBvpoNVgVYXsN/1K/Jh1Qi0J3g8wM GYF8wR1lIjnrhXQfhl1AkjWhL+K0axFs2ug/7ZxncDVVjVfRol4lxOdcP7YUhkrv/lzx GPZvvRI8hKy3LMIV09Ta1t6tk7UvN93S9gvNqWoGuNuuV11EfssefXIS5QE0utYapKA4 Qv83s6+Z9ZuE+E67W2DCkRo3dyGWJIf0L8IrtNS4g8A37k6WfNRJ8uYPHw54+orFoZtW TgAQ== X-Gm-Message-State: AOAM533AW1nRR8hnbRUAK3BiWdd/T/clmjy5Ha/aeTqq57oivWBR4Op5 LnWHP9bx15JYST64s6SuzkbCNfglTPwN9E3CeAF0ow== X-Received: by 2002:a05:6512:ace:b0:473:cca7:a7fa with SMTP id n14-20020a0565120ace00b00473cca7a7famr15173051lfu.410.1653294969007; Mon, 23 May 2022 01:36:09 -0700 (PDT) MIME-Version: 1.0 References: <20220523063033.1778974-1-liu3101@purdue.edu> In-Reply-To: <20220523063033.1778974-1-liu3101@purdue.edu> From: Dmitry Vyukov Date: Mon, 23 May 2022 10:35:57 +0200 Message-ID: Subject: Re: [PATCH] tracing: disable kcov on trace_preemptirq.c To: Congyu Liu Cc: andreyknvl@gmail.com, rostedt@goodmis.org, mingo@redhat.com, kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no 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, 23 May 2022 at 08:30, Congyu Liu wrote: > > Functions in trace_preemptirq.c could be invoked from early interrupt > code that bypasses kcov trace function's in_task() check. Disable kcov > on this file to reduce random code coverage. > > Signed-off-by: Congyu Liu Acked-by: Dmitry Vyukov > --- > kernel/trace/Makefile | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/kernel/trace/Makefile b/kernel/trace/Makefile > index d77cd8032213..0d261774d6f3 100644 > --- a/kernel/trace/Makefile > +++ b/kernel/trace/Makefile > @@ -31,6 +31,10 @@ ifdef CONFIG_GCOV_PROFILE_FTRACE > GCOV_PROFILE := y > endif > > +# Functions in this file could be invoked from early interrupt > +# code and produce random code coverage. > +KCOV_INSTRUMENT_trace_preemptirq.o := n > + > CFLAGS_bpf_trace.o := -I$(src) > > CFLAGS_trace_benchmark.o := -I$(src) > -- > 2.34.1 >