2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 09:58:09 +00:00
criu/include/kcmp-ids.h
Cyrill Gorcunov 40ed330c88 kcmp: Stop showing ids tree
Useless, at least in the form present
now it's unreadable anyway. So stop
welling out the logs.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2015-08-18 18:17:31 +03:00

30 lines
484 B
C

#ifndef __CR_KCMP_IDS_H__
#define __CR_KCMP_IDS_H__
#include "kcmp.h"
struct kid_tree {
struct rb_root root;
unsigned kcmp_type;
unsigned long subid;
};
#define DECLARE_KCMP_TREE(name, type) \
struct kid_tree name = { \
.root = RB_ROOT, \
.kcmp_type = type, \
.subid = 1, \
}
struct kid_elem {
int pid;
unsigned genid;
unsigned idx;
};
extern u32 kid_generate_gen(struct kid_tree *tree,
struct kid_elem *elem, int *new_id);
#endif /* __CR_KCMP_IDS_H__ */