buf_size: store buffer sizes in db (turned off by default)
commit017627497ce77a55221da39b984da6ada5ef56a0
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 17 Apr 2012 19:11:25 +0000 (17 22:11 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 17 Apr 2012 19:11:25 +0000 (17 22:11 +0300)
tree2c1c70570fae31783c6d736db6ed89a888ab07a2
parent3662abb04a7bc7cdf3da33c4cd8163f9ebfa6c02
buf_size: store buffer sizes in db (turned off by default)

This is turned off by default for now.  But the idea is that some struct
members are always the same size but they're allocated during init() using
kmalloc().  Let's record the size in the database and query it later.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_buf_size.c
smatch_scripts/db/fill_db_type_size.pl [new file with mode: 0755]
smatch_scripts/db/type_size.schema [new file with mode: 0644]