Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp568895ybe; Thu, 5 Sep 2019 02:23:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBsOwdgYaMAjKBGFgNCRAN9qUT2ohDLVHetiJe5fmJUklrjSE99TaNqQBFGT3W+JcmE8k0 X-Received: by 2002:a63:1046:: with SMTP id 6mr2303557pgq.111.1567675423584; Thu, 05 Sep 2019 02:23:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567675423; cv=none; d=google.com; s=arc-20160816; b=jQoOnrmtoYSIZz7T+LLsfnltHxgVywRlO4JQKEwz9kYxkcOYXraGMdELoMTH5u3SxP Yc6ajQcFBMk6fczIzX8DpNgaj0/bb7bNMWcJkJyWINFrTcjrp8wbsxriobQ/DVpR4VC4 7DP9luWwawuvRPRVb19U7diLCIi1Dt/U9j1zGh+3ofbCZv3RmT8IDazfnBpFRYkDsSNQ l5BVuVbdtg27eWC9qhUwkoY/5ExIRF7c4jpCC1LsoPdgXKSYr5rBxk/4pYjG5UbGtauf WO8AzQ2C5NkOi+8X2EDl8iDht7AxWNpKB/hBbexJlqikZY3tZgKYjqpzILHuccTXYiEd TXfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=XEwhLYvc4QUR6wvAGjdkKm4IcG5eE3iFZQx/tTNYViw=; b=SjZWRqGB+IGNBzvblvY67USVYE+7+4NKXd5HeoomBT+i6+cVpMquANhenuQ9zaex6n oGCwVSF5TcukiZYtJPQX6qFj7rMF3YEPaIqZPRb2PTM3LNqmOtFsDXLSJkOtj/cMgdWt 9kbuCnOPwpNK0IBA7x51+nqHQfS78nfZJ5r58427pB3RoyWZYqGmXK39PhlMagGnH5fj p9dlzi1KZvMiIQzG7FBHqdjaDYjbeFFogAIScbh5USvIpuD8WLmVHBC5JIHCVgugyPXd YJAQIh6/9uxQaN8fJrpBOOXXgXjtPyHlt4iQGkYXWZcqsvU7aGsrihQxvEhYFzjSLCfg fjgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=f9GOGijb; 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 y8si1245384pgv.541.2019.09.05.02.23.27; Thu, 05 Sep 2019 02:23:43 -0700 (PDT) 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=f9GOGijb; 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 S1731742AbfIEHyL (ORCPT + 99 others); Thu, 5 Sep 2019 03:54:11 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:41920 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729366AbfIEHyL (ORCPT ); Thu, 5 Sep 2019 03:54:11 -0400 Received: by mail-io1-f68.google.com with SMTP id r26so2643289ioh.8 for ; Thu, 05 Sep 2019 00:54:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=XEwhLYvc4QUR6wvAGjdkKm4IcG5eE3iFZQx/tTNYViw=; b=f9GOGijbalzUu0CJL+Gr/ytsBHHkUCfxTJmxJ3N0hokbi/y34zaAwN8d3+He+KXQJk vPQGMyBlLIshOD8UDGxbQoiISxNE7iad2N9MzEaID2bMkcZk56AsrarO4g8u9ZxQmMub 5okbyjjEuNbRUTvEedp2vCHE+lHojS9mSeprf5ZthfKCTQ5i4VlADp5qcX7ZmKVIdp9r w1Yp+/Cm7yfpEmkscIAkjQzEIuWEIQKdU18utJA6BcgPyfOtM1oQFD6rOGng01yTcbPd zT+bMKGeV7XyKScy6noh7dFr61O1cfwNW17yzfJzRVBYMX8UDAfP8tiOh/WCoC46od+P HQfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=XEwhLYvc4QUR6wvAGjdkKm4IcG5eE3iFZQx/tTNYViw=; b=Nt+8jaZFhJaIZCQK4zK+WSY3qe7cyA+JMvynHXwJUrjMoPtahKnXAcsCn9FgKYfA/k XfBjxEzRoFYlzABYi1hkg6gZnIwCy9SD1rrtmo89j+9ppcdewXe2WE/nBmPbZmo11aeW RHKOK3Kj1N1FXO9UErt4aFP2pAHhQuphi+0ejremLiSyG4Ri72xzgoTEbUh8QX8GyGHI itL9st2bOam53lKI4CakySYp6ztMp/a53Tf/SiIFwa2dlunR3yr6xzWPwA+ySVO8Oa8n RFQhSQMiyFSfjTrkISOKABOZ/FX0xVagRHFqIB/1TSn7CEgHzVX4JTMI8JRFuzYv+MAt jfyg== X-Gm-Message-State: APjAAAVvUmW5Eza83OBnheC/cXSiAYFPbJFYdxNYpFxxtmCcJMhqrM0x Xs0cIdIwIc42Z1HDkXzd5ukcMA== X-Received: by 2002:a6b:c9d7:: with SMTP id z206mr2564361iof.172.1567670050705; Thu, 05 Sep 2019 00:54:10 -0700 (PDT) Received: from localhost ([2601:8c4:0:9294:cb6f:4cf:b239:2fee]) by smtp.gmail.com with ESMTPSA id m67sm2549041iof.21.2019.09.05.00.54.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2019 00:54:10 -0700 (PDT) Date: Thu, 5 Sep 2019 00:54:08 -0700 (PDT) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com To: Mao Han cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, Greentime Hu , Palmer Dabbelt , Christoph Hellwig , Guo Ren Subject: Re: [PATCH V7 1/2] riscv: Add support for perf registers sampling In-Reply-To: <49c2c29459afc59130b036eba1b1fd5155572355.1567653632.git.han_mao@c-sky.com> Message-ID: References: <49c2c29459afc59130b036eba1b1fd5155572355.1567653632.git.han_mao@c-sky.com> User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 5 Sep 2019, Mao Han wrote: > This patch implements the perf registers sampling and validation API > for riscv arch. The valid registers and their register ID are defined in > perf_regs.h. Perf tool can backtrace in userspace with unwind library > and the registers/user stack dump support. > > Signed-off-by: Mao Han > Cc: Paul Walmsley > Cc: Greentime Hu > Cc: Palmer Dabbelt > Cc: linux-riscv > Cc: Christoph Hellwig > Cc: Guo Ren Thanks, queued for v5.4-rc1 with Greentime's Tested-by: (since the changes from v6 to v7 had no functional impact). - Paul