Received: by 10.223.176.46 with SMTP id f43csp3886309wra; Tue, 23 Jan 2018 00:22:27 -0800 (PST) X-Google-Smtp-Source: AH8x227d0V3V9v4jzzh9ysXnUmL3K2G4kI36BYVIzYz25zwgHfsYiAvsEDZRcVu0GFbsosqd2Kca X-Received: by 2002:a17:902:7148:: with SMTP id u8-v6mr4901757plm.255.1516695747839; Tue, 23 Jan 2018 00:22:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516695747; cv=none; d=google.com; s=arc-20160816; b=pMD/pPDgmlDrKn+CBq9Cxi6YuLljtbiq5J6Fenbt5ZHgFsHRlhfQ2ErxyFDYfFngu+ vyAdM1rFX/u2uGKmyLyhrUxzoCRqvDLCrwYxZL1fuZq2AJhgJB0Yh0pZluhqyHNvIrTJ i4wkQUR3W1hwfs5YjIecDd6xsuuYR5UTP8qwAnm+VGUasMojAHRv9WKnHLKO5G32t5eE yEQYhSur0ToXTI4HGHlmAKinAcmRGDTJ9el57yjEqcyUd0MFd6HT+SagJfa2lzXJ7nCR CMQDdFAmx+XkyuQSixUNSpTddatF0p8+FSHdkDhecjmTXYgkWnuire95Fc6MhoUJxzbe BJQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Lef9Le5wiLw9fnErFmHKgTfejMuS32E4Cnk41ge0JXc=; b=bKbZb8d2AE02K+nOfn4GTJam+cUynQeQ4Grxp+e7yVOt/B5/0K8b/Fc04lIAnXbQLk YcHhDbXPZhyppM8fzuGx9YOsjmAPmysKXGctAhk6iMZcrM8cmvH531srisXIovP+ENje +ElW0z0lKDQF+YJB4FYYI+WEoFotQW44gNT3hU8p+yJjlxwz+FIDp+9Kit0XoZcjO4Y4 ja+aRc0jIVfnAPKgCpdnBgf/tzzy1TclHXmb9Q8EhU1gFT+fD5blFUUZyxIEaLRa+R2x 7hA8urryn+1/08b6FL0d0TLEX6i0rqKdS5S8APFOwLPejIYYzbx4AbFeOsZ3rvgiMmQY eGJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=B7LvvSMl; 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 b59-v6si4371443plc.302.2018.01.23.00.22.13; Tue, 23 Jan 2018 00:22:27 -0800 (PST) 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=fail header.i=@gmail.com header.s=20161025 header.b=B7LvvSMl; 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 S1751233AbeAWIVt (ORCPT + 99 others); Tue, 23 Jan 2018 03:21:49 -0500 Received: from mail-ot0-f196.google.com ([74.125.82.196]:41174 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750907AbeAWIVq (ORCPT ); Tue, 23 Jan 2018 03:21:46 -0500 Received: by mail-ot0-f196.google.com with SMTP id 44so9952960otk.8; Tue, 23 Jan 2018 00:21:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Lef9Le5wiLw9fnErFmHKgTfejMuS32E4Cnk41ge0JXc=; b=B7LvvSMluq90LCN9MAaN5T2qvHBGen6/zUSxDZ5sqBPozhELbIwQZ89R3Zb/iZHii8 1ocaHBvbs/6s+oLXG75FBuI8ts+EuT/rkSRjo5pksmDZDp9Nf88UK0wZM1C7thtFmgFg S2QAMWlVckCxTtl5GpbIhxaMaQ9HjGE+YzVJ9GNVJSH799dWHBNXaDwBZSN2Ef0pOBsW ncZmwSXIZGAWdmIFYhqNctTA1tT4c0uzT/CQhxkNDorQ8VkSRZmw4ylrV/mVhylmry9D FTOEs6NpqQszWyyg+88WYwdLVJ+HsDcVE1JLDYJjrAUi2aSwML4EF/IpZSNHYcuADvg2 DThw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Lef9Le5wiLw9fnErFmHKgTfejMuS32E4Cnk41ge0JXc=; b=HAZ8pEIpFvauMZ/6DghNKGg+c2waWNNSau4jQ1YkBEkitKOuMBqK8LCty52q37tsPb soL0sjacR+ppbj8zQIVztN3PxkzRB9HU2C5pCGWhIDB9u0TA3YyFxK0g3/6ZxGD/WXtf Np3ITQUE4rx1rldKoxRzR+vZGNKl+b/QefISa/7mYva3LYvtqCF17LotW6JDQQnpyzAw EZ5biNNXjTjaQmb3CpMZdi4QwOU3PZ7uNpBLqRbRUHkIHYITBah9BmGZrZiChPNLSxGR aLIpikxzVrBGD57chnKXPOOB9wOkUpRymN9aZnVOUZiiX2qzxpgiMFvFQOfdzZqN2PMH 4XpQ== X-Gm-Message-State: AKwxytfMOcfqKbCCSCPVYeltqxNIZcNccuth+7iUwiyZ42P9xoTsL1ld ekuTZMfzuH+r7sWHil3vMqvJfjC9+QMUOvxQrRo= X-Received: by 10.157.69.67 with SMTP id p3mr6596453oti.351.1516695705582; Tue, 23 Jan 2018 00:21:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.68.119 with HTTP; Tue, 23 Jan 2018 00:21:45 -0800 (PST) In-Reply-To: References: <65ae3b5b7eabe8680857b1821c72127f611c950b.1515766253.git.green.hu@gmail.com> From: Arnd Bergmann Date: Tue, 23 Jan 2018 09:21:45 +0100 X-Google-Sender-Auth: ycZ7aUntyuCV6IQ2iKyY39rTOPk Message-ID: Subject: Re: [PATCH v6 22/36] nds32: Debugging support To: Vincent Chen Cc: Greentime Hu , Greentime , Linux Kernel Mailing List , linux-arch , Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Networking , DTML , Al Viro , David Howells , Will Deacon , Daniel Lezcano , linux-serial@vger.kernel.org, Geert Uytterhoeven , Linus Walleij , Mark Rutland , Greg KH , Guo Ren , Randy Dunlap , David Miller , Jonas Bonn , Stefan Kristiansson , Stafford Horne , Vincent Chen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 23, 2018 at 8:28 AM, Vincent Chen wrote: > 2018-01-18 18:37 GMT+08:00 Arnd Bergmann : >> On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: >>> From: Greentime Hu >> >> It appears that you are implementing the old-style ptrace handling >> with architecture specific commands. Please have a look at how >> this is done in risc-v or arm64. If this takes more too much time >> to address, I'd suggest using an empty stub function for sys_ptrace >> and adding it back at a later point, but not send the current version >> upstream. >> > > After referring to risc-v and arm64, I realize that PTRACE_GETREGSET > and PTRACE_SETREGSET is used to replace arch specific command. > The needed port for the two ptrace commands had done in current > version patch. > > Could I keep them and just removing the code for old-style ptrace > handling in the next version patch? The important part is to not merge a user space interface into the upstream kernel that we still want to change. It's clear that it takes some time to update gdb and other programs using the ptrace interface, so I'd suggest to simply not have any ptrace interface submitted for inclusion until that is complete. In the meantime, you can keep the existing version as an add-on kernel patch, you probably have other patches that are not ready to get merged yet, so just keep this one in the same tree as the others. Arnd