db: caller_info changes: store the caller, param = -1 is no parameter
commitb1b98c55727735cf67fedc010e9d148a9b09c145
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 14 Aug 2012 06:33:41 +0000 (14 09:33 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 14 Aug 2012 06:33:41 +0000 (14 09:33 +0300)
tree090cf313c19362a429e93a615d104012f5acedcc
parent5c4505d03ad54cffa604bb49fcb827e6c32bcd4d
db: caller_info changes: store the caller, param = -1 is no parameter

If this were a kernel patch I would separate the changes, but Smatch has
lower standards.  :(

First I sometimes want to know which function called me with certain
states.

Next it was using the -1 parameter as an internal value, but I wanted to
use that in my scripts.  So I've introduced an INTERNAL type instead.
Also instead of printing out -1 as the parameter in the --info data, I
print a "call_marker" which is cleaner.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch.h
smatch_db.c
smatch_scripts/db/caller_info.schema
smatch_scripts/db/fill_db_caller_info.pl