Commit 3f381451 authored by Pavel Emelyanov's avatar Pavel Emelyanov

pstree: Introduce item's dump info

Empty for now, will be filled soon.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent c443b03e
......@@ -36,6 +36,14 @@ static inline struct rst_info *rsti(struct pstree_item *i)
return (struct rst_info *)(i + 1);
}
struct dmp_info {
};
static inline struct dmp_info *dmpi(struct pstree_item *i)
{
return (struct dmp_info *)(i + 1);
}
/* ids is alocated and initialized for all alive tasks */
static inline int shared_fdtable(struct pstree_item *item)
{
......
......@@ -162,14 +162,14 @@ void free_pstree(struct pstree_item *root_item)
struct pstree_item *__alloc_pstree_item(bool rst)
{
struct pstree_item *item;
int sz;
if (!rst) {
item = xzalloc(sizeof(*item));
sz = sizeof(*item) + sizeof(struct dmp_info);
item = xzalloc(sz);
if (!item)
return NULL;
} else {
int sz;
sz = sizeof(*item) + sizeof(struct rst_info);
item = shmalloc(sz);
if (!item)
......
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