Files
linux/mm
Jianqun Xu 7a669a6418 mm: cma: add CmaAllocated/CmaReleased info for meminfo node
Show the CMA pages used by cma_alloc in meminfo node.

Tested on RV1126 EVB DDR3:
CmaTotal:         270336 kB
CmaAllocated:      44408 kB
CmaReleased:      225928 kB
CmaFree:               0 kB

The CmaTotal = CmaAllocated + CmaReleased, and the CmaFree is pages
under cma area unused by system.

The CmaAllocated can be calculated by CMA_DEBUGFS.
Tested on RV1126 EVB DDR3:
cat /sys/kernel/debug/cma/*/used
10756
346

The results from cma used is in page count, 1 page = 4kByte
CmaAllocated = 44408kB = 10756 + 346 pages

Change-Id: Ib79001367562c968e6432816b158cba551978173
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2021-01-07 14:16:12 +08:00
..
2020-07-02 10:21:15 +08:00
2019-11-20 20:43:17 +01:00
2020-02-11 15:05:03 -08:00
2020-10-01 16:49:05 +02:00
2020-03-11 17:10:39 +01:00
2020-03-25 08:06:13 +01:00
2019-10-11 18:20:58 +02:00
2020-06-22 10:50:54 +02:00
2018-12-01 09:37:33 +01:00