Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4005856imu; Mon, 14 Jan 2019 13:06:26 -0800 (PST) X-Google-Smtp-Source: ALg8bN4z7K9oW5Im8p1m/Lxb8fOaHdHNb9GcaufiDOZ5PLnfAm37nJq7EDf9CkpNWUHd4PdPq0z3 X-Received: by 2002:a17:902:8541:: with SMTP id d1mr440294plo.205.1547499986340; Mon, 14 Jan 2019 13:06:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547499986; cv=none; d=google.com; s=arc-20160816; b=u3AdY7YrR8Usa0YjoNYozPajADYqokG+GsxloxH1Nfo3ASq7Ji0G0pit0IWCOVb7uk 4auptnnNEVEfIAv+X/yAqWjELOXnjla0qsy8En7YQhfE0S/u+n11fcE0PcTuvDAd5WSY YB015GhHnkX67Qy97B4jscReGWrIo8x2U7ZQs1pdX697Z7ptFCLPE9hpS/t2+bhiOMVV Lo8dt//LxTvOhZIRwV666+hFnmVyiW3S8TVqEhNpHUphlDhcgioAajqqe+wXmSLNorml RrbOc1vXmgIpv4pqSdGWfkq08DatotVYl7M6DTI1bc/AygWhkc3rpJ7H790C35rqoPx4 WWFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=szdIF+Suhz10zCtWWxkhWdxc8OuoBctk1LJGyiLTiG8=; b=pVnrEscUbCrMCNEhyiCEvOvLn0uM/jFhCsDf0Mp5ty18ORXBV5bUGrdL7O11vMDF2X OZRFoECxtqcUpgtcqqgO5DHYzDPX8drwscWhu7nSPQCYFOIfNKZmph6g1o0azp3uhiv/ NygV3g2m4vTZVqa03ClLwiBRJDVDyn8RdRa+C6AaiEO/wbkwAt2LUj4FyXiSs8w7npoF 4oR3+VXQGogW68j6jmooFzB+1kNxAzEUFqnZFHNcZ8gK93oM3sMRNeBWywM2yWrj194b h5BVhw2qwab+7JS8f6aO6nEwEpmx0et/5q6HY95w7fzyuOJkN+Iqd8HIIum4po58+1GV HPJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@android.com header.s=20161025 header.b="TaN/Tsg7"; 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 63si1235559pfv.38.2019.01.14.13.06.08; Mon, 14 Jan 2019 13:06:26 -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="TaN/Tsg7"; 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 S1726968AbfANVFA (ORCPT + 99 others); Mon, 14 Jan 2019 16:05:00 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:35678 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726777AbfANVE6 (ORCPT ); Mon, 14 Jan 2019 16:04:58 -0500 Received: by mail-wm1-f67.google.com with SMTP id t200so1088850wmt.0 for ; Mon, 14 Jan 2019 13:04:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=android.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=szdIF+Suhz10zCtWWxkhWdxc8OuoBctk1LJGyiLTiG8=; b=TaN/Tsg7Dn5637ORt0+damjozyB6kxjJBBcFpr7MxNsm03Sci4EfPgbJCnHYh97z7I uv1dajT1Y3yLUxPIOEzU6Ivo6XYk8V3XmABWTkmSe8NODX4FKSln0CBgVkT0nUnZhEpY bAkMI1tpOkZ9nd6lyAdHh9be+UvO2EMtfNd04QGWSG/bfho4N80ZcP1gFkDzg0Ev5zey HKoS7ZJ0F8h4WDDD3A2VHJ1agqbqf5o8V+cx5qHSram705NGf9pF5Cn+qlVMsAtTylkS BB1UPA0luSJV3hzRcYMj22IToIqc+8qtCaVw0q05lB+txWD7BkpkIjS00x2f9nn8C5Z7 0/Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=szdIF+Suhz10zCtWWxkhWdxc8OuoBctk1LJGyiLTiG8=; b=pRvxXvmhvrOR+r2lZ7js975mqtWjwXCRGZvo4y9fuvDyahF8ewgW+pBhlZdryUFaZ1 TW+LmoiEjbOaBawvHpF5YqwkrXQkmbeyTYYCTh8xbpTBLEtUOMW6mMVHPWGxY+0PQjAC N1CAXis8Vtw5FfHxr8/I8tVTXjw3E/OHHf+LiAanGSbUmEoFmZdwPnANw/BlitnJMlD+ FVnOyLNrun8ER8GJjG7d3b0d+wiHECFcCRKUxhvoUpkkvlCztV1GWWYM51qK4WWcZhTg Vjnpxlq/eX50HkdgzGxJzb1uLAey7Ofu+f3J+XnfvTf9mggOvdx6AOooMEITJpJ1TgsK cpyw== X-Gm-Message-State: AJcUuke1wlS++N47W6f8fYZ/erR90NbqGuCqwJULNB6LOuORtGY7UV9h PWuIgQxgGoyhv+HeLCvHmWvu1Q== X-Received: by 2002:a1c:4c0c:: with SMTP id z12mr689771wmf.17.1547499896379; Mon, 14 Jan 2019 13:04:56 -0800 (PST) Received: from trong0.mtv.corp.google.com ([2620:0:1000:1601:c43f:8c1b:f6ef:3dce]) by smtp.gmail.com with ESMTPSA id s1sm106981548wro.9.2019.01.14.13.04.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Jan 2019 13:04:55 -0800 (PST) From: Tri Vo To: oberpar@linux.ibm.com Cc: ghackmann@android.com, ndesaulniers@google.com, linux-kernel@vger.kernel.org, kernel-team@android.com, Tri Vo Subject: [PATCH 0/4] gcov: add Clang support Date: Mon, 14 Jan 2019 13:04:22 -0800 Message-Id: <20190114210426.177543-1-trong@android.com> X-Mailer: git-send-email 2.20.1.97.g81188d93c3-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 kernel/gcov/Kconfig | 9 + kernel/gcov/Makefile | 5 +- kernel/gcov/base.c | 78 +----- kernel/gcov/clang.c | 554 +++++++++++++++++++++++++++++++++++++++++ kernel/gcov/gcc_base.c | 79 ++++++ kernel/gcov/gcov.h | 3 + 6 files changed, 650 insertions(+), 78 deletions(-) create mode 100644 kernel/gcov/clang.c create mode 100644 kernel/gcov/gcc_base.c -- 2.20.1.97.g81188d93c3-goog