arm64: rusage: Fix counting contiguous PTEs

Change-Id: I7e89c25d49dc1f6efe1c27c76c66c6fedd22af1f
Refs: #1342
This commit is contained in:
Masamichi Takagi
2019-07-30 11:45:38 +09:00
parent 0c1cae45fe
commit 51cd7cbb6c
9 changed files with 559 additions and 23 deletions

18
test/issues/1342/README Normal file
View File

@ -0,0 +1,18 @@
==========
How to run
==========
$ (cd <mckernel>; patch -p1 < test/issues/1342/patch.mck)
$ (cd <ihk>; patch -p1 < test/issues/1342/patch.ihk)
Build McKernel
$ make test
Check if "log" file contains "<address>+,..." and the size of "diff"
file is zero.
================
Test description
================
(1) Show memory_stat_rss[]
(2) malloc 350 MB, touch the region, free it
(3) malloc 400 MB, touch the region, free it
(4) Show memory_stat_rss[], expecting the amounts are the same as in
(1)