Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3416693yba; Mon, 29 Apr 2019 01:48:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbQokLbKDhxEviJOI2+7txvuOyUP6havsEd3EsrXoPHCM+Ibwz73ArjqQWrCcckttdR3HG X-Received: by 2002:a63:1055:: with SMTP id 21mr38594286pgq.200.1556527707628; Mon, 29 Apr 2019 01:48:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556527707; cv=none; d=google.com; s=arc-20160816; b=ncTdsQmDQy0mWQj+bD5l/bMlze+WCZK2kUFxwaEaQwKmd3GSz7iPQWpai/CCd0XI+B 1vt1JugQglLRGbeDSsBUhn/kDXkR3RiXe4GwvdrvrFnBn2nxJ/TfN19ZDIvc5mSohlBM qxkEsflAR672KuhLdnY3IA8x3KQz7R9MUE2PjzfpriMGuur/qvSPEfaibzFyqlbClMe2 ZUlqJoGBzjZ03VlmgCWFpkkw22U1E4yPt42pILB3PTfMa6jpLKCQy3czalDAzGJUKbE4 gDbY1uLZiMShelad667OylKMJX41IifhEdcLTCm5ACoWVwmgtBwm5lXRcOORFsIPtOPK HR2Q== 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=ZVKOtDI9DJA9SPeAV0fyw89ap8iDv7c/HugAXPWskEc=; b=oOV009os/gNCY5yOp5/WuzfSKu9UfivX1wQcCkNd9VGHPnWqSnFYjlWZV5SlWaQirG 06QvHaDoTve5aMCRxqEeqowyTtv9bSJelXEKuXTsBmXwyosJLS7x4FpHKH/mKKw+OsHL 4ezwTC69WPtRM1CDFABYNe+615R+fgd/agYsJ+Zaz/qPdA184i0zevDrv8mBXCx3MsLq 0riLUOp+/ykTevu6IWSzmeiOpEH2DZ18AntzLa6kAMR5QmvWWXisELbMWcDO5axBmGfE JI0sPOX0SMhCPjLSUz6y72luNFx0xV2bMErhw7Ttww6X97f/0x/j6uw7ytgO9Jm54O9T W/Zg== 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 q16si31615455pgk.405.2019.04.29.01.48.11; Mon, 29 Apr 2019 01:48:27 -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 S1727663AbfD2Ipz (ORCPT + 99 others); Mon, 29 Apr 2019 04:45:55 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:33320 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727480AbfD2Ipz (ORCPT ); Mon, 29 Apr 2019 04:45:55 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.2451035|-1;CH=green;DM=CONTINUE|CONTINUE|true|0.145498-0.00694801-0.847554;FP=0|0|0|0|0|-1|-1|-1;HT=e01a16368;MF=han_mao@c-sky.com;NM=1;PH=DS;RN=4;RT=4;SR=0;TI=SMTPD_---.ERaVMaQ_1556527548; Received: from localhost(mailfrom:han_mao@c-sky.com fp:SMTPD_---.ERaVMaQ_1556527548) by smtp.aliyun-inc.com(10.147.41.137); Mon, 29 Apr 2019 16:45:49 +0800 Date: Mon, 29 Apr 2019 16:45:00 +0800 From: Mao Han To: Palmer Dabbelt Cc: linux-riscv@lists.infradead.org, guoren@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] riscv: Add support for libdw Message-ID: <20190429084441.GC22718@vmh-VirtualBox> References: <99f15d5c74727c31bf8d08b6cf948754e3e09943.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:04PM -0700, Palmer Dabbelt wrote: > On Thu, 11 Apr 2019 00:53:50 PDT (-0700), han_mao@c-sky.com wrote: > >This patch add support for DWARF register mappings and libdw registers > >initialization, which is used by perf callchain analyzing when > >--call-graph=dwarf is given. > > Is there any way to make this the only backtracer? It's the only one that's > likely to be useful on RISC-V without recompiling everything with > -fno-omit-frame-pointer, which has a major performance hit. > Frame pointer is the default record mode in record_callchain_opt. Some generic modification seems required to change this, default to use dwarf if riscv and show corresponding message in --help. Thanks, Mao Han