Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp17034677ybl; Wed, 1 Jan 2020 20:15:46 -0800 (PST) X-Google-Smtp-Source: APXvYqySyqOpBdIHnG8tvTeo+aJltbnApC/maSCNuK36sgwus3U1C2LUBD0CqEWETcwZrKNAbT39 X-Received: by 2002:a9d:c42:: with SMTP id 60mr51613023otr.182.1577938545980; Wed, 01 Jan 2020 20:15:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577938545; cv=none; d=google.com; s=arc-20160816; b=PIZcqUIDjxZjI15cQPxLsTY1PmYt80clAv6Cu2Ryw5PqeasITch3rsqWukHe/ZJYGU i32IIF04NvPiORHF+YZ8U1eGu/PqXiwWHOwgT5+Fi1S730PNOiDXrNdjOMazt1tvVM8Y WFH2Y7FSqBvJ0l0hByo17ZZY35r0GcFnjv9+RkVQdoNleGMKoHkWIqA8DWEa4uqV5TJP a5PY18k3nuBsXgTI5XIP31rHVSA12RvH51k1TCrrzYJO4Nfz6ZL6s4c8//kwShjUq1Fu 0UPl2TN9fHhesz3z5hjsUgnI74jSALXbs/i9/DNnSMyXpOzpOKeKNKylEoZyAwap2q6W 2CpA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xRIqkpS+vEH2fQVaBgXNRzy8KphxwIGgy8VZczGGCGo=; b=yDp2SNIXsZ03dLJGNPBLOnqChxZg1GTX/kwtDQGSF2w+5ddr3yaQKRbOHPTHvyrGcV EFwJrNWYeN7rZcuuVF9rW2Shz0ISzSNz5fvxrfd3D8hKuVcSeV9Tc+dHQGqiuSQtfsuP z2sAGmfSSO+S60AsaAo14dBGUZ4QWQ2RHJm4DILkusxYSyCh1Yh2TLFql9pdMK/0PvU7 k4i0ZesiktFifi8S2o0bGGhofWiC4mK0eh8soaavJtginH+uH0z3lW4uNKCZcw/yOpt/ rleLUkZnZJ5gptX8FakGcA/Tmt/IhNqoODP/HKItR4boXS6cA2iPDOmi832XqeWFGEM/ MNbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=fVOVyHxQ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 24si25294924oip.248.2020.01.01.20.15.34; Wed, 01 Jan 2020 20:15:45 -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=@sifive.com header.s=google header.b=fVOVyHxQ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727647AbgABEOx (ORCPT + 99 others); Wed, 1 Jan 2020 23:14:53 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:43517 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726234AbgABEOw (ORCPT ); Wed, 1 Jan 2020 23:14:52 -0500 Received: by mail-pf1-f193.google.com with SMTP id x6so20380624pfo.10 for ; Wed, 01 Jan 2020 20:14:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xRIqkpS+vEH2fQVaBgXNRzy8KphxwIGgy8VZczGGCGo=; b=fVOVyHxQMzlnCKA8erP9Wti/Xdnqmv/ZFemKS26QB2b396Y/Wl46alb67+5C0oZcbU OGGeQjcE9ZvjP5+IR84Bsd4fWMIyISM5Ij3i3eQeqJIEfjX1105zjM9L9JNVE897RJno sQ2XD7mOcAlAeAyY8YhGHy59azp7lcACBaFFMjO1/LDKt4vEnArO/jQCoBjvOfPHer0Q ALhoS6ZBbiaBgvZYYMH8IIzR0fheV6BhSi076775U9MUl8vUU3VeprHBl743LZrMDSGE lu8iSzinBDhhCwAsw3SKFyHK4+pcYmRkczv1rmwGKEA4o+GR6QzHh526+mYXOQDH3MKg fG/w== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=xRIqkpS+vEH2fQVaBgXNRzy8KphxwIGgy8VZczGGCGo=; b=jq9doWmosZbwTrEzL42crXzBSEZIuA657AN4mukDfLe0acKQ9H9SXq01kfL1qQOXtF znivsGGBqZQ/QiLwyaqJOSE2YRJziWPv8AuGTFC5IYXB0CwoyvIk05NVTf4xpOda5bm2 SQkYXTldj+62v560EEslfzX+g0HhI6ZMcrOtE2G6iRMSNJcaCoQhReGaV8pCMw6ZgYDH AKG2w14OeLrXDF0ARQR9bvaAlTytNTBxgNU9qyU0uPuetr0nn2Inj40cmTRiBVqLKFFO 3XbpbaPyh3gMdmSmcyvwPD6iXiJFZ+ozjYzVUYAAbd2AwV/C164udvA9OHTU56a9cKnt pWzQ== X-Gm-Message-State: APjAAAXU6/WDPAS8mNrnSFAyK8ZgoWMevcpjIQXBbJAdC0e1Zou8UwgE vGuYCaZAnrVpCpa6wz6grSLSUw== X-Received: by 2002:aa7:82d5:: with SMTP id f21mr88277819pfn.245.1577938491457; Wed, 01 Jan 2020 20:14:51 -0800 (PST) Received: from hsinchu02.internal.sifive.com (220-132-236-182.HINET-IP.hinet.net. [220.132.236.182]) by smtp.gmail.com with ESMTPSA id i127sm63870336pfc.55.2020.01.01.20.14.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jan 2020 20:14:51 -0800 (PST) From: Zong Li To: corbet@lwn.net, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, anup@brainfault.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Cc: Zong Li Subject: [PATCH 1/2] riscv: gcov: enable gcov for RISC-V Date: Thu, 2 Jan 2020 12:14:44 +0800 Message-Id: <20200102041445.98195-2-zong.li@sifive.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102041445.98195-1-zong.li@sifive.com> References: <20200102041445.98195-1-zong.li@sifive.com> 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 enables GCOV code coverage measurement on RISC-V. Lightly tested on QEMU and Hifive Unleashed board, seems to work as expected. Signed-off-by: Zong Li Reviewed-by: Anup Patel --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index d8efbaa78d67..a31169b02ec0 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -64,6 +64,7 @@ config RISCV select SPARSEMEM_STATIC if 32BIT select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU select HAVE_ARCH_MMAP_RND_BITS if MMU + select ARCH_HAS_GCOV_PROFILE_ALL config ARCH_MMAP_RND_BITS_MIN default 18 if 64BIT -- 2.24.1