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