buf_size: store type_size in two tables the same as type_value is
commit937c5b00712e41eb08d78770120c2ee2c79a3e83
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 6 Dec 2013 12:08:36 +0000 (6 15:08 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 6 Dec 2013 12:08:36 +0000 (6 15:08 +0300)
treede41966bc8c8085be785679a26a32ad5fbfcbe4d
parentc291f32c5cc9b0f3761a7659bdf5246f6b9c4a44
buf_size: store type_size in two tables the same as type_value is

The type_value code is quite nice to use so I've made type_size use the
same system.

We load record every allocation and the function that it came with, then
afterwards we merge the sizes together and put the results in a separate
table.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch.h
smatch_buf_size.c
smatch_data/db/fill_db_type_size.pl [new file with mode: 0755]
smatch_data/db/function_type_size.schema [new file with mode: 0644]
smatch_data/db/smdb.py
smatch_data/db/type_size.schema
smatch_db.c