git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve cake allocator's memory utilisation (#43)
[lunaix-os.git]
/
lunaix-os
/
kernel
/
mm
/
cake_export.c
diff --git
a/lunaix-os/kernel/mm/cake_export.c
b/lunaix-os/kernel/mm/cake_export.c
index 377a9adea8b06d2cf23ee93c5f565942cf64c8bf..e2ecb3a54eb5d15da635f4be7f99b3140a25c6d5 100644
(file)
--- a/
lunaix-os/kernel/mm/cake_export.c
+++ b/
lunaix-os/kernel/mm/cake_export.c
@@
-18,7
+18,7
@@
void
__cake_stat_reset(struct twimap* map)
{
map->index = container_of(&piles, struct cake_pile, piles);
__cake_stat_reset(struct twimap* map)
{
map->index = container_of(&piles, struct cake_pile, piles);
- twimap_printf(map, "name
, n_cakes, pg/cake, slices/cake, n_slic
es\n");
+ twimap_printf(map, "name
cakes pages size slices activ
es\n");
}
void
}
void
@@
-26,10
+26,11
@@
__cake_rd_stat(struct twimap* map)
{
struct cake_pile* pos = twimap_index(map, struct cake_pile*);
twimap_printf(map,
{
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->pile_name,
pos->cakes_count,
pos->pg_per_cake,
+ pos->piece_size,
pos->pieces_per_cake,
pos->alloced_pieces);
}
pos->pieces_per_cake,
pos->alloced_pieces);
}