From patchwork Thu Sep 11 07:49:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 37228 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f197.google.com (mail-pd0-f197.google.com [209.85.192.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BBE8120491 for ; Thu, 11 Sep 2014 07:51:41 +0000 (UTC) Received: by mail-pd0-f197.google.com with SMTP id p10sf23721361pdj.8 for ; Thu, 11 Sep 2014 00:51:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id:cc :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=D/Mf7AD8Iq0crRtvn3pcmia552gqS/gNmJTpknsutgU=; b=DSA9aaDQFEdyW0jZw4GZRRZYHXeEPxb+fDGR44K+oIMwmMxF7xUvC0aEYrcPD8ClW3 829363Kv4Roe8P9zl5xCdgC0rA2U7PV6+c9HgMz/uSfV5azIItVwqzrXNs2++9lmm8U9 GGHzopvWcKN+Qtcf/D4+wZyqnlDteZisgApVt2iah0Jzln7T3uCd9O3fwJRTtDdM5pMh 3yzX1RMyToH9TLrBOZyLa/D0glrnUHKol/YKeKqlaRob6Bqrf3avpk7eF8qLxrYFjN+S wRERfu2M6OI+iIua3Jsrk5hs9FqnwQDaIkKa5OK90+zVLLwKBklndZrG7vMGuLqyp3eu ZUSw== X-Gm-Message-State: ALoCoQknmUGFr+iEsyO08aO4RupIk6gA1oYK2f/AwsFTRq2JQwsrmmRQrltrAaKYngKD/51Kt6fu X-Received: by 10.66.177.108 with SMTP id cp12mr24477790pac.14.1410421901076; Thu, 11 Sep 2014 00:51:41 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.91.34 with SMTP id y31ls82355qgd.2.gmail; Thu, 11 Sep 2014 00:51:41 -0700 (PDT) X-Received: by 10.220.184.70 with SMTP id cj6mr40156340vcb.5.1410421900970; Thu, 11 Sep 2014 00:51:40 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id pu11si39220vdb.55.2014.09.11.00.51.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 11 Sep 2014 00:51:40 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.172 as permitted sender) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id hy10so6140990vcb.3 for ; Thu, 11 Sep 2014 00:51:40 -0700 (PDT) X-Received: by 10.220.97.5 with SMTP id j5mr40639108vcn.16.1410421900808; Thu, 11 Sep 2014 00:51:40 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp551521vcb; Thu, 11 Sep 2014 00:51:40 -0700 (PDT) X-Received: by 10.68.129.5 with SMTP id ns5mr40726355pbb.4.1410421899751; Thu, 11 Sep 2014 00:51:39 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id kd4si314655pbc.12.2014.09.11.00.51.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Sep 2014 00:51:39 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XRz8Y-0000sI-JJ; Thu, 11 Sep 2014 07:49:50 +0000 Received: from afflict.kos.to ([92.243.29.197]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XRz8V-0000kz-5b for linux-arm-kernel@lists.infradead.org; Thu, 11 Sep 2014 07:49:47 +0000 Received: from afflict.kos.to (afflict [92.243.29.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by afflict.kos.to (Postfix) with ESMTPSA id 8D289264D6; Thu, 11 Sep 2014 09:49:21 +0200 (CEST) From: Riku Voipio To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2] Enable gcov support on the ARM architecture Date: Thu, 11 Sep 2014 10:49:18 +0300 Message-Id: <1410421758-13173-1-git-send-email-riku.voipio@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140911_004947_380511_34504DAC X-CRM114-Status: GOOD ( 13.08 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- Cc: linaro-kernel@lists.linaro.org, Russell King , Vincent Sanders , Arnd Bergmann , Andrey Ryabinin , Riku Voipio , Naresh Kamboju X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: riku.voipio@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.172 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Enable gcov support for ARM based on original patches by David Singleton and George G. Davis Riku - updated to patch to current mainline kernel. The patch has been submitted in 2010, 2012 - for symmetry, now in 2014 too. https://lwn.net/Articles/390419/ http://marc.info/?l=linux-arm-kernel&m=133823081813044 v2: remove arch/arm/kernel from gcov disabled files From: Vincent Sanders Cc: Andrey Ryabinin Cc: Arnd Bergmann Cc: Russell King Cc: Naresh Kamboju Signed-off-by: Riku Voipio Signed-off-by: Vincent Sanders --- arch/arm/boot/bootp/Makefile | 2 ++ arch/arm/boot/compressed/Makefile | 2 ++ kernel/gcov/Kconfig | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/bootp/Makefile b/arch/arm/boot/bootp/Makefile index c394e30..5761f00 100644 --- a/arch/arm/boot/bootp/Makefile +++ b/arch/arm/boot/bootp/Makefile @@ -5,6 +5,8 @@ # architecture-specific flags and dependencies. # +GCOV_PROFILE := n + LDFLAGS_bootp :=-p --no-undefined -X \ --defsym initrd_phys=$(INITRD_PHYS) \ --defsym params_phys=$(PARAMS_PHYS) -T diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile index 76a50ec..3ea230a 100644 --- a/arch/arm/boot/compressed/Makefile +++ b/arch/arm/boot/compressed/Makefile @@ -37,6 +37,8 @@ ifeq ($(CONFIG_ARM_VIRT_EXT),y) OBJS += hyp-stub.o endif +GCOV_PROFILE := n + # # Architecture dependencies # diff --git a/kernel/gcov/Kconfig b/kernel/gcov/Kconfig index d04ce8a..cf66c5c 100644 --- a/kernel/gcov/Kconfig +++ b/kernel/gcov/Kconfig @@ -35,7 +35,7 @@ config GCOV_KERNEL config GCOV_PROFILE_ALL bool "Profile entire Kernel" depends on GCOV_KERNEL - depends on SUPERH || S390 || X86 || PPC || MICROBLAZE + depends on SUPERH || S390 || X86 || PPC || MICROBLAZE || ARM default n ---help--- This options activates profiling for the entire kernel.