I want to try some open source static analysis tools to check their performance in detecting leaks on linux source code.I am starting with cppchecker. In linux most of the memory allocation calls are made through functions like kmalloc(), kzalloc() and corresponding free function is kfree(). How can I configure cppchecker to track kmalloc calls instead of default malloc() call?There is something called creating a new config file where we can define user preferences but i cant figure out how to do that.
Also as a follow up to the above question does cppcheck performs interprocedural analysis for memory leak detection? What other open source static analysis tools I can use for this purpose?