[CRIU] [PATCH] prctl: Update PR_GET_TID_ADDR definition
Cyrill Gorcunov
gorcunov at openvz.org
Wed Apr 25 13:59:01 EDT 2012
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.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
cr-check.c | 4 ++--
include/types.h | 2 +-
parasite.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/cr-check.c b/cr-check.c
index 82032a5..bfe40a1 100644
--- a/cr-check.c
+++ b/cr-check.c
@@ -84,9 +84,9 @@ static int check_prctl(void)
unsigned int *tid_addr;
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) {
- pr_msg("prctl: PR_GET_TID_ADDR is not supported\n");
+ pr_msg("prctl: PR_GET_TID_ADDRESS is not supported\n");
return -1;
}
diff --git a/include/types.h b/include/types.h
index 36d5a8f..425495e 100644
--- a/include/types.h
+++ b/include/types.h
@@ -41,7 +41,7 @@
# define PR_SET_MM_AUXV 12
# define PR_SET_MM_EXE_FILE 13
-#define PR_GET_TID_ADDR 36
+#define PR_GET_TID_ADDRESS 40
/* fcntl */
#ifndef F_LINUX_SPECIFIC_BASE
diff --git a/parasite.c b/parasite.c
index 407376a..639494e 100644
--- a/parasite.c
+++ b/parasite.c
@@ -358,7 +358,7 @@ static int dump_tid_addr(struct parasite_dump_tid_addr *args)
parasite_status_t *st = &args->status;
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) {
SET_PARASITE_RET(st, ret);
return ret;
--
1.7.7.6
More information about the CRIU
mailing list