new: mstat()函数,查询内存信息

This commit is contained in:
fslongjin
2022-08-06 23:31:25 +08:00
parent fdd5d3cf66
commit fb51b0dd6f
8 changed files with 270 additions and 7 deletions

View File

@ -2,7 +2,7 @@
CFLAGS += -I .
all:mm.o slab.o
all:mm.o slab.o mm-stat.o
mm.o: mm.c
gcc $(CFLAGS) -c mm.c -o mm.o
@ -10,3 +10,5 @@ mm.o: mm.c
slab.o: slab.c
gcc $(CFLAGS) -c slab.c -o slab.o
mm-stat.o: mm-stat.c
gcc $(CFLAGS) -c mm-stat.c -o mm-stat.o