Files
linux/fs
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-11-05 11:08:53 +01:00
2019-08-06 19:06:51 +02:00
2020-10-30 10:38:28 +01:00
2018-08-17 16:20:28 -07:00
2019-05-22 08:00:39 +02:00
2019-12-13 08:51:59 +01:00
2020-11-18 19:18:49 +01:00
2020-11-05 11:08:50 +01:00
2020-06-22 09:05:01 +02:00
2020-03-05 16:42:12 +01:00
2020-04-29 17:26:17 +02:00
2020-05-03 08:48:02 +02:00
2020-01-04 19:29:03 +01:00