summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/xarray.py
diff options
context:
space:
mode:
authorTerry Tritton <terry.tritton@linaro.org>2025-07-04 22:02:34 +0300
committerThomas Gleixner <tglx@linutronix.de>2025-07-06 12:15:29 +0300
commitd0a48dc4df5c986bf8c3caf4d8fc15c480273052 (patch)
tree557e7d197310e9b42b9c59b8cbe7981f94c31e0e /scripts/gdb/linux/xarray.py
parent46b0a67e8f22d2dbc679b37b26c5ff0f50424847 (diff)
downloadlinux-d0a48dc4df5c986bf8c3caf4d8fc15c480273052.tar.xz
selftests/futex: Convert 32-bit timespec to 64-bit version for 32-bit compatibility mode
sys_futex_wait() expects a struct __kernel_timespec pointer for the timeout, but the provided struct timespec pointer is of type struct old_timespec32 when compiled for 32-bit architectures, unless they use 64-bit timespecs already. Make it work for all variants by converting the provided timespec value into a local struct __kernel_timespec and provide a pointer to it to the syscall. This is a pointless operation for 64-bit, but this is not a hotpath operation, so keep it simple. This fix is based off [1] Originally-by: Wei Gao <wegao@suse.com> Signed-off-by: Terry Tritton <terry.tritton@linaro.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/20250704190234.14230-1-terry.tritton@linaro.org Link: https://lore.kernel.org/all/20231203235117.29677-1-wegao@suse.com/ [1]
Diffstat (limited to 'scripts/gdb/linux/xarray.py')
0 files changed, 0 insertions, 0 deletions