Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
criu: implement helper functions and structures to restore BPF maps
Updated bpfmap.c to define: a) structures and structure variables needed to hold information about BPF map files that are being restored * struct bpfmap_file_info - A new structure that is used to store information about the BPF map file currently being restored * struct file_desc_ops bpfmap_desc_ops - A structure variable that specifies the function handler for opening BPF map files * struct collect_image_info bpfmap_cinfo - A structure variable that specifies the function handler for collecting BPF map files from checkpointed images b) functions * collect_one_bpfmap() - handler for collecting information about BPF map files from the checkpointed image and adding it to the process' list of file descriptors that must be restored * bpfmap_open() - creates a new BPF map file with the same parameters as the checkpointed image and sets it to the same file descriptor number used by the process before it was checkpointed This commit provides the infrastructure needed by other parts of CRIU to restore a process' BPF map files Signed-off-by: Abhishek Vijeev <[email protected]>
- Loading branch information