summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAliaksey Kandratsenka <alk@tut.by>2015-06-13 21:28:28 -0700
committerAliaksey Kandratsenka <alk@tut.by>2015-06-27 21:17:48 -0700
commitcb998e56d763cfe901cf30a692d4cfd4f85259ae (patch)
tree0e18fb01323b615723f61670e8283dbc5534529f
parent36066b8df4bc516ade5209a1f60bd84d6448b531 (diff)
downloadgperftools-cb998e56d763cfe901cf30a692d4cfd4f85259ae.tar.gz
issue-693: convert sys_futex to it's 6-arg form
Because sys_futex actually takes 6 args in more recent kernels (even though last two args are unused for FUTEX_{WAKE,WAIT}. This is patch contributed by user spotrh.
-rw-r--r--src/base/linux_syscall_support.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/base/linux_syscall_support.h b/src/base/linux_syscall_support.h
index 9b6c35d..c8f8f59 100644
--- a/src/base/linux_syscall_support.h
+++ b/src/base/linux_syscall_support.h
@@ -2094,9 +2094,11 @@ struct kernel_stat {
int, c, long, a)
LSS_INLINE _syscall2(int, fstat, int, f,
struct kernel_stat*, b)
- LSS_INLINE _syscall4(int, futex, int*, a,
+ LSS_INLINE _syscall6(int, futex, int*, a,
int, o, int, v,
- struct kernel_timespec*, t)
+ struct kernel_timespec*, t,
+ int*, a2,
+ int, v3)
#ifdef __NR_getdents64
LSS_INLINE _syscall3(int, getdents64, int, f,
struct kernel_dirent64*, d, int, c)