On Thu, 29 Oct 2026 19:21:50 GMT, Chris Plummer <[email protected]> wrote:

>> Okay we can try this.  I removed the old coding.
>> 
>> @AlanBateman  can you maybe test with the Oracle CI ?
>
> Looks like PTRACE_GETREGSET is not defined in our CI toolchain. Builds are 
> now failing:
> 
> 
> open/src/jdk.hotspot.agent/linux/native/libsaproc/ps_proc.c:138:14: error: 
> 'PTRACE_GETREGSET' undeclared (first use in this function); did you mean 
> 'PTRACE_GETREGS'?
> [2026-10-29T18:40:18,995Z]   138 |   if (ptrace(PTRACE_GETREGSET, pid, 
> NT_PRSTATUS, (void*) &iov) < 0) {
> [2026-10-29T18:40:18,995Z]       |              ^~~~~~~~~~~~~~~~
> [2026-10-29T18:40:18,995Z]       |              PTRACE_GETREGS

Interesting! What kind of linux is it? The kernel should support it for sure 
(except pre-2.6.34 kernels). We could use

#ifndef PTRACE_GETREGSET
#define PTRACE_GETREGSET 0x4204
#endif

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/33468#discussion_r4418881209

Reply via email to