[CRIU] [PATCH 3/3] parasite: remove the DUMP_TREAD command
Andrey Vagin
avagin at openvz.org
Wed Jul 10 09:42:04 EDT 2013
Nobody uses it.
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
include/parasite.h | 1 -
pie/parasite.c | 18 ------------------
2 files changed, 19 deletions(-)
diff --git a/include/parasite.h b/include/parasite.h
index 6011b55..b415423 100644
--- a/include/parasite.h
+++ b/include/parasite.h
@@ -43,7 +43,6 @@ enum {
PARASITE_CMD_DUMP_POSIX_TIMERS,
PARASITE_CMD_DUMP_MISC,
PARASITE_CMD_DUMP_CREDS,
- PARASITE_CMD_DUMP_THREAD,
PARASITE_CMD_DRAIN_FDS,
PARASITE_CMD_GET_PROC_FD,
PARASITE_CMD_DUMP_TTY,
diff --git a/pie/parasite.c b/pie/parasite.c
index 6778c70..9ccd031 100644
--- a/pie/parasite.c
+++ b/pie/parasite.c
@@ -199,21 +199,6 @@ static int drain_fds(struct parasite_drain_fd *args)
return ret;
}
-static int dump_thread(struct parasite_dump_thread *args)
-{
- pid_t tid = sys_gettid();
- int ret;
-
- ret = sys_prctl(PR_GET_TID_ADDRESS, (unsigned long) &args->tid_addr, 0, 0, 0);
- if (ret)
- return ret;
-
- args->tid = tid;
- args->tls = arch_get_tls();
-
- return 0;
-}
-
static int init_thread(struct parasite_dump_thread *args)
{
k_rtsigset_t to_block;
@@ -516,9 +501,6 @@ static noinline __used int noinline parasite_daemon(void *args)
switch (m.cmd) {
case PARASITE_CMD_FINI:
goto out;
- case PARASITE_CMD_DUMP_THREAD:
- ret = dump_thread(args);
- break;
case PARASITE_CMD_DUMPPAGES:
ret = dump_pages(args);
break;
--
1.8.3.1
More information about the CRIU
mailing list