Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2404206imu; Thu, 17 Jan 2019 13:36:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN4fGceaXARVopaeApun9V2puei6BqbqcKT27m5+2tGNHtdjcpaU0EeIVhDUbBcjved0GMZW X-Received: by 2002:a17:902:bd0a:: with SMTP id p10mr16121226pls.322.1547760997837; Thu, 17 Jan 2019 13:36:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547760997; cv=none; d=google.com; s=arc-20160816; b=vyv/MdBaw+GI+eBxLM2IF58UfKwmwZJcQIjTB+fyeseREQkkLDc92HhY/LMyaC2kzX PrMvouHahzN4W3fuA5s40Xdf9esjh8tix2Zc0+ZyMQaPO/Le7FF0fwXaSbtTj/bmvjxY Kgysg+9jqK5RVO1p/F2MksXKx3pEead5sx3bXRtdoE7tO4K/xZwBPFU7SP3CVPp4vXjN Nd6i6P35dQHJQrw1rSipFArJM/ctPkNfosjnKUbkEKyAKfVgAYPsfqgKFCFKSZbX29dv FbaZ2axn/i/F66IuWYXcuQfJIERvcMx3nTcrzHo9C6VQqjRNWV8vJ4pkvC/Xu5zYVJe4 axhA== 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=KD0cIMypRNFWGhod3QICd/CALDbA8g2R453skt9CpHE=; b=LqrP25o8Skiv5vZRqtG9L7ZYhUjuslTdPhF7FyYHPm1VNmEzRTEacG1bO2qwb2GE/o AG3+zRYLMja+smZY4d/sDUHqeu8KMzdanjv+ElWiKYUV6XX2P3/Juxx8Mg08+4Hiq3eJ g7AG6blho20tYSGu9z39o5+hvBCmc5NFkgxujU0VmJKaSk3S1i9xrmMPdx1zMIYCfTDK FKCJZzPEe0fTbFoNfE8x+9DaelyfouBhWlJnOzaKtgJ/gvINYMfWsHUfs1as3nCvIv7P Ot3fUr22ZLh1Hv/gp4KpRRDcfq28/3ASFkQbiC4QS1oR9OzDVXA9oVp+VQ/NAW25u3xb /p5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=wD0BBTiy; 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 x16si2668601pga.407.2019.01.17.13.36.19; Thu, 17 Jan 2019 13:36:37 -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=wD0BBTiy; 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 S1728853AbfAQVar (ORCPT + 99 others); Thu, 17 Jan 2019 16:30:47 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:37256 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726905AbfAQVar (ORCPT ); Thu, 17 Jan 2019 16:30:47 -0500 Received: by mail-pf1-f195.google.com with SMTP id y126so5453722pfb.4 for ; Thu, 17 Jan 2019 13:30:46 -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=KD0cIMypRNFWGhod3QICd/CALDbA8g2R453skt9CpHE=; b=wD0BBTiyT+I660LGZbYLe551jrp+KtoszUFtEITbuLcfy92kQm9XR/mLa5RE4pS95V dINoObgv390GO9ayLzNFEIMH8n292G6MqITabFKQSu15xjvdhExK6TPH+mglaK0KQZOs qWeGKDMU+xy7J41KPgyZXkMYK3sqbnGqBGBSg4R4NvhI8TnoFUzFEm3wqw8qo9Ip6Amt IT4gh3FFXIZ7CY0+grvkMT1CCH+333BpVwhOeKFA9kI9NZrzHW6GuVCxcDx5c0nY6qdi Y7gQndwsf2DaY3X1AjUOx6G2UDzV8Lq2jncxbjA7T0HHj77+HP2ea2sFLfrdILbIvfAl Gr3Q== 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=KD0cIMypRNFWGhod3QICd/CALDbA8g2R453skt9CpHE=; b=JRMwYQUlzK3ZjnqtXuRgYhI0bFwfC6V3EqD3D3ERkIok84K0Bk5edv9d4u4FkXU35y +1Sxr+5v4Cd6h1gwSOf90QBs4NBO1CkSebuU+KP8qxzno0Vq7vPwX+1PEnAaHZv//SMo 5n9zuvJAPx3qdvM5v2qI2rPTrcJIl4vRtXxl8hmeXPKIVnxvGw83axgqLRVQsT9HB1CT DzsYzcibkc0tw73ojQNG4pC0U8UUhBdTM33ltGF4m2mR5xfEja0WVYKBC79OFKvxyW9s HmkpRzyi1KxoA9xafdqqmCw8TjCIK8ofk5L/T65FGhS4ZV16yTRHq7r9l+3BXs1b6PLj dUeA== X-Gm-Message-State: AJcUukees3vzgWFp3+ESKhfH926nuRfVE4DichxIH4nQbAv9m0zpPSwt Wo92U6DQ7oWm/iaaQnJ2Ip5CDmkSTjp/9NQTgNoWdg== X-Received: by 2002:a63:bf0b:: with SMTP id v11mr15258421pgf.302.1547760646048; Thu, 17 Jan 2019 13:30:46 -0800 (PST) MIME-Version: 1.0 References: <20190115183643.120619-1-trong@google.com> <65bb2ab8-4929-db7c-9d54-491d87ec23ae@linux.ibm.com> In-Reply-To: <65bb2ab8-4929-db7c-9d54-491d87ec23ae@linux.ibm.com> From: Nick Desaulniers Date: Thu, 17 Jan 2019 13:30:34 -0800 Message-ID: Subject: Re: [PATCH v2 0/4] gcov: add Clang support To: Peter Oberparleiter , Tri Vo Cc: 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 Wed, Jan 16, 2019 at 7:17 AM Peter Oberparleiter wrote: > > On 15.01.2019 19:36, Tri Vo wrote: > > From: Tri Vo > > > > 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 > > Overall this patch set looks good to me. It introduces a clean way for > GCC and Clang specific implementation details to coexist. > > A quick test compile using GCC on s390 with the patch set applied was > successful, so it seems like the existing support is unaffected. > > There are some detail suggestions on patch improvements that I'll post > in separate e-mails. Peter, Thank you so much for the valuable code review and feedback. We'll prep a v3. Tri, I think you should change the authorship for the patches to yourself, and add a "Co-authored-by: " tag to the commit messages. Can probably squash this series into 2 patches; the one that separates out the shared code; and the new llvm additions. WDYT? -- Thanks, ~Nick Desaulniers