Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4052404imu; Mon, 14 Jan 2019 14:03:04 -0800 (PST) X-Google-Smtp-Source: ALg8bN44glCt0U40A/CVfjYshILH3XldcEnDKIhSxfLeuV0PF/4yrW4/L2j0VwvcTkekJ5SeRCb6 X-Received: by 2002:a63:da45:: with SMTP id l5mr622506pgj.111.1547503384614; Mon, 14 Jan 2019 14:03:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547503384; cv=none; d=google.com; s=arc-20160816; b=xPXgxQV8hh0TWZ6WvGmfaCD8a3O3ggw7Jyeq085D5ySrYwZ+w/+dJLA59xSnQQtx4Q akqmYIqOYtE0gWbTQDWcS+s11302WZlGl5E5JxoZQFKN6XZd2Hi6Ihrlc7qKClQN48nJ hK2rEN8yPlBdiFNGEDL7YI/LarSwV0YDp15HKdw+Tjv+TD5q60RdwutrPMZ56/vpTdSe ktWFKInWwhvmGO7ko+CopyYflWqGRlX8S26mUAQ/BzdLEdMmNT91ksfvZE0uU4pF+dHX pIoZvO4wzSGwvuYPoEZtUJ9cIqhfu4/t4eOMUEgoC+J/6bDOxY3rAC0csvQANhWU80dg kdmg== 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=COA4+y8BR+vzlMXulf2QmLFF6N6buS8a74k/Xy/7vFw=; b=ISF66097gDyoU2cIQSlbAzZEQR13WlvAnaw+ayQvZvgPPiUFJZbD3K4onda/eXuvme U1BtC9YG8Dey0ESxs8fk4Zfj11oVRH7yGy1UDv4lqu0zghLyWnhf4Pmt9am55S7rEJXV iZL9PiqGhMaAGx5Q91+wq+jPxJaCDO4sg1RzzHTiwD5adeASb0El1VZB7l39fbTnpEhs gRgcgmfG2Ehf+NldsTkRapQGSFVTsgb3Nm7QVq+h6CrDUm/asPO7whwGb2XCdSkucoAU +IGyozUdYRnPic1wAapofFhDawGM0YT6Cv5egjd1rv0cmjt2u4W9tqmJMTbwTVrey9kK mrBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=MB0fVuOL; 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 c136si1386611pfc.141.2019.01.14.14.02.46; Mon, 14 Jan 2019 14:03:04 -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=MB0fVuOL; 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 S1726875AbfANWBE (ORCPT + 99 others); Mon, 14 Jan 2019 17:01:04 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:40458 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726591AbfANWBE (ORCPT ); Mon, 14 Jan 2019 17:01:04 -0500 Received: by mail-pg1-f194.google.com with SMTP id z10so244328pgp.7 for ; Mon, 14 Jan 2019 14:01:03 -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=COA4+y8BR+vzlMXulf2QmLFF6N6buS8a74k/Xy/7vFw=; b=MB0fVuOLyz1WkhggvnB37sMqe1T8gyl51XE+R59wRNERF/txILXSvReUgja7ePaUur xplNBSXnnEiJHfxocvFW9hxHYajnh9gQy7R7b6BVpn6516x2pWtvg08w7y7P5nq6ZtHC i2whOf0/WxfO/ur/F/IrZhR4c6W1K7fPeXnK5IlW68E3qAY7/GZULTOEQbpY/bWy9LPV a4/5TX8Pz+/v4nOLXnQOVa0nw0CzKB3U9/9hpt/7tQlGD3NgmuMvf1UtHe8nfzyXeGQF KRkOYZV4/xTUxwsWlJwA/UgzfsDrTYjMIVsFaygUDPuVT7U8oz0fo5FwH7k6s9+Ua+Ub kjIw== 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=COA4+y8BR+vzlMXulf2QmLFF6N6buS8a74k/Xy/7vFw=; b=i0pb5F/oIwZUIDA8p9GrX6LNsPDO46uGG50POmAxsDkS4wMVAkSO9IUUBYGAP4ni/p N82IE/v8d0ykFvFgn6Q+suDGtxxZ7uZIPEh0QB09cAgj+Mcm5yaSJTJNbUYMxwpBE8U8 vlHeaDr3VsyqYACZCkwn6A1y1M6dOPt17Jw7CdRWPf6ZTUAumR52rFVUkYkT7ikghVn2 WK0Hindew6wJGERQ3CJwYmueWR6HN/9jEgqvfbtE11JtTZmNsYabhpQT6+XB8GTGgyte wRPI342rbbcV2Adt2fxV4AQXcaGKxuFTstOXV+T8j9QeIWpR4By/F2SHhE20ymCN3HOI uw2A== X-Gm-Message-State: AJcUukct20JwRe6EqGJP4ztM32M2E9kN4Sz5exEYSEEfRfcRX4yBY0rz vRTXINmk015TTr/UkSQ/TlUm3BccG2bzHmpA+19WLg== X-Received: by 2002:a62:13c3:: with SMTP id 64mr608260pft.93.1547503263001; Mon, 14 Jan 2019 14:01:03 -0800 (PST) MIME-Version: 1.0 References: <20190114210426.177543-1-trong@android.com> In-Reply-To: From: Nick Desaulniers Date: Mon, 14 Jan 2019 14:00:51 -0800 Message-ID: Subject: Re: [PATCH 0/4] gcov: add Clang support To: Tri Vo 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:53 PM Tri Vo wrote: > > 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 Thanks, that's good to know for folks looking to help test. Note to reviewers that we're actively using this patch set on arm64 devices. -- Thanks, ~Nick Desaulniers