[strace/strace] loongarch64: make use of the newly exposed orig_a0 field for ptrace (PR #207)

WÁNG Xuěruì notifications at github.com
Tue Jan 25 16:17:21 UTC 2022


(continuing from #205)

With the LoongArch `struct user_pt_regs` definition amended to [expose the `orig_a0` field](https://github.com/loongson/linux/blob/3643df5f058aacf69ac4121f6882500e843b7a34/arch/loongarch/include/uapi/asm/ptrace.h#L35), I've integrated the changes into [my kernel branch](https://github.com/xen0n/linux/commits/loongarch-playground-v11-draft) and passed the tests with this PR:

```
============================================================================
Testsuite summary for strace 5.16.0.37.1e18
============================================================================
# TOTAL: 1193
# PASS:  961
# SKIP:  232
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
```

`uname -a`: `Linux lily 5.17.0-rc1-12006-g03f57a04a4f1 #3 SMP PREEMPT Thu Nov 25 11:42:54 PM CST 2021 loongarch64 GNU/Linux`

@chenhuacai: Please update the kernel and corresponding headers for the cfarm boxes; so that maintainers can test this.
You can view, comment on, or merge this pull request online at:

  https://github.com/strace/strace/pull/207

-- Commit Summary --

  * loongarch64: make use of the newly exposed orig_a0 field for ptrace

-- File Changes --

    M src/linux/loongarch64/arch_prstatus_regset.c (4)
    M src/linux/loongarch64/get_syscall_args.c (2)
    M tests/ptrace.c (4)

-- Patch Links --

https://github.com/strace/strace/pull/207.patch
https://github.com/strace/strace/pull/207.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/strace/strace/pull/207
You are receiving this because you are subscribed to this thread.

Message ID: <strace/strace/pull/207 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20220125/02b53772/attachment.htm>


More information about the Strace-devel mailing list