Commit 6670d294 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

prctl: Update PR_GET_TID_ADDR definition

To reflect the change in kernel v3.4-rc4
update PR_GET_TID_ADDR and rename it to
PR_GET_TID_ADDRESS as it named in kernel.

[xemul: this fixes futex test broken with 3.4 rebase]
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 9a2d2a69
...@@ -84,9 +84,9 @@ static int check_prctl(void) ...@@ -84,9 +84,9 @@ static int check_prctl(void)
unsigned int *tid_addr; unsigned int *tid_addr;
int ret; int ret;
ret = sys_prctl(PR_GET_TID_ADDR, (unsigned long)&tid_addr, 0, 0, 0); ret = sys_prctl(PR_GET_TID_ADDRESS, (unsigned long)&tid_addr, 0, 0, 0);
if (ret) { if (ret) {
pr_msg("prctl: PR_GET_TID_ADDR is not supported\n"); pr_msg("prctl: PR_GET_TID_ADDRESS is not supported\n");
return -1; return -1;
} }
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
# define PR_SET_MM_AUXV 12 # define PR_SET_MM_AUXV 12
# define PR_SET_MM_EXE_FILE 13 # define PR_SET_MM_EXE_FILE 13
#define PR_GET_TID_ADDR 36 #define PR_GET_TID_ADDRESS 40
/* fcntl */ /* fcntl */
#ifndef F_LINUX_SPECIFIC_BASE #ifndef F_LINUX_SPECIFIC_BASE
......
...@@ -358,7 +358,7 @@ static int dump_tid_addr(struct parasite_dump_tid_addr *args) ...@@ -358,7 +358,7 @@ static int dump_tid_addr(struct parasite_dump_tid_addr *args)
parasite_status_t *st = &args->status; parasite_status_t *st = &args->status;
int ret; int ret;
ret = sys_prctl(PR_GET_TID_ADDR, (unsigned long) &args->tid_addr, 0, 0, 0); ret = sys_prctl(PR_GET_TID_ADDRESS, (unsigned long) &args->tid_addr, 0, 0, 0);
if (ret) { if (ret) {
SET_PARASITE_RET(st, ret); SET_PARASITE_RET(st, ret);
return ret; return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment