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
..
kasan UPSTREAM: mm/kasan: fix false positive invalid-free reports with CONFIG_KASAN_SW_TAGS=y 2019-09-24 17:44:16 -07:00
backing-dev.c writeback: synchronize sync(2) against cgroup writeback membership switches 2019-03-05 17:58:50 +01:00
balloon_compaction.c
bootmem.c
cleancache.c
cma_debug.c mm/cma: show cma bitmap in hex format 2021-01-06 16:59:56 +08:00
cma.c mm: cma: add CmaAllocated/CmaReleased info for meminfo node 2021-01-07 14:16:12 +08:00
cma.h mm/cma: support to set CMA area status 2020-07-02 10:21:15 +08:00
compaction.c Revert "BACKPORT: mm: move zone watermark accesses behind an accessor" 2020-04-22 14:10:19 +08:00
debug_page_ref.c
debug.c
dmapool.c UPSTREAM: mm: security: introduce init_on_alloc=1 and init_on_free=1 boot options 2019-08-30 11:58:12 +02:00
early_ioremap.c
fadvise.c
failslab.c
filemap.c UPSTREAM: mm/filemap.c: don't bother dropping mmap_sem for zero size readahead 2020-11-16 07:43:08 +01:00
frame_vector.c UPSTREAM: mm: untag user pointers in get_vaddr_frames 2019-10-07 15:27:40 -04:00
frontswap.c
gup_benchmark.c mm/gup_benchmark.c: prevent integer overflow in ioctl 2019-12-01 09:17:07 +01:00
gup.c UPSTREAM: mm: untag user pointers in mm/gup.c 2019-10-07 15:27:40 -04:00
highmem.c
hmm.c mm/memory_hotplug: shrink zones when offlining memory 2020-01-29 16:43:27 +01:00
huge_memory.c This is the 4.19.160 stable release 2020-11-24 14:57:17 +01:00
hugetlb_cgroup.c mm: hugetlb: switch to css_tryget() in hugetlb_cgroup_charge_cgroup() 2019-11-20 18:45:20 +01:00
hugetlb.c mm/hugetlb: fix a race between hugetlb sysctl handlers 2020-09-09 19:04:32 +02:00
hwpoison-inject.c
init-mm.c
internal.h Revert "UPSTREAM: mm, page_alloc: spread allocations across zones before introducing fragmentation" 2020-04-22 14:10:19 +08:00
interval_tree.c
Kconfig ANDROID: GKI: add fields from per-process mm event tracking feature 2020-04-17 06:43:14 +00:00
Kconfig.debug
khugepaged.c mm: khugepaged: recalculate min_free_kbytes after memory hotplug as expected by khugepaged 2020-10-14 10:31:26 +02:00
kmemleak-test.c
kmemleak.c mm/kmemleak.c: use address-of operator on section symbols 2020-10-01 13:14:41 +02:00
ksm.c mm/ksm: fix NULL pointer dereference when KSM zero page is enabled 2020-04-29 16:31:28 +02:00
list_lru.c mm/list_lru.c: fix memory leak in __memcg_init_list_lru_node 2019-06-19 08:17:59 +02:00
maccess.c uaccess: Add non-pagefault user-space write function 2020-09-09 19:04:29 +02:00
madvise.c UPSTREAM: mm: untag user pointers passed to memory syscalls 2019-10-07 15:27:40 -04:00
Makefile ANDROID: GKI: add fields from per-process mm event tracking feature 2020-04-17 06:43:14 +00:00
memblock.c ANDROID: GKI: export symbols from abi_gki_aarch64_qcom_whitelist 2020-04-13 21:36:41 +00:00
memcontrol.c mm/memcg: fix device private memcg accounting 2020-10-29 09:55:15 +01:00
memfd.c This is the 4.19.85 stable release 2019-11-20 20:43:17 +01:00
memory_hotplug.c mm: don't rely on system state to detect hot-plug operations 2020-10-07 08:00:08 +02:00
memory-failure.c mm/memory-failure: poison read receives SIGKILL instead of SIGBUS if mmaped more than once 2019-10-29 09:19:59 +01:00
memory.c This is the 4.19.149 stable release 2020-10-01 16:49:05 +02:00
mempolicy.c This is the 4.19.156 stable release 2020-11-10 13:23:09 +01:00
mempool.c
memtest.c
migrate.c This is the 4.19.103 stable release 2020-02-11 15:05:03 -08:00
mincore.c UPSTREAM: mm: untag user pointers passed to memory syscalls 2019-10-07 15:27:40 -04:00
mlock.c UPSTREAM: mm: untag user pointers passed to memory syscalls 2019-10-07 15:27:40 -04:00
mm_event.c ANDROID: GKI: support mm_event for FS/IO/UFS path 2020-05-30 00:09:49 +00:00
mm_init.c
mmap.c This is the 4.19.149 stable release 2020-10-01 16:49:05 +02:00
mmu_context.c
mmu_notifier.c mm/mmu_notifier: use hlist_add_head_rcu() 2019-07-31 07:27:08 +02:00
mmzone.c ANDROID: GKI: mm: Export symbols __next_zones_zonelist and zone_watermark_ok_safe 2020-04-10 02:39:42 +00:00
mprotect.c This is the 4.19.109 stable release 2020-03-11 17:10:39 +01:00
mremap.c This is the 4.19.127 stable release 2020-06-07 14:25:43 +02:00
msync.c UPSTREAM: mm: untag user pointers passed to memory syscalls 2019-10-07 15:27:40 -04:00
nobootmem.c init: defer free large memblock to Buddy allocator 2020-05-25 18:20:29 +08:00
nommu.c x86/mm: split vmalloc_sync_all() 2020-03-25 08:06:13 +01:00
oom_kill.c mm, oom_adj: don't loop through tasks in __set_oom_adj when not necessary 2020-10-29 09:55:15 +01:00
page_alloc.c Merge tag 'ASB-2020-12-05_4.19-stable' of https://android.googlesource.com/kernel/common 2020-12-29 16:10:48 +08:00
page_counter.c mm/page_counter.c: fix protection usage propagation 2020-08-21 11:05:33 +02:00
page_ext.c mm/page_ext.c: fix an imbalance with kmemleak 2019-04-05 22:32:58 +02:00
page_idle.c mm/page_idle.c: fix oops because end_pfn is larger than max_pfn 2019-07-03 13:14:45 +02:00
page_io.c UPSTREAM: mm/page_io.c: annotate refault stalls from swap_readpage 2020-01-24 17:54:49 +00:00
page_isolation.c mm/page_isolation.c: dump page owner if fail to isolate 2020-06-11 15:40:45 +08:00
page_owner.c mm/page_owner: print PFN when dump page owner 2020-06-11 15:40:45 +08:00
page_poison.c UPSTREAM: mm/page_poison: expose page_poisoning_enabled to kernel modules 2019-11-13 16:56:57 +00:00
page_vma_mapped.c
page-writeback.c mm/page-writeback.c: avoid potential division by zero in wb_min_max_ratio() 2020-01-23 08:21:31 +01:00
pagewalk.c mm: pagewalk: fix termination condition in walk_pte_range() 2020-10-01 13:14:32 +02:00
percpu-internal.h
percpu-km.c percpu: convert spin_lock_irq to spin_lock_irqsave. 2019-02-12 19:47:12 +01:00
percpu-stats.c
percpu-vm.c
percpu.c This is the 4.19.147 stable release 2020-09-24 12:48:04 +02:00
pgtable-generic.c
process_vm_access.c
quicklist.c
readahead.c
rmap.c mm/hmm: fix bad subpage pointer in try_to_unmap_one 2019-08-25 10:47:43 +02:00
rodata_test.c
shmem.c This is the 4.19.124 stable release 2020-05-20 11:37:46 +02:00
slab_common.c This is the 4.19.135 stable release 2020-07-29 13:22:30 +02:00
slab.c UPSTREAM: slab: store tagged freelist for off-slab slabmgmt 2020-11-16 09:22:35 +01:00
slab.h UPSTREAM: kasan, kmemleak: pass tagged pointers to kmemleak 2019-09-24 17:44:14 -07:00
slob.c UPSTREAM: mm/sl[uo]b: export __kmalloc_track(_node)_caller 2020-11-02 16:12:14 +00:00
slub.c Merge tag 'ASB-2020-11-05_4.19-stable' of https://android.googlesource.com/kernel/common 2020-11-03 18:36:42 +08:00
sparse-vmemmap.c
sparse.c mm/memory_hotplug: remove "zone" parameter from sparse_remove_one_section 2020-01-29 16:43:26 +01:00
swap_cgroup.c
swap_slots.c
swap_state.c This is the 4.19.149 stable release 2020-10-01 16:49:05 +02:00
swap.c mm/swap: fix release_pages() when releasing devmap pages 2019-07-31 07:27:03 +02:00
swapfile.c Merge tag 'ASB-2020-10-05_4.19-stable' of https://android.googlesource.com/kernel/common 2020-10-10 18:38:14 +08:00
truncate.c mm: cleancache: fix corruption on missed inode invalidation 2018-12-05 19:32:13 +01:00
usercopy.c usercopy: Avoid HIGHMEM pfn warning 2019-10-11 18:20:58 +02:00
userfaultfd.c hugetlb: use same fault hash key for shared and private mappings 2019-05-22 07:37:40 +02:00
util.c This is the 4.19.129 stable release 2020-06-22 10:50:54 +02:00
vmacache.c
vmalloc.c This is the 4.19.126 stable release 2020-06-03 09:23:15 +02:00
vmpressure.c mm/vmpressure.c: fix a signedness bug in vmpressure_register_event() 2019-10-17 13:45:19 -07:00
vmscan.c This is the 4.19.149 stable release 2020-10-01 16:49:05 +02:00
vmstat.c ANDROID: GKI: fix ABI diffs caused by GPU heap and pool vmstat additions 2020-07-07 23:32:09 +08:00
workingset.c UPSTREAM: mm: workingset: tell cache transitions from workingset thrashing 2019-03-21 16:25:26 -07:00
z3fold.c
zbud.c
zpool.c
zsmalloc.c mm/zsmalloc.c: fix the migrated zspage statistics. 2020-01-09 10:19:00 +01:00
zswap.c