mem_tracker: add a --mem option to debug memory use problems
commit58cc1ae7c444f40d71dd9389e1f5549b144c8bc4
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 9 Apr 2018 11:51:42 +0000 (9 14:51 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 9 Apr 2018 11:53:54 +0000 (9 14:53 +0300)
tree50f8af65da5c724d12132bcba37cbbea48cf13e3
parentecf9cdbc4a8413dfc9f34bc7a8f40bb02a074fd3
mem_tracker: add a --mem option to debug memory use problems

I found that Smatch was taking too long to test the kernel, and it was
because there were some places where we'd use all the memory and DoS the
build box.  Adding a --mem option gives us a way to find how much memory
we're using and which kernel .c files are the most tricky to parse.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Makefile
smatch.c
smatch.h
smatch_flow.c
smatch_mem_tracker.c [new file with mode: 0644]