statement_count: record how many statements there are in a function
commit615faa3620d52be5ead7b08436ea0167f9946ec3
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 4 Dec 2018 07:36:24 +0000 (4 10:36 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 4 Dec 2018 07:36:24 +0000 (4 10:36 +0300)
tree834af4c44444d8867b4411e5e6c87add5e69e824
parent92b72316c2a4230aee428cf1394e12293af4df88
statement_count: record how many statements there are in a function

This is useful for Spectre stuff.  With Spectre, the CPU can speculate a
certain number of operations in advance.  Smatch doesn't work at the level
of operations, so I am using statements instead as a rough stand in for
operations.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Makefile
check_list.h
smatch.h
smatch_data/db/fixup_kernel.sh
smatch_statement_count.c [new file with mode: 0644]