kmemleak

kmemleak:

the memory leak detector,目前只有X86 || ARM || PPC || S390 || SPARC64 || SUPERH || MICROBLAZE等架构上可使能。

config DEBUG_KMEMLEAK
        bool "Kernel memory leak detector"
        depends on DEBUG_KERNEL && EXPERIMENTAL && !MEMORY_HOTPLUG && \
                (X86 || ARM || PPC || S390 || SPARC64 || SUPERH || MICROBLAZE)

        select DEBUG_FS if SYSFS
        select STACKTRACE if STACKTRACE_SUPPORT
        select KALLSYMS
        select CRC32
        help
          Say Y here if you want to enable the memory leak
          detector. The memory allocation/freeing is traced in a way
          similar to the Boehm's conservative garbage collector, the
          difference being that the orphan objects are not freed but
          only shown in /sys/kernel/debug/kmemleak. Enabling this
          feature will introduce an overhead to memory
          allocations. See Documentation/kmemleak.txt for more
          details.

          Enabling DEBUG_SLAB or SLUB_DEBUG may increase the chances
          of finding leaks due to the slab objects poisoning.

          In order to access the kmemleak file, debugfs needs to be
          mounted (usually at /sys/kernel/debug).

 

你可能感兴趣的:(File,Access,leak,X86)