automated: linux: modules: add kmemleak-based cumulative leak detection

Enhance cumulative leak detection by integrating kmemleak scanning as the
primary detection method, with MemAvailable fallback for systems without
kmemleak support.

The function now:
- Uses kmemleak scan after all iterations complete to detect cumulative leaks
- Reports kmemleak_{module} results instead of memcheck_{module} when available
- Clears kmemleak state after each module to prevent cross-contamination
- Falls back to MemAvailable-based detection when kmemleak unavailable

This provides more accurate memory leak detection using the kernel's native
leak detector while maintaining backward compatibility with systems that
don't have kmemleak enabled.

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
1 file changed
tree: 424578009da8ac6adcb76b76bfb405a0819e8025
  1. .github/
  2. .reuse/
  3. automated/
  4. docs/
  5. LICENSES/
  6. manual/
  7. mkdocs_plugin/
  8. plans/
  9. test/
  10. .gitignore
  11. .readthedocs.yml
  12. COPYING
  13. COPYRIGHTS
  14. mkdocs.yml
  15. README.md
  16. sanity-check.sh
  17. test.sh
  18. validate.py
README.md

Build Status REUSE Compliance Check

Test Definitions

A set of testing scripts designed to work with LAVA. Also contains test-runner script that allows execution outside LAVA.

More details in docs