Commit 529f1a09 authored by Pavel Emelyanov's avatar Pavel Emelyanov

img: Needed declarations for irmap-cache image file

The irmap-cache is PB-file (like the stat-* ones).
See commtns in next patches for more details.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 751856c8
......@@ -320,6 +320,7 @@ static struct show_image_info show_infos[] = {
SHOW_PLAIN(RLIMIT),
SHOW_PLAIN(TUNFILE),
SHOW_PLAINS(EXT_FILE),
SHOW_PLAIN(IRMAP_CACHE),
{ TCP_STREAM_MAGIC, PB_TCP_STREAM, true, show_tcp_stream, "1:%u 2:%u 3:%u 4:%u 12:%u", },
{ STATS_MAGIC, PB_STATS, true, NULL, "1.1:%u 1.2:%u 1.3:%u 1.4:%u 1.5:%Lu 1.6:%Lu 1.7:%Lu", },
......
......@@ -81,4 +81,9 @@ struct cr_fd_desc_tmpl fdset_template[CR_FD_MAX] = {
.fmt = "stats-%s",
.magic = STATS_MAGIC,
},
[CR_FD_IRMAP_CACHE] = {
.fmt = "irmap-cache",
.magic = IRMAP_CACHE_MAGIC,
},
};
......@@ -87,6 +87,8 @@ enum {
CR_FD_PAGES_OLD,
CR_FD_SHM_PAGES_OLD,
CR_FD_IRMAP_CACHE,
CR_FD_MAX
};
......
......@@ -81,4 +81,6 @@
#define PAGES_OLD_MAGIC PAGEMAP_MAGIC
#define SHM_PAGES_OLD_MAGIC PAGEMAP_MAGIC
#define IRMAP_CACHE_MAGIC 0x57004059 /* Ivanovo */
#endif /* __CR_MAGIC_H__ */
......@@ -49,6 +49,7 @@ enum {
PB_PAGEMAP,
PB_SIGINFO,
PB_TUNFILE,
PB_IRMAP_CACHE,
/* PB_AUTOGEN_STOP */
......
......@@ -10,3 +10,9 @@ message fh_entry {
repeated uint64 handle = 3;
optional string path = 4;
}
message irmap_cache_entry {
required uint32 dev = 1;
required uint64 inode = 2;
required string path = 3;
}
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