Files
linux/fs
Jianqun Xu 45b3d59d13 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>
2022-09-27 17:05:11 +08:00
..
2022-01-20 09:34:45 +01:00
2022-02-07 11:17:58 +01:00
2022-09-26 18:04:24 +08:00
2021-05-13 14:22:11 +02:00
2022-04-18 17:41:18 +02:00
2022-03-18 15:02:31 +01:00
2022-02-23 12:56:37 +01:00