Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp960667pxb; Thu, 5 Nov 2020 18:59:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJw0Srp66bUHft3dwzIZ4oJUvbngLztVzTAzR6F4r50e8xFSbE2WLjILBXVOEoyU2alpyCCk X-Received: by 2002:a17:906:51dd:: with SMTP id v29mr5508018ejk.69.1604631561261; Thu, 05 Nov 2020 18:59:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604631561; cv=none; d=google.com; s=arc-20160816; b=veTRXMtqi3kvtQH23/KFoYnPQh44p19Yjphylb1zzuuzdkAD0v91jMVtbcvUVgI+IF S7YLQNS8HCSH2ES4ntCx2Dq2kyPlRMUSHHQOFBkofKiLKtnc0QiCDKL9xK1dwIEf5ITb woT8J1XT1GjgSdsqBrryx/0OLMRpIY8vRn6U/7KXkzNtyblHUKH3W/73LylecZIn992w 3yusolH6klqImo9rUPfHEUz+PIjpeV1QpWYbEKhB2tdN006HHrtfaic9GfVdsXt/MdDD lLjV9HpmyUBYu5jeQx8lb+7ZwR/XoPaX10jIIwKWfQyYCzNJ11oUV4i1U4bL8Begifb4 MhHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=YkoMgR+VXA6pEzm2f03icgWhD+NR3uIKcVVbqvr+Xxc=; b=X6ANHOuEFbPq+wPqNf/+gTn7G8IuGeOFWBAn9tap9IZdch80Dl/eigHWb+kanG6hO7 2GZ57FAvqpzlNj3H+r0ZvQmJ988T5zmKusRUpgWacFx2aQYII1YyK0jMxgfRAP86lT4a IQLIxDWlPAZZYLJOQarpoD0DPwXU1mlTrZb2kiW5VFhZTFm0efE6gMVt3AV8juTtqI1P D02d2OftDQ1j2/SEgTAGxQJwSxsW/ijniQ4XZfdNoKV86yWaBMUGIJE+NC281aEG2vxB dqqvM6xxHcgmsZAplS47iV5TttDfClVdtJJoSOtWivYXxPYhYCEttEqzUWILiQVzlLi9 YDBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ngBOoevt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id f14si3058174edj.34.2020.11.05.18.58.58; Thu, 05 Nov 2020 18:59:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ngBOoevt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1725971AbgKFCzM (ORCPT + 99 others); Thu, 5 Nov 2020 21:55:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:44318 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725902AbgKFCzL (ORCPT ); Thu, 5 Nov 2020 21:55:11 -0500 Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (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 45F382078E; Fri, 6 Nov 2020 02:55:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604631310; bh=GCRu5Nj6jlFu7EoC6UyDydSyAjZGCvEP1u13Yu2YJkU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ngBOoevtyMiaZoS5dLNMl5K6SHrIs+qW8jE+nVSG26e8PE1P2kMQhNldJVD/Nog8u RislWWMtlbuzn0I/jE9+/1QMnhK1mYjuv1BBuCWURKFjJJFkw7v5qaUVYs5u0nS3ZL ftVlSp2BZVAQlKp12wu4US0Z9DJWG89A4riVByoI= Received: by mail-lj1-f173.google.com with SMTP id 2so3748520ljj.13; Thu, 05 Nov 2020 18:55:10 -0800 (PST) X-Gm-Message-State: AOAM531VXy7UXKn11apAA3or1FHTewnLNN2UTaWt52256PqtUJCptw8B 0ifW8G8RiMBvuwYX6L9tJ4l2XIZbCLMfLOAVaO8= X-Received: by 2002:a2e:8816:: with SMTP id x22mr1812466ljh.377.1604631308478; Thu, 05 Nov 2020 18:55:08 -0800 (PST) MIME-Version: 1.0 References: <1602918377-23573-2-git-send-email-guoren@kernel.org> In-Reply-To: From: Guo Ren Date: Fri, 6 Nov 2020 10:54:57 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 1/9] RISC-V: Implement ptrace regs and stack API To: Palmer Dabbelt Cc: Paul Walmsley , Masami Hiramatsu , Alan Kao , Steven Rostedt , linux-riscv , Linux Kernel Mailing List , Anup Patel , linux-csky@vger.kernel.org, Greentime Hu , Zong Li , =?UTF-8?Q?Patrick_St=C3=A4hlin?= , Guo Ren Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 6, 2020 at 9:03 AM Palmer Dabbelt wr= ote: > > On Sat, 17 Oct 2020 00:06:09 PDT (-0700), guoren@kernel.org wrote: > > From: Patrick St=C3=A4hlin > > > > Needed for kprobes support. Copied and adapted from arm64 code. > > > > Guo Ren fixup pt_regs type for linux-5.8-rc1. > > > > Signed-off-by: Patrick St=C3=A4hlin > > Signed-off-by: Guo Ren > > Reviewed-by: Pekka Enberg > > Reviewed-by: Zong Li > > Reviewed-by: Masami Hiramatsu > > --- > > arch/riscv/Kconfig | 1 + > > arch/riscv/include/asm/ptrace.h | 29 ++++++++++++ > > arch/riscv/kernel/ptrace.c | 99 +++++++++++++++++++++++++++++++++= ++++++++ > > 3 files changed, 129 insertions(+) > > > > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > > index b7821ac..e6424d8b 100644 > > --- a/arch/riscv/Kconfig > > +++ b/arch/riscv/Kconfig > > @@ -87,6 +87,7 @@ config RISCV > > select SPARSE_IRQ > > select SYSCTL_EXCEPTION_TRACE > > select THREAD_INFO_IN_TASK > > + select HAVE_REGS_AND_STACK_ACCESS_API > > We alphabetize these now -- I'd usually just fix it, but there's a > Signed-off-by issue later in the patch set. ok, I'll fix it and rebase 5.10-rc2. --=20 Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/