Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Testing memory leaks from your kernel code

TBDSuppose that you have a kernel module code which you want to test for kernel memory leaks. Make sure that kmemleak is enabled as mentioned above. Then, run the functionality of your kernel module by invoking it. Any memory leaks present in the kernel driver code will be reported in /sys/kernel/debug/kmemleak

Limitations and Drawbacks

...