Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4013211imu; Mon, 14 Jan 2019 13:13:25 -0800 (PST) X-Google-Smtp-Source: ALg8bN7nKWBky4pZtKXoqXs5oN/PipOPjzppVqitvyZfy4IxH7a+iLOnK7ouBsFaSJwolHhWoBbZ X-Received: by 2002:a62:1484:: with SMTP id 126mr416767pfu.257.1547500405478; Mon, 14 Jan 2019 13:13:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547500405; cv=none; d=google.com; s=arc-20160816; b=Wp1X+BOGE4rKLRIPcAsilLjG7jqWq4kC29GBcRtcnlijJC76Ly6ODWwf3z0HaBnvr+ dFNo3TXSzyqDUfwvh+tN4/2M2oac5OpSXvHwkLYUifPPwq2sdGu41AfXlOz8OsuYEjvM 8hmVqh9eGvXsAozd+MIZVTf6eZ+utgGIuHAKaBqbPLVOdikh3L4joicfr+GaBWkGUFSc 00l+L/35JyDfJrZwftCSlfwOMW+c6a4B0bKrtx9SOrGObV63U42032xdT7yDDM1QTA86 kGd0hDM6+e1ZMlnJ2S2VaJHBYM4FfdY/73QBJ4E8du/4uWCpbHzKTg1lI16aJ+YaJS15 rpsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=EJpB+Q6ySg9/qHqPWr9mmqL7i7+Ucdth2nuHzirNUgg=; b=sG3wXVFBcGGPtJpJTjn6ZnZ+aE+j7HXak0pntk+bMKbLARN6pqb8vOhwjnP96PtPmD a/G0NOl2gg1cFv6+RqGvTwMIOiBLoHpJZrJ8yBOO5zBS0qlut3GJj+ANSlykOUM6bsRo STzqjmT76DWXPnVdcl7LFRacYZM+2ugEnUJYmmU2hmARNZbJfSwYiU02G0vCDtPJ83uR cQBthc1+IT/6FvPTGw9aXXtJh9qLsQWwE9rs3o0lO6Kl2dKV6muhlwn740BNvOv1I5gL ws+Ql7pqL1v4ZFAtJxKkB6jpBTF2Vylx6F483SQw/ovbwnXrAc7PFZgE9Hm/2jskiYNB 96sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=NVyCm6OF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id m19si1156356pls.437.2019.01.14.13.13.09; Mon, 14 Jan 2019 13:13:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=NVyCm6OF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726864AbfANVMF (ORCPT + 99 others); Mon, 14 Jan 2019 16:12:05 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:42305 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726777AbfANVMF (ORCPT ); Mon, 14 Jan 2019 16:12:05 -0500 Received: by mail-pl1-f195.google.com with SMTP id y1so190596plp.9 for ; Mon, 14 Jan 2019 13:12:04 -0800 (PST) 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=EJpB+Q6ySg9/qHqPWr9mmqL7i7+Ucdth2nuHzirNUgg=; b=NVyCm6OF4WPvnjGXTPqTJJbuBfShU3XoNMyHWGqvEdlKzMsROdN4ALsW2wmbYQXEPC m4kTIKR6awWj02OwQ4cq2EzEjBW3VQmwWlAagVqvvkzcVes3TdOhlHfiTGkfFXpEISz8 DfCbSJ2ur26AkCqnjqWkKdVqwXbgwkBzSYjarl2C4gqJ2wVFc/m+ec4irRLcAYjL0ueN +4YKZK2tyNTRDvZrjf/RGePsvj9LuOS2Za546GosH1ujprnVxTZYjbW6PmgiEDto0OVc bVtOlV3K19SYKnWl4eHF9zaPrkz+HszlBCsUiCHi+5KdS0LSjTxyAS+w2hyEUOqNqfHC 76ng== 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=EJpB+Q6ySg9/qHqPWr9mmqL7i7+Ucdth2nuHzirNUgg=; b=YXMUtK2/oPjtC1yDwOEbearKFqW4hYL3GZuz3zoQQcrIyHYr79YwSxfEluqeKzQ96U KguxxlxA3ysKdXWtBN1XqzbgGzjhZNKTt/y+2c8HU3hkwxpfJ7lVTt73UKwDnaeIA5MF 7M31lrzGAQPCqFJbgu83btmgZ+eXgC05Jpu2xpaeXQ5syddnLnzH62onTK8LHm3k6AbH NroOAMcSjZLgFx72jjBzUtgcO5eO9NWWjomZTyX2w+nnGEamWCtmij7w7ZvM1D9hbZXT QxHmn9xa/vfwss78gtSQqLjd0Z0lzpDBWCBK9dgjDkL2PQhjxwHo9GD1HbbAA51/waOO 3CbA== X-Gm-Message-State: AJcUukfoVp4kL8Inf0omCdrzIxxc1sTKjt7R7S1/yApY0FuL0RX1gDl2 xl3m2ZPiXbzSfxTtBid/ZGRjTHn7U2sxY8DMD8uldwJlUg4= X-Received: by 2002:a17:902:4464:: with SMTP id k91mr485840pld.13.1547500324073; Mon, 14 Jan 2019 13:12:04 -0800 (PST) MIME-Version: 1.0 References: <20190114210426.177543-1-trong@android.com> <20190114210426.177543-5-trong@android.com> In-Reply-To: <20190114210426.177543-5-trong@android.com> From: Nick Desaulniers Date: Mon, 14 Jan 2019 13:11:52 -0800 Message-ID: Subject: Re: [PATCH 4/4] gcov: clang: pick GCC vs Clang format depending on compiler To: Tri Vo Cc: oberpar@linux.ibm.com, ghackmann@android.com, LKML , kernel-team@android.com, Masahiro Yamada Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 14, 2019 at 1:05 PM Tri Vo wrote: > > Clang gcov format is only supported by Clang compiler, and Clang > compiler only supports Clang format. > > We set gcov format to depend on which compiler (GCC or Clang) is used. > > Automatic format detection behavior is preserved because: > If GCC is used, one of the GCC gcov formats is selected. > If Clang is used, Clang gcov format is selected. > > Signed-off-by: Tri Vo Thanks for sending the series Tri. I think this config change on the end is a nice little touch! Reviewed-by: Nick Desaulniers > --- > kernel/gcov/Kconfig | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/kernel/gcov/Kconfig b/kernel/gcov/Kconfig > index eb428e570923..37ec551d4039 100644 > --- a/kernel/gcov/Kconfig > +++ b/kernel/gcov/Kconfig > @@ -60,6 +60,8 @@ choice > In such a case, change this option to adjust the format used in the > kernel accordingly. > > + Select Clang gcov format if building with Clang compiler. > + > config GCOV_FORMAT_3_4 > bool "GCC 3.4 format" > depends on CC_IS_GCC && GCC_VERSION < 40700 > @@ -68,11 +70,13 @@ config GCOV_FORMAT_3_4 > > config GCOV_FORMAT_4_7 > bool "GCC 4.7 format" > + depends on CC_IS_GCC > ---help--- > Select this option to use the format defined by GCC 4.7. > > config GCOV_FORMAT_CLANG > bool "Clang format" > + depends on CC_IS_CLANG > ---help--- > Select this option to use the format defined by Clang. > > -- > 2.20.1.97.g81188d93c3-goog > -- Thanks, ~Nick Desaulniers