From patchwork Thu Sep 11 08:15:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 37229 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B302E20454 for ; Thu, 11 Sep 2014 08:18:26 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id wp18sf94228922obc.5 for ; Thu, 11 Sep 2014 01:18:26 -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 :in-reply-to:references: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=a7C1MPs/lqPZcp/g/qll0Jy6y3O/ohCyMaQT3N+GpVEZoCugjBPVPJHJebPIzI71NG xZY3LwYtUiqODC7Nnd0rH8COFfBax5rHsFQg74OG7ghtc1gPQ/DdD5a3uCPh7VKUBMuH otiy0V75zNNOUehEMLOY+kL4tvBALg0TnfR8IPPERUdPlS8Nb0VgXyGxI4/mRzFonozY 24Qg1Bvw7BzR7tIP8K+M029ks2Tva3kBU1/6oNbkSt0aY8eHsrScW6KDHAdAKIJcy0k+ svKmM/Er+BUnqvytZVQqNXJJOTzqjz9KbJqUnhTfi2g+AetcBl+TF9M8OnOm00EmwvqG ScWw== X-Gm-Message-State: ALoCoQnqFFfuwBhJNumY9UF1SXjhjtVwU71b4+fuLmLHNb6pax0zcHIWXZjSkl9XaJMet/vQAPSM X-Received: by 10.182.60.36 with SMTP id e4mr30307654obr.3.1410423506290; Thu, 11 Sep 2014 01:18:26 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.38.113 with SMTP id s104ls63465qgs.13.gmail; Thu, 11 Sep 2014 01:18:26 -0700 (PDT) X-Received: by 10.220.144.207 with SMTP id a15mr4246vcv.56.1410423506101; Thu, 11 Sep 2014 01:18:26 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id mn6si58954vcb.40.2014.09.11.01.18.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 11 Sep 2014 01:18:26 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id im17so5494122vcb.10 for ; Thu, 11 Sep 2014 01:18:26 -0700 (PDT) X-Received: by 10.52.52.136 with SMTP id t8mr33965389vdo.21.1410423506001; Thu, 11 Sep 2014 01:18:26 -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 uj3csp554143vcb; Thu, 11 Sep 2014 01:18:25 -0700 (PDT) X-Received: by 10.70.132.37 with SMTP id or5mr11631444pdb.149.1410423504973; Thu, 11 Sep 2014 01:18:24 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id qo10si212830pac.133.2014.09.11.01.18.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Sep 2014 01:18:24 -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 1XRzYq-0006da-Do; Thu, 11 Sep 2014 08:17:00 +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 1XRzYn-0006Z5-BY for linux-arm-kernel@lists.infradead.org; Thu, 11 Sep 2014 08:16:58 +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 00E87264D6; Thu, 11 Sep 2014 10:16:12 +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 11:15:55 +0300 Message-Id: <1410423355-13530-1-git-send-email-riku.voipio@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1410181174-14977-1-git-send-email-riku.voipio@linaro.org> References: <1410181174-14977-1-git-send-email-riku.voipio@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140911_011657_569373_525813B0 X-CRM114-Status: GOOD ( 13.48 ) 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.179 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.