Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4045775imu; Mon, 14 Jan 2019 13:55:06 -0800 (PST) X-Google-Smtp-Source: ALg8bN5K0LRv5QnviRjfJfgjuNQMp/uccGNOkpN0KjgJq197Czq9ovKtZ07FZjdUY4rDyt5VCRw9 X-Received: by 2002:a63:1444:: with SMTP id 4mr606775pgu.430.1547502906888; Mon, 14 Jan 2019 13:55:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547502906; cv=none; d=google.com; s=arc-20160816; b=nFiGHIrUnlPoTQNXC2BAoQ+jYzhSKw+uffuqmBDd2DMYbceDt/6HDc1GMDejBVLcvU 3yaR+9kB0bKYP7mPEvUAf7TOWcyytvBrb8qhs2HI6tbudSvl0pwvHdfQCkg3oAPt5v5+ Z0/u+1YHhO0QJtRQ7bjjlHZFJCBjQf3ANYY5R1nY3N1X4Ai7dhbhzoiX4RgdgaprsL80 /nKgCDJj2XsgXMst2Pmno1XgCZB6LOZ/k8cXErsvqHy1fstuQCMEHZUufq2pY6xWywAR QEEjxKc2JcolwI/ydKSafLSCIvJs2xx9q6JHe87RM1dQ3j5ueZ4d/+whdmzG32k8YI9D 9ABg== 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=Q3kce2bWKDtxbTxAqm3XjUoAdIiL+VPsVQKmew7W5hY=; b=r3K+/gp9RivCh54zqkDFzoQ2DI25L3ltrhGYv5Vs2W1GnYb95XEcpnqDFGv+iu9CVb kqynxEoKWYQoIfowf5jkMI6moCTzajHKOM1+p9j2n9assUSmVljFoM48FBQeEVgqoSpF SvaQSlFOgI3hnBMrzP97L1qlOTWwvNQm+dR4oLv7YO47qPzOW/mRiXGBmjGt/Sh896K7 BvIajvSFi/xYuBseisQnfG0BzaJt+zaW8iHActhm45DGJ8rqvp/Eo2S5MjhwguJm9kJ5 5YKrTgDekspeMtKTDONUI75XJFumxZZ354JsJzioPU262viAUu6mlMw0Jb95bvBiETXe h9ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@android.com header.s=20161025 header.b=IqUekfLQ; 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=NONE sp=NONE dis=NONE) header.from=android.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 61si1363989plz.117.2019.01.14.13.54.50; Mon, 14 Jan 2019 13:55:06 -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=@android.com header.s=20161025 header.b=IqUekfLQ; 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=NONE sp=NONE dis=NONE) header.from=android.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726788AbfANVx2 (ORCPT + 99 others); Mon, 14 Jan 2019 16:53:28 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:42843 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726618AbfANVx1 (ORCPT ); Mon, 14 Jan 2019 16:53:27 -0500 Received: by mail-ot1-f66.google.com with SMTP id v23so575064otk.9 for ; Mon, 14 Jan 2019 13:53:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=android.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Q3kce2bWKDtxbTxAqm3XjUoAdIiL+VPsVQKmew7W5hY=; b=IqUekfLQGzLM3++skZUsB8ff7gjAy7Q6vGoOngGw5aPFDTp2ParzJG4Z6Wc61FLiYB Ppfq28sXEBeaFXj8qf442M3nh8CZu7erIGiuFKwvQYDgQZcXASFqeUJ4JEVKTkyQSekW IEg9WxBGnB0vHuxT61uA7OnepXZ2JPfUBBdC3QI0md/DpEo7QNK5hDlURJWVfsTHecq3 BXSvbULD2SYzMEzB9h4WXtHtRgbQO3LZgYd2khYWCYNqIFiIiztc+m4v7KJnd8LCcCbL viYrVei9/fJTJ8SBz+CkWzw42Vq1dZ+1xczoobfnsJihRDylNL9lX+rwmKXMNpU6E6Bx vF+w== 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=Q3kce2bWKDtxbTxAqm3XjUoAdIiL+VPsVQKmew7W5hY=; b=hguIQDko27Ma7q4BaD8U68xRpnBDBRPVvK0EOw06LLTqPw90gyfuVrCqzPdqkW4FGw KBYvx5DLzG3P8cnSevjC+gEzXi5RtcA/FLUzEcykNnqJ9WHIjGqHqGZQZFDaerlPUiIu d199JIEQmPYhUB3mZ6nxtx+WYBVfKxUDeDubTAjkRgRdlSgUK0YkQqw9ADxHKZPja/BT Z2I47/KwCV9hQhbsMiku+JylXrO4A+njf/0Jv8ZIcLbHL3YzL/3QaxtwzjpUkZxc3t5P LoCj69DtJ2q5lsB/0QohCWGh1n0F/xSln+MzSO8gdDVdMKHamGr/us7yBrrI55sD+fJ8 gIxA== X-Gm-Message-State: AJcUukfSGYkd3FQAiV0hTixQ+PhqWdny/dBGeUE+qTKPf9CrHaafkvso XEuEPySb+m29RmhO9WUhRqGtJws9CaXLO/EkFBpOsQ== X-Received: by 2002:a9d:17c6:: with SMTP id j64mr357521otj.357.1547502806818; Mon, 14 Jan 2019 13:53:26 -0800 (PST) MIME-Version: 1.0 References: <20190114210426.177543-1-trong@android.com> In-Reply-To: From: Tri Vo Date: Mon, 14 Jan 2019 13:53:16 -0800 Message-ID: Subject: Re: [PATCH 0/4] gcov: add Clang support To: Nick Desaulniers Cc: oberpar@linux.ibm.com, Greg Hackmann , LKML , kernel-team@android.com 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:33 PM Nick Desaulniers wrote: > > On Mon, Jan 14, 2019 at 1:04 PM Tri Vo wrote: > > > > This patch series adds Clang supoprt for gcov. > > > > Patch 1 refactors existing code in preparation for Clang support. Patches > > 2-3 implement necessary LLVM runtime hooks and gcov kernel interfaces. > > Patch 4 simplifies config selection. > > > > Greg Hackmann (2): > > gcov: clang: move common gcc code into gcc_base.c > > gcov: clang support > > > > Nick Desaulniers (1): > > gcov: clang: link/unlink profiling data set. > > > > Tri Vo (1): > > gcov: clang: pick GCC vs Clang format depending on compiler > > Thanks for sending Tri! Doesn't the output format require llvm-cov, or no? Yes, .gcda files generated by a Clang-built kernel could only be parsed by llvm-cov, but not gcc gcov (at least in my local tests). llvm-cov documentation also indicates that GCC and LLVM gcov tools are not necessarily compatible. "[llvm-cov] is compatible with the gcov tool from version 4.2 of GCC and may also be compatible with some later versions of gcov." https://llvm.org/docs/CommandGuide/llvm-cov.html