From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D849FC43219 for ; Mon, 29 Apr 2019 08:42:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A72BD2063F for ; Mon, 29 Apr 2019 08:42:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727685AbfD2Im6 (ORCPT ); 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, UNPARSEABLE_RELAY,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C0D3C04A6B for ; Mon, 29 Apr 2019 08:43:00 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 420442075E for ; Mon, 29 Apr 2019 08:43:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="XwP5xu9L" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 420442075E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=c-sky.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=TRdDUCxNxaRdLAtKaYhgk5jf7xGs2XsHzIP61LG5qfI=; b=XwP5xu9LeN49Oc zvGqwcBzEU7crv1fLB4E6sVBx0eer62WB8DIPG0X8YjAesmLq/TpMSwaOQ0rIhUzlfqkuhNMIgKIW BvriTt1myLyhCBH8zkbhGKKuAo0dNzyY3SJzZ6HwErPX+Zqkf4r10MkAi1B4GNe9spFd9/1Ek1nBz G5GR6z81DkjzPMw9C2hG5H44hwGgpBSrOSzfQ6y/JWLzWABzmtYy4Brd4oXqjXJ7MjXN9Sd7mJ6sR TrygTyewomwMHTq0gLEu2euKBOU1DYD8soxHhJy9q3chNNOPl+JUXh4hhBdbd4IyFMd8huwmCRftz AypPgE5iBxlk9L8uss5g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hL1sJ-0002hF-8s; Mon, 29 Apr 2019 08:42:59 +0000 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hL1sG-0002fS-Fw for linux-riscv@lists.infradead.org; Mon, 29 Apr 2019 08:42:58 +0000 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 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-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190429_014257_184941_3ABC799F X-CRM114-Status: UNSURE ( 7.86 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-riscv@lists.infradead.org, guoren@kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv