[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8c6b0c27-26e3-6668-06b2-57dd27f77496@xen0n.name>
Date: Sun, 15 May 2022 17:20:20 +0800
From: WANG Xuerui <kernel@...0n.name>
To: Huacai Chen <chenhuacai@...ngson.cn>,
Arnd Bergmann <arnd@...db.de>,
Andy Lutomirski <luto@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Peter Zijlstra <peterz@...radead.org>,
Andrew Morton <akpm@...ux-foundation.org>,
David Airlie <airlied@...ux.ie>,
Jonathan Corbet <corbet@....net>,
Linus Torvalds <torvalds@...ux-foundation.org>
Cc: linux-arch@...r.kernel.org, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org, Xuefeng Li <lixuefeng@...ngson.cn>,
Yanteng Si <siyanteng@...ngson.cn>,
Huacai Chen <chenhuacai@...il.com>,
Guo Ren <guoren@...nel.org>, Xuerui Wang <kernel@...0n.name>,
Jiaxun Yang <jiaxun.yang@...goat.com>,
Stephen Rothwell <sfr@...b.auug.org.au>
Subject: Re: [PATCH V10 11/22] LoongArch: Add process management
On 5/14/22 16:03, Huacai Chen wrote:
> Add process management support for LoongArch, including: thread info
> definition, context switch and process tracing.
>
> Signed-off-by: Huacai Chen <chenhuacai@...ngson.cn>
> ---
> arch/loongarch/include/asm/fpu.h | 129 +++++++
> arch/loongarch/include/asm/idle.h | 9 +
> arch/loongarch/include/asm/mmu.h | 16 +
> arch/loongarch/include/asm/mmu_context.h | 152 ++++++++
> arch/loongarch/include/asm/processor.h | 209 +++++++++++
> arch/loongarch/include/asm/ptrace.h | 152 ++++++++
> arch/loongarch/include/asm/switch_to.h | 37 ++
> arch/loongarch/include/asm/thread_info.h | 106 ++++++
> arch/loongarch/include/uapi/asm/ptrace.h | 52 +++
> arch/loongarch/kernel/fpu.S | 264 ++++++++++++++
> arch/loongarch/kernel/idle.c | 16 +
> arch/loongarch/kernel/process.c | 260 ++++++++++++++
> arch/loongarch/kernel/ptrace.c | 431 +++++++++++++++++++++++
> arch/loongarch/kernel/switch.S | 35 ++
> 14 files changed, 1868 insertions(+)
> create mode 100644 arch/loongarch/include/asm/fpu.h
> create mode 100644 arch/loongarch/include/asm/idle.h
> create mode 100644 arch/loongarch/include/asm/mmu.h
> create mode 100644 arch/loongarch/include/asm/mmu_context.h
> create mode 100644 arch/loongarch/include/asm/processor.h
> create mode 100644 arch/loongarch/include/asm/ptrace.h
> create mode 100644 arch/loongarch/include/asm/switch_to.h
> create mode 100644 arch/loongarch/include/asm/thread_info.h
> create mode 100644 arch/loongarch/include/uapi/asm/ptrace.h
> create mode 100644 arch/loongarch/kernel/fpu.S
> create mode 100644 arch/loongarch/kernel/idle.c
> create mode 100644 arch/loongarch/kernel/process.c
> create mode 100644 arch/loongarch/kernel/ptrace.c
> create mode 100644 arch/loongarch/kernel/switch.S
The context handling code already saw use in released version of strace
[1] [2], so it appears appropriate to consider the user-space additions
to be in a reasonably good shape already.
Reviewed-by: WANG Xuerui <git@...0n.name>
[1]: https://github.com/strace/strace/pull/205
[2]: https://github.com/strace/strace/pull/207
Powered by blists - more mailing lists