Back to home page

LXR

 
 

    


0001 #
0002 # Makefile for the linux memory manager.
0003 #
0004 
0005 KASAN_SANITIZE_slab_common.o := n
0006 KASAN_SANITIZE_slab.o := n
0007 KASAN_SANITIZE_slub.o := n
0008 
0009 # These files are disabled because they produce non-interesting and/or
0010 # flaky coverage that is not a function of syscall inputs. E.g. slab is out of
0011 # free pages, or a task is migrated between nodes.
0012 KCOV_INSTRUMENT_slab_common.o := n
0013 KCOV_INSTRUMENT_slob.o := n
0014 KCOV_INSTRUMENT_slab.o := n
0015 KCOV_INSTRUMENT_slub.o := n
0016 KCOV_INSTRUMENT_page_alloc.o := n
0017 KCOV_INSTRUMENT_debug-pagealloc.o := n
0018 KCOV_INSTRUMENT_kmemleak.o := n
0019 KCOV_INSTRUMENT_kmemcheck.o := n
0020 KCOV_INSTRUMENT_memcontrol.o := n
0021 KCOV_INSTRUMENT_mmzone.o := n
0022 KCOV_INSTRUMENT_vmstat.o := n
0023 
0024 mmu-y                   := nommu.o
0025 mmu-$(CONFIG_MMU)       := gup.o highmem.o memory.o mincore.o \
0026                            mlock.o mmap.o mprotect.o mremap.o msync.o rmap.o \
0027                            vmalloc.o pagewalk.o pgtable-generic.o
0028 
0029 ifdef CONFIG_CROSS_MEMORY_ATTACH
0030 mmu-$(CONFIG_MMU)       += process_vm_access.o
0031 endif
0032 
0033 obj-y                   := filemap.o mempool.o oom_kill.o \
0034                            maccess.o page_alloc.o page-writeback.o \
0035                            readahead.o swap.o truncate.o vmscan.o shmem.o \
0036                            util.o mmzone.o vmstat.o backing-dev.o \
0037                            mm_init.o mmu_context.o percpu.o slab_common.o \
0038                            compaction.o vmacache.o \
0039                            interval_tree.o list_lru.o workingset.o \
0040                            debug.o $(mmu-y)
0041 
0042 obj-y += init-mm.o
0043 
0044 ifdef CONFIG_NO_BOOTMEM
0045         obj-y           += nobootmem.o
0046 else
0047         obj-y           += bootmem.o
0048 endif
0049 
0050 obj-$(CONFIG_ADVISE_SYSCALLS)   += fadvise.o
0051 ifdef CONFIG_MMU
0052         obj-$(CONFIG_ADVISE_SYSCALLS)   += madvise.o
0053 endif
0054 obj-$(CONFIG_HAVE_MEMBLOCK) += memblock.o
0055 
0056 obj-$(CONFIG_SWAP)      += page_io.o swap_state.o swapfile.o
0057 obj-$(CONFIG_FRONTSWAP) += frontswap.o
0058 obj-$(CONFIG_ZSWAP)     += zswap.o
0059 obj-$(CONFIG_HAS_DMA)   += dmapool.o
0060 obj-$(CONFIG_HUGETLBFS) += hugetlb.o
0061 obj-$(CONFIG_NUMA)      += mempolicy.o
0062 obj-$(CONFIG_SPARSEMEM) += sparse.o
0063 obj-$(CONFIG_SPARSEMEM_VMEMMAP) += sparse-vmemmap.o
0064 obj-$(CONFIG_SLOB) += slob.o
0065 obj-$(CONFIG_MMU_NOTIFIER) += mmu_notifier.o
0066 obj-$(CONFIG_KSM) += ksm.o
0067 obj-$(CONFIG_PAGE_POISONING) += page_poison.o
0068 obj-$(CONFIG_SLAB) += slab.o
0069 obj-$(CONFIG_SLUB) += slub.o
0070 obj-$(CONFIG_KMEMCHECK) += kmemcheck.o
0071 obj-$(CONFIG_KASAN)     += kasan/
0072 obj-$(CONFIG_FAILSLAB) += failslab.o
0073 obj-$(CONFIG_MEMORY_HOTPLUG) += memory_hotplug.o
0074 obj-$(CONFIG_MEMTEST)           += memtest.o
0075 obj-$(CONFIG_MIGRATION) += migrate.o
0076 obj-$(CONFIG_QUICKLIST) += quicklist.o
0077 obj-$(CONFIG_TRANSPARENT_HUGEPAGE) += huge_memory.o khugepaged.o
0078 obj-$(CONFIG_PAGE_COUNTER) += page_counter.o
0079 obj-$(CONFIG_MEMCG) += memcontrol.o vmpressure.o
0080 obj-$(CONFIG_MEMCG_SWAP) += swap_cgroup.o
0081 obj-$(CONFIG_CGROUP_HUGETLB) += hugetlb_cgroup.o
0082 obj-$(CONFIG_MEMORY_FAILURE) += memory-failure.o
0083 obj-$(CONFIG_HWPOISON_INJECT) += hwpoison-inject.o
0084 obj-$(CONFIG_DEBUG_KMEMLEAK) += kmemleak.o
0085 obj-$(CONFIG_DEBUG_KMEMLEAK_TEST) += kmemleak-test.o
0086 obj-$(CONFIG_PAGE_OWNER) += page_owner.o
0087 obj-$(CONFIG_CLEANCACHE) += cleancache.o
0088 obj-$(CONFIG_MEMORY_ISOLATION) += page_isolation.o
0089 obj-$(CONFIG_ZPOOL)     += zpool.o
0090 obj-$(CONFIG_ZBUD)      += zbud.o
0091 obj-$(CONFIG_ZSMALLOC)  += zsmalloc.o
0092 obj-$(CONFIG_Z3FOLD)    += z3fold.o
0093 obj-$(CONFIG_GENERIC_EARLY_IOREMAP) += early_ioremap.o
0094 obj-$(CONFIG_CMA)       += cma.o
0095 obj-$(CONFIG_MEMORY_BALLOON) += balloon_compaction.o
0096 obj-$(CONFIG_PAGE_EXTENSION) += page_ext.o
0097 obj-$(CONFIG_CMA_DEBUGFS) += cma_debug.o
0098 obj-$(CONFIG_USERFAULTFD) += userfaultfd.o
0099 obj-$(CONFIG_IDLE_PAGE_TRACKING) += page_idle.o
0100 obj-$(CONFIG_FRAME_VECTOR) += frame_vector.o
0101 obj-$(CONFIG_DEBUG_PAGE_REF) += debug_page_ref.o
0102 obj-$(CONFIG_HARDENED_USERCOPY) += usercopy.o