mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
criu: define constants for c/r of BPF maps
This commit defines constants and includes necessary headers to c/r BPF maps Source files modified: * magic.h - Defining BPFMAP_FILE_MAGIC and BPFMAP_DATA_MAGIC * image-desc.h - Defining CR_FD_BPFMAP_FILE and CR_FD_BPFMAP_DATA * image-desc.c - Create new entries for bpfmap-file and bpfmap-data in CRIU's file descriptor set * protobuf-desc.h - Defining PB_BPFMAP_FILE and PB_BPFMAP_DATA * protobuf-desc.c - Including headers for BPF map protobuf images Signed-off-by: Abhishek Vijeev <abhishek.vijeev@gmail.com>
This commit is contained in:
committed by
Andrei Vagin
parent
c26cd1395f
commit
95b7d06cbc
@@ -104,6 +104,8 @@ struct cr_fd_desc_tmpl imgset_template[CR_FD_MAX] = {
|
||||
FD_ENTRY(FILES, "files"),
|
||||
FD_ENTRY(TIMENS, "timens-%u"),
|
||||
FD_ENTRY(PIDNS, "pidns-%u"),
|
||||
FD_ENTRY_F(BPFMAP_FILE, "bpfmap-file", O_NOBUF),
|
||||
FD_ENTRY_F(BPFMAP_DATA, "bpfmap-data", O_NOBUF),
|
||||
|
||||
[CR_FD_STATS] = {
|
||||
.fmt = "stats-%s",
|
||||
|
@@ -68,6 +68,8 @@ enum {
|
||||
CR_FD_FILE_LOCKS,
|
||||
CR_FD_SECCOMP,
|
||||
CR_FD_MEMFD_INODE,
|
||||
CR_FD_BPFMAP_FILE,
|
||||
CR_FD_BPFMAP_DATA,
|
||||
_CR_FD_GLOB_TO,
|
||||
|
||||
CR_FD_TMPFS_IMG,
|
||||
|
@@ -97,6 +97,8 @@
|
||||
#define MEMFD_INODE_MAGIC 0x48453499 /* Dnipro */
|
||||
#define TIMENS_MAGIC 0x43114433 /* Beslan */
|
||||
#define PIDNS_MAGIC 0x61157326 /* Surgut */
|
||||
#define BPFMAP_FILE_MAGIC 0x57506142 /* Alapayevsk */
|
||||
#define BPFMAP_DATA_MAGIC 0x64324033 /* Arkhangelsk */
|
||||
|
||||
#define IFADDR_MAGIC RAW_IMAGE_MAGIC
|
||||
#define ROUTE_MAGIC RAW_IMAGE_MAGIC
|
||||
|
@@ -67,6 +67,8 @@ enum {
|
||||
PB_IMG_STREAMER_REQUEST,
|
||||
PB_IMG_STREAMER_REPLY,
|
||||
PB_PIDNS,
|
||||
PB_BPFMAP_FILE,
|
||||
PB_BPFMAP_DATA,
|
||||
|
||||
/* PB_AUTOGEN_STOP */
|
||||
|
||||
|
@@ -65,6 +65,8 @@
|
||||
#include "images/binfmt-misc.pb-c.h"
|
||||
#include "images/autofs.pb-c.h"
|
||||
#include "images/img-streamer.pb-c.h"
|
||||
#include "images/bpfmap-file.pb-c.h"
|
||||
#include "images/bpfmap-data.pb-c.h"
|
||||
|
||||
struct cr_pb_message_desc cr_pb_descs[PB_MAX];
|
||||
|
||||
|
Reference in New Issue
Block a user