Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1965700yba; Mon, 15 Apr 2019 02:02:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFhl/vi1roYdw95M5mVtB1nmgd6242kgLYS3dvsLLrUrJZOMIBcl3Gntf/ckETumQLkH55 X-Received: by 2002:a63:7117:: with SMTP id m23mr67214889pgc.271.1555318949490; Mon, 15 Apr 2019 02:02:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555318949; cv=none; d=google.com; s=arc-20160816; b=dOJk+AGkAEsjLJvLpJMzekAQLX0LjEPi+KfNrg1otbDJrf/kwK2Lz9ZUrk57cOfXY7 En81ygHjxhOrDaOllk8Je1DXDNkynloyktYMI3Y+QllwUXQob/ksal6hwzQwl6331+rl Lr80hiz2koRVtgo2hmY75r3CKbdEKkzsVLhRKK4wzeVzYstelnbl9tYxWd1h8dSvMdum Wj9HsiGn7S3Ko5O5K/9uLE4EP/Kvub6ft4rs8wDP37cblGEUACzasi93VG3uLQmy9eXC h/9wJocUnzMv+sQYdT6BMxs8NkNzY0rEp+0AkSscv0R8hqM6zBcaGzihcr9bd2Pkh/Xs sc2g== 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:dkim-signature; bh=aipHdaRomDRsmV0PF27PIaz730pSNGsZfkNxLOx2byY=; b=jvT4G/8yTWEPefRhxMfMG5Ld/X/tbjPXz2BbgI9ruVw3Lkwj4QQ4BWBn116XKOYaUG Y/grfycVoPSB7bevGUmpYPKHz5qvOKQjWI5CJVlZWyPNdfmpWUmKudxxvjgnLJLgkVMB fg8aV0Mj8FabzWNT6FTiShUw/RECkfcAZIO+serPhxb5UamjMl2HssyEc5WIn6efyF3Q aIVnNHDJ1aHf9kuwRZDlOPpv34vmCtFY5WMLUiSAKHctdSe9W4Hp/oDAUowC5aqItEZ3 tNzUfzg1xVA9kRe8POJ3BhpB0bL629X9uiVUmJNGW4HpIug1LO6kT2qRpxcEwT7Y+/nO QpVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hoPbBKne; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c12si32291109pgj.461.2019.04.15.02.02.12; Mon, 15 Apr 2019 02:02:29 -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=@kernel.org header.s=default header.b=hoPbBKne; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726313AbfDOJBj (ORCPT + 99 others); Mon, 15 Apr 2019 05:01:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:42014 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725798AbfDOJBj (ORCPT ); Mon, 15 Apr 2019 05:01:39 -0400 Received: from guoren-Inspiron-7460 (23.83.240.247.16clouds.com [23.83.240.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 047D420693; Mon, 15 Apr 2019 09:01:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555318898; bh=MHHZajSk8uT6yldJQkSiq9LxrQHV9ROHoiXn0vbGx9Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hoPbBKneFz9iPr/wTkE0+6kwQ+AVD0cOlbjJOq0alNypIpeRD1YuADOU3t2k90413 YQMGIMcRm8C+jXZGYoZ5cvTnpKwUy3GyyamsABsVtpq5JEqCsludzISBpXL50pJG+A 7vncjRsQ3+6Q1voTfBqZUakVSHTrsqKOy8o13wsE= Date: Mon, 15 Apr 2019 17:01:04 +0800 From: Guo Ren To: Mao Han Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/3] csky: Add support for perf registers sampling Message-ID: <20190415090104.GA10228@guoren-Inspiron-7460> References: 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 Hi Mao, Sorry, currect: On Thu, Apr 11, 2019 at 03:45:00PM +0800, Mao Han wrote: > This patch implements the perf registers sampling and validation API > for csky 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. > + return ((long *)regs)[idx]; return (u64)*((u32 *)regs + idx); Best Regards Guo Ren