mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
Fixes: #1560 The latest protobuf-c compiler breaks CRIU because they removed leading underscores from structs in 1.4.0. This replaces those definitions with the standard generated structs. v2: remove struct _VmaEntry, struct _CredsEntry and struct _CoreEntry Signed-off-by: Zeyad Yasser <zeyady98@gmail.com>
55 lines
2 KiB
C
55 lines
2 KiB
C
#ifndef __CR_PARASITE_SYSCALL_H__
|
|
#define __CR_PARASITE_SYSCALL_H__
|
|
|
|
#include "pid.h"
|
|
#include "common/list.h"
|
|
#include "common/config.h"
|
|
#include "asm/parasite-syscall.h"
|
|
|
|
struct parasite_dump_thread;
|
|
struct parasite_dump_misc;
|
|
struct parasite_drain_fd;
|
|
struct vm_area_list;
|
|
struct pstree_item;
|
|
struct list_head;
|
|
struct cr_imgset;
|
|
struct fd_opts;
|
|
struct pid;
|
|
struct parasite_dump_cgroup_args;
|
|
struct rt_sigframe;
|
|
|
|
struct parasite_ctl;
|
|
struct parasite_thread_ctl;
|
|
|
|
extern int parasite_dump_sigacts_seized(struct parasite_ctl *ctl, struct pstree_item *);
|
|
extern int parasite_dump_itimers_seized(struct parasite_ctl *ctl, struct pstree_item *);
|
|
|
|
struct proc_posix_timers_stat;
|
|
extern int parasite_dump_posix_timers_seized(struct proc_posix_timers_stat *proc_args,
|
|
struct parasite_ctl *ctl, struct pstree_item *);
|
|
|
|
extern int parasite_dump_misc_seized(struct parasite_ctl *ctl, struct parasite_dump_misc *misc);
|
|
extern int parasite_dump_creds(struct parasite_ctl *ctl, CredsEntry *ce);
|
|
extern int parasite_dump_thread_leader_seized(struct parasite_ctl *ctl, int pid, CoreEntry *core);
|
|
extern int parasite_dump_thread_seized(struct parasite_thread_ctl *tctl,
|
|
struct parasite_ctl *ctl, int id,
|
|
struct pid *tid, CoreEntry *core);
|
|
extern int dump_thread_core(int pid, CoreEntry *core,
|
|
const struct parasite_dump_thread *dt);
|
|
|
|
extern int parasite_drain_fds_seized(struct parasite_ctl *ctl,
|
|
struct parasite_drain_fd *dfds, int nr_fds, int off,
|
|
int *lfds, struct fd_opts *flags);
|
|
extern int parasite_get_proc_fd_seized(struct parasite_ctl *ctl);
|
|
|
|
extern struct parasite_ctl *parasite_infect_seized(pid_t pid,
|
|
struct pstree_item *item,
|
|
struct vm_area_list *vma_area_list);
|
|
extern void parasite_ensure_args_size(unsigned long sz);
|
|
extern unsigned long get_exec_start(struct vm_area_list *);
|
|
|
|
extern int parasite_dump_cgroup(struct parasite_ctl *ctl, struct parasite_dump_cgroup_args *cgroup);
|
|
|
|
extern struct parasite_tty_args *parasite_dump_tty(struct parasite_ctl *ctl, int fd, int type);
|
|
|
|
#endif /* __CR_PARASITE_SYSCALL_H__ */
|