Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3414044yba; Mon, 29 Apr 2019 01:44:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2nE8AnP4+mE+4FMsXmnuws3zdNzYWnjWgL7bI9sMd2pYKKpk/fgDgM3GiTHo55NfMA9f/ X-Received: by 2002:a63:c104:: with SMTP id w4mr56930637pgf.409.1556527465499; Mon, 29 Apr 2019 01:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556527465; cv=none; d=google.com; s=arc-20160816; b=F/By2zLKwlAOk3OkwABAkuc+R8Zn2/rh3etDn0renp+hV9aqxhlDvxkM7YkWQhncag q2Oi0Twunze77EPTypbEWVndWZUgaOQfxIES8ZhaDAJHMCQj2B4GX2k0MZ7Zoa3VXdyk r4QIKGtMI9F4fS8pya0K3VmEzNFF3n7DzxTw1V6/iv7yTl9EewBa8gFXMPi3Rw+MrFwK bPscmjUbCkMGbRWFLVfqIGdbg+E9/37Aw3hr6tSZ2Y11MdJDaT3cR5QVQFPTlKBCl1B7 KOEqQF2s6hkRCqKxaQ/ZsevvNCLcetVpcylfRNdIhqNd0BmP0/+cN/TwgT5tbgGwA3/u PY3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=AnE+r9I15JJLU9OH8Q7pVdVvRtfxqfuJ3NrbSrfM6+I=; b=jUxHOwR7m/BjF8YysPe9FWmHCqxTlye8ZaoB43PPC21kMuogl9R2Tf2Q5g6oHChHEe ppfhR3avahtV0uE8tyXHipgTEhAKrPbRYys+HG1KZFHNme3xpdnJxetLtXYI6PZhlP8z vhm51ewDJOWm09IKhT/ueOoA7TYWoxy4Np3sqnAfqWmtNRilOy30ZTg0n+Fs7cbgfdCN gGqA63GrfqxS3IFyC6KeDbpH948gPZtHYVZn4aTfAmb7bQge3bDNPNFJFUr9Gix/l1Ra XV4Qm6QU7k28lOlC/2fzP6b3kixMRt7ypUb4zYyc+yR4JVv1Cu6mBU6IDbvoB5/L9fl6 eH0g== ARC-Authentication-Results: i=1; mx.google.com; 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 a73si32525538pfj.174.2019.04.29.01.44.10; Mon, 29 Apr 2019 01:44:25 -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; 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 S1727677AbfD2Im6 (ORCPT + 99 others); Mon, 29 Apr 2019 04:42:58 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:44697 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727480AbfD2Im6 (ORCPT ); Mon, 29 Apr 2019 04:42:58 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.239167|-1;CH=green;DM=CONTINUE|CONTINUE|true|0.325225-0.0257244-0.649051;FP=0|0|0|0|0|-1|-1|-1;HT=e01a16384;MF=han_mao@c-sky.com;NM=1;PH=DS;RN=4;RT=4;SR=0;TI=SMTPD_---.ERai8Dx_1556527374; Received: from localhost(mailfrom:han_mao@c-sky.com fp:SMTPD_---.ERai8Dx_1556527374) by smtp.aliyun-inc.com(10.147.41.143); Mon, 29 Apr 2019 16:42:54 +0800 Date: Mon, 29 Apr 2019 16:42:05 +0800 From: Mao Han To: Palmer Dabbelt Cc: linux-riscv@lists.infradead.org, guoren@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] riscv: Add support for perf registers sampling Message-ID: <20190429084204.GB22718@vmh-VirtualBox> References: <69322515ac3fcba8af004039f44473cec5ecbdcc.1554961908.git.han_mao@c-sky.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 25, 2019 at 02:11:02PM -0700, Palmer Dabbelt wrote: > On Thu, 11 Apr 2019 00:53:49 PDT (-0700), han_mao@c-sky.com wrote: > >+ PERF_REG_RISCV_S10, > >+ PERF_REG_RISCV_S11, > >+ PERF_REG_RISCV_T3, > >+ PERF_REG_RISCV_T4, > >+ PERF_REG_RISCV_T5, > >+ PERF_REG_RISCV_T6, > >+ PERF_REG_RISCV_MAX, > >+}; > > Is it expected this eventually supports floating-point and vector registers? > If so, how do we make this extensible? > It seems none of current architecture put their fp/vfp registers into this file, gpr is normally enough for backtrace and context restoration. I'm not quite understand the problem of extensible. All modification to this file should be synchronzied as the perf tool is released with the kernel. Thanks, Mao Han