Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp17018282ybl; Wed, 1 Jan 2020 19:49:34 -0800 (PST) X-Google-Smtp-Source: APXvYqyfUzW62BRcI1Yon0lFpNa6WqvWxIBwgMIFKnIZU6G7SeyG6j+R5/FBKhznFwyh9/C5jpb1 X-Received: by 2002:a9d:32f:: with SMTP id 44mr41087135otv.234.1577936973971; Wed, 01 Jan 2020 19:49:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577936973; cv=none; d=google.com; s=arc-20160816; b=WjuAWyLApq7LGK/JYyKPNhZk0Sa1DzmARaeCvtUzqGRmK0UgvvcKI1bbcmQj7Q87kn qVJJi0qftKZI3e1OaBrV50mfkEFYlKWJDEUxhK+kdS6ln6m7kvlM+Hc+Wn2E/eFsZETj hSv3+2r2lq9iSQSwkwR5MfQREa7aqK7lCVx7lOVnPIeeY8kLmuxwz2VxRa2C3bIaqKAM B2Tt5p/I4DSSPHkLvYl5kRm903dDaf9eV/yjpQHoJFV8OniISX5e9Jwjq0knMKmh/QJr u0rp76xc5ieB42xFsqski5zjbF3Szp+LRgopO/hapoRMf78G+OdpuoZrFo45KwdW+JhX mv6w== 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=/rh9q6153m34prHm4tORWlNz9EKvypr1EIdcld9Y+es=; b=t5LJ5YAF44tclY3j3HiobDAuMIXdTg09fA3yx14/8uGV9O8sJdqSbOMPhA2h0K7WQX slcq6lPodVfYbAc6UGMW6iu+udDTqRdvSTSzY8dDJzTmiaKuhFzFLxbqBFkhTK1Led57 8Pir7QcMeN8UGMmhLMlw6jGMpWZ/nTbzg1eLxUoqiG4iMV6V3KS5qGJxXB3YzIKFdAZE as1FwUy8BGE/AMP8YiF44gSPSzp53vg6t/lYEOF8+diADfemZ1zp2fMPi5jVcgIeeYvr L14b9BEUo15B/kuZZpQMiQ24vWgJfI64KFNNE0Xid6A6znoMIRAg4xl4Vx/TqX2kqDKx fIfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=lkrN6Y3s; 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 w2si27137080otq.31.2020.01.01.19.49.08; Wed, 01 Jan 2020 19:49:33 -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=lkrN6Y3s; 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 S1727566AbgABDrp (ORCPT + 99 others); Wed, 1 Jan 2020 22:47:45 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:41201 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727509AbgABDrp (ORCPT ); Wed, 1 Jan 2020 22:47:45 -0500 Received: by mail-ot1-f68.google.com with SMTP id r27so55306320otc.8 for ; Wed, 01 Jan 2020 19:47:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/rh9q6153m34prHm4tORWlNz9EKvypr1EIdcld9Y+es=; b=lkrN6Y3s6jYVS82ZyE0DHMRUjNhpHd1g2b6oJ4zb7XIx/c8X4Kvv6x2brkCBdUVrgR rnDOWe0iuGuf7mMnFEmT2ZF3vHDl6PvOMLXaoSHaTxlrYL7sn809stmYwGhsCDrVzK28 5/SOIKVsUpUOggXVsP2nBlg0C4lHYdSU1hjP1ncezHYsN99gNaupvSxKr7w3J4djzIBz fHjsqsn7BNL526ptCgpRX3O7NEUrGNdw5Dbpgnu3JCKirG1GrWP86Tb0rsPGm7eEqwIK NFvrNNgB/x0c0PJDt/fdwWpGAVPperNbSOCmhr+nCTjZ0x+Nc3gSsCT+/uXdSYk0nvMJ qarg== 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=/rh9q6153m34prHm4tORWlNz9EKvypr1EIdcld9Y+es=; b=Ey/HWLacHuwb/Cyw/FIbFCPT+w7X999LXuv/EaDQivHDbN9P5dfo6Ymgh/kB9NOGq9 uAj09vT3GmGJi7Uq2kJpi+HFw4bvaxsJXscWJ+G8gC6iVFMn34XsLeYtvooP7fVUgFUi TIG/lQP2ekcwhGDVzKoWKBrgCW08qtOdBpJ6hFhUfa1m/G0GFKWuP3SK5CuQkuOObY35 vQfFxzc8GKLM8n75QKhLPUxm9c4KMyZIf63suhMFU0T664OK9zE4SZ9fHC6oSeUS2nI9 K1TmQtEsSn/RqdOy0wQboByD5qNRxI4ftEAgA1sgLQG9JzFLJa67rdNoVuK+pRFmSj0O KJ+w== X-Gm-Message-State: APjAAAWSgZ9OGoN10dDTvi0Z1DW+57t9OtLtpt2dkJ7Ho+8nFZYOISJ8 TTV9sEFXtNHr1FtL6rD57EtNfUEndS2beFPBwNRAJQ== X-Received: by 2002:a9d:2028:: with SMTP id n37mr93593953ota.127.1577936863434; Wed, 01 Jan 2020 19:47:43 -0800 (PST) MIME-Version: 1.0 References: <20200102030954.41225-1-zong.li@sifive.com> In-Reply-To: From: Zong Li Date: Thu, 2 Jan 2020 11:47:33 +0800 Message-ID: Subject: Re: [PATCH] riscv: gcov: enable gcov for RISC-V To: Anup Patel Cc: corbet@lwn.net, Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-doc@vger.kernel.org, "linux-kernel@vger.kernel.org List" , linux-riscv 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 Thu, Jan 2, 2020 at 11:37 AM Anup Patel wrote: > > On Thu, Jan 2, 2020 at 8:40 AM Zong Li wrote: > > > > 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 > > --- > > Documentation/features/debug/gcov-profile-all/arch-support.txt | 2 +- > > arch/riscv/Kconfig | 1 + > > 2 files changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/Documentation/features/debug/gcov-profile-all/arch-support.txt b/Documentation/features/debug/gcov-profile-all/arch-support.txt > > index 059d58a549c7..6fb2b0671994 100644 > > --- a/Documentation/features/debug/gcov-profile-all/arch-support.txt > > +++ b/Documentation/features/debug/gcov-profile-all/arch-support.txt > > @@ -23,7 +23,7 @@ > > | openrisc: | TODO | > > | parisc: | TODO | > > | powerpc: | ok | > > - | riscv: | TODO | > > + | riscv: | ok | > > | s390: | ok | > > | sh: | ok | > > | sparc: | TODO | > > 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 > > > > Looks good to me. > > Reviewed-by: Anup Patel > > May be (not 100% sure) split this into two patches so that > Documentation patch can be taken by Jonathan. OK, let me split this patch in next version. > > Regards, > Anup