Commit ea403c7a authored by Tikhomirov Pavel's avatar Tikhomirov Pavel Committed by Pavel Emelyanov

v3 deduplication: add dedup comand to criu

Signed-off-by: 's avatarTikhomirov Pavel <snorcht@gmail.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 5db1adc5
......@@ -12,6 +12,7 @@ obj-y += proc_parse.o
obj-y += cr-dump.o
obj-y += cr-show.o
obj-y += cr-check.o
obj-y += cr-dedup.o
obj-y += util.o
obj-y += sysctl.o
obj-y += ptrace.o
......
#include <unistd.h>
#include "crtools.h"
int cr_dedup(void)
{
return 0;
}
......@@ -359,6 +359,9 @@ int main(int argc, char *argv[])
if (!strcmp(argv[optind], "service"))
return cr_service(opts.restore_detach);
if (!strcmp(argv[optind], "dedup"))
return cr_dedup() != 0;
pr_msg("Unknown command \"%s\"\n", argv[optind]);
usage:
pr_msg("\n"
......@@ -370,6 +373,7 @@ usage:
" criu exec -p PID <syscall-string>\n"
" criu page-server\n"
" criu service [<options>]\n"
" criu dedup\n"
"\n"
"Commands:\n"
" dump checkpoint a process/tree identified by pid\n"
......@@ -380,6 +384,7 @@ usage:
" exec execute a system call by other task\n"
" page-server launch page server\n"
" service launch service\n"
" dedup remove duplicates in memory dump\n"
);
if (argc < 2) {
......
......@@ -22,6 +22,7 @@ extern int cr_show(int pid);
extern int convert_to_elf(char *elf_path, int fd_core);
extern int cr_check(void);
extern int cr_exec(int pid, char **opts);
extern int cr_dedup(void);
extern void restrict_uid(unsigned int uid, unsigned int gid);
struct proc_status_creds;
......
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