<p dir="auto">(continuing from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1088718761" data-permission-text="Title is private" data-url="https://github.com/strace/strace/issues/205" data-hovercard-type="pull_request" data-hovercard-url="/strace/strace/pull/205/hovercard" href="https://github.com/strace/strace/pull/205">#205</a>)</p>
<p dir="auto">With the LoongArch <code>struct user_pt_regs</code> definition amended to <a href="https://github.com/loongson/linux/blob/3643df5f058aacf69ac4121f6882500e843b7a34/arch/loongarch/include/uapi/asm/ptrace.h#L35">expose the <code>orig_a0</code> field</a>, I've integrated the changes into <a href="https://github.com/xen0n/linux/commits/loongarch-playground-v11-draft">my kernel branch</a> and passed the tests with this PR:</p>
<div class="snippet-clipboard-content position-relative overflow-auto" data-snippet-clipboard-copy-content="============================================================================
Testsuite summary for strace 5.16.0.37.1e18
============================================================================
# TOTAL: 1193
# PASS:  961
# SKIP:  232
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================"><pre><code>============================================================================
Testsuite summary for strace 5.16.0.37.1e18
============================================================================
# TOTAL: 1193
# PASS:  961
# SKIP:  232
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
</code></pre></div>
<p dir="auto"><code>uname -a</code>: <code>Linux lily 5.17.0-rc1-12006-g03f57a04a4f1 #3 SMP PREEMPT Thu Nov 25 11:42:54 PM CST 2021 loongarch64 GNU/Linux</code></p>
<p dir="auto"><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/chenhuacai/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/chenhuacai">@chenhuacai</a>: Please update the kernel and corresponding headers for the cfarm boxes; so that maintainers can test this.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/strace/strace/pull/207'>https://github.com/strace/strace/pull/207</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/strace/strace/pull/207/commits/cb06c2b1a1912289f7cae23fb3c11fb212712570" class="commit-link">cb06c2b</a>  loongarch64: make use of the newly exposed orig_a0 field for ptrace</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/strace/strace/pull/207/files">3 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/strace/strace/pull/207/files#diff-2d48bab62f7a761478228874a34b33f1b15ac0935e0f961e8df8222f18096346">src/linux/loongarch64/arch_prstatus_regset.c</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/strace/strace/pull/207/files#diff-8a4173d7c9bd3190d07aa7c7fb840e3cac3d3db2662abd0c853f137913bbf01d">src/linux/loongarch64/get_syscall_args.c</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/strace/strace/pull/207/files#diff-438a02536b4784eb06603407853dc71b0e86e65d1afc519660536616ff988cf4">tests/ptrace.c</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/strace/strace/pull/207.patch'>https://github.com/strace/strace/pull/207.patch</a></li>
  <li><a href='https://github.com/strace/strace/pull/207.diff'>https://github.com/strace/strace/pull/207.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/strace/strace/pull/207">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AOVBTR563QP4XYH6WXOILJTUX3EJDANCNFSM5MYWMGIA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AOVBTRYXI74QSOMCFLOLKADUX3EJDA5CNFSM5MYWMGIKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4QTHW5KQ.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><strace/strace/pull/207</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/strace/strace/pull/207",
"url": "https://github.com/strace/strace/pull/207",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>