Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp901515pxf; Thu, 18 Mar 2021 14:31:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrMY+LYYvTC5XZWq70/yqY8VL4KxhKRdw+Xv/XNIGaEWsCJ4FRhEkVGN6RBEXE+68GUqXn X-Received: by 2002:a17:906:c0c8:: with SMTP id bn8mr618805ejb.445.1616103112802; Thu, 18 Mar 2021 14:31:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616103112; cv=none; d=google.com; s=arc-20160816; b=jgQG7qETVEbkgphdxeN8Np+QqW9dFQc9iaaF0GwpleTBtGYosT8y2snaIJgoWbXRDf 0iQAJdG4CsnRe7PmpGpdd4IZngeQXmDWV5MbaK8KhmHcuET8eJgz2ktQ2v9UffS2wZeg jqRwLBaf7pyizSJYNFmpv9VKDFYM5+DLhmlMkwLuPsTZgf1I3zpe/rR6G+6qi293mxxE DwxVCoqzG/qNNRtAnF8eBdgbDhJHRcLUTi8ht1c1eToIQg+gJdEi+wIroa/XpmsUNTRx fNYWh8teGRu1KQw2UWJjcRE6RbY1QCL1WCYCe9yWcoms2bhMcmm8mvWSbbL7hJr5UbnH HhuQ== 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=dbJ4tu0h2vfoq5iEJyv9eBMmHHIseIpXprgJl8iJhoU=; b=zr8fWSGXAxHI/VlkpAjOxl9SdBcC8O7NWRbGXmg6xZa3QXBY4dR+fZu5z3/X9MAFem No9ovvnS1GfJokmAM2vcUmhzaSmMHGaXgYcvR0dnR4thi4/qlvhFXm/NnEcfuADOgF6L b/ThG4ECsdrZsYOUUokVc4qSA9GEv5/QBtWecfyyvIPqBvrsLKy58ELNZB0s+sz8vYSo kS2QliPa4dXDJwxAItip08dbbUluHo62ttlxvDpCtNQVS7cMzNLAfwS02xLcxiC6Pjrc fSTtEeTIg4T7ueFcaaXKTF9o5nWU9Z3bHviWvrozZY9dNhEH6FdeXKfC3TcltUDD1zcl OlbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hrxzCDgY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si2444141ejy.55.2021.03.18.14.31.30; Thu, 18 Mar 2021 14:31:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hrxzCDgY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231137AbhCRV2B (ORCPT + 99 others); Thu, 18 Mar 2021 17:28:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230333AbhCRV1g (ORCPT ); Thu, 18 Mar 2021 17:27:36 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6D12C06175F for ; Thu, 18 Mar 2021 14:27:35 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id v8so1948648plz.10 for ; Thu, 18 Mar 2021 14:27:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dbJ4tu0h2vfoq5iEJyv9eBMmHHIseIpXprgJl8iJhoU=; b=hrxzCDgYaqrTpyC7RhpNufMokxP+WsITJYO5fQlSQA5Jp5rA4ymV6vYAHVpLuz1ZFK cyEaJxDUeU3I0W9Mly7jHqjk9uOizXul73LUJLaPDx2FbvSVs8qA0KWKFVMv7N0kklfn GoAXJtReybfqlKwh5myjGv+CNEq7s2he7RIszIY83DkPi9wkKG6gBAmXWEQbk6cDOYZK TMUiiZZeKoK1qmSYuUxT2dGBLTbuFTEbQDzOf8U8PSoor7WBQT31WfitypyWeSGKjclA VSLnyLpOQuH9MkI0zPMc6z3jRNGlHJzG7XIXITFtj8I4wLz2Bl79M0CVXVGqqXf33ISB CoSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dbJ4tu0h2vfoq5iEJyv9eBMmHHIseIpXprgJl8iJhoU=; b=gjtoiPCvOMSGIzvqO/tEnZ78JN1EkV9Vej4oVIsfZ4mEU3dlOl7HF3SlhRi+HK3L9p XzLF7i9Q66gnBBRwPJb8bsaSuFRMgwvjnq3IwXlOrmigH4YK5B0hFxN6LqAt41ILkHx5 iXdCOMIdpQKQOu44X7nr/UbGFP0rONPwCQ4q9jmtzsDK38cZ5xNY6R+yVatI/zm8s4U0 qI+TudEX3AZm3CwG8/EIyrhJGpSD0VwG9pCyR/Byvm58bVH+Dz7zhImHuPFTniPOOUO2 mRAnvlZAaW5s3pzhOIh1q6MMkncKebLkgcdTjEJjwaWKGpv+FHnuHvM4xvnh66cbFiDq lnbg== X-Gm-Message-State: AOAM532O/3zzdvquC1hmS4NhiKWW6v2XIISALa7SNa9WYmrg1so75t7U IAzl7sFmV+W/4/HNEuUtVkP8d2pe6Sqfyssaqs4hlg== X-Received: by 2002:a17:90a:f489:: with SMTP id bx9mr6141115pjb.80.1616102854950; Thu, 18 Mar 2021 14:27:34 -0700 (PDT) MIME-Version: 1.0 References: <20210312095526.197739-1-johannes@sipsolutions.net> <20210312104627.927fb4c7d36f.Idb980393c41c2129ee592de4ed71e7a5518212f9@changeid> In-Reply-To: <20210312104627.927fb4c7d36f.Idb980393c41c2129ee592de4ed71e7a5518212f9@changeid> From: Brendan Higgins Date: Thu, 18 Mar 2021 14:27:24 -0700 Message-ID: Subject: Re: [PATCH 4/6] um: split up CONFIG_GCOV To: Johannes Berg Cc: Linux Kernel Mailing List , linux-um , Jessica Yu , Alexander Viro , linux-fsdevel , Johannes Berg Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 12, 2021 at 1:56 AM Johannes Berg wrote: > > From: Johannes Berg > > It's not always desirable to collect coverage data for the > entire kernel, so split off CONFIG_GCOV_BASE. This option > only enables linking with coverage options, and compiles a > single file (reboot.c) with them as well to force gcov to > be linked into the kernel binary. That way, modules also > work. > > To use this new option properly, one needs to manually add > '-fprofile-arcs -ftest-coverage' to the compiler options > of some object(s) or subdir(s) to collect coverage data at > the desired places. > > Signed-off-by: Johannes Berg Hey, thanks for doing this! I was looking into this a few weeks ago and root caused part of the issue in GCC and in the kernel, but I did not have a fix put together. Anyway, most of the patches make sense to me, but I am not able to apply this patch on torvalds/master. Do you mind sending a rebase so I can test it? Thanks!