void
__cake_stat_reset(struct twimap* map)
{
- map->index = container_of(piles.next, struct cake_pile, piles);
+ map->index = container_of(&piles, struct cake_pile, piles);
+ twimap_printf(map, "name cakes pages size slices actives\n");
}
void
{
struct cake_pile* pos = twimap_index(map, struct cake_pile*);
twimap_printf(map,
- "%s %d %d %d %d\n",
+ "%s %d %d %d %d %d\n",
pos->pile_name,
pos->cakes_count,
pos->pg_per_cake,
+ pos->piece_size,
pos->pieces_per_cake,
pos->alloced_pieces);
}
map->reset = __cake_stat_reset;
map->go_next = __cake_stat_gonext;
map->read = __cake_rd_stat;
- __cake_stat_reset(map);
struct cake_pile *pos, *n;
llist_for_each(pos, n, &piles, piles)
{
cake_export_pile(cake_root, pos);
}
-}
\ No newline at end of file
+}
+EXPORT_TWIFS_PLUGIN(cake_alloc, cake_export);
\ No newline at end of file