I'm going to respond to you email out of order based on the easiest
thing first.
On Tue, Jun 24, 2025 at 10:16:54AM +0000, Miguel Luis wrote:
> > The SQL
> > is mostly pulled into smatch_warns.txt.sql and smatch_warns.txt.call_info.
>
> Got that but I’m still a bit lost here, so in my script >
> ‘create_db.sh’ is using smatch_warns.txt.sql solely, should
> ‘smatch_warns.txt.call_info’ be passed to ‘create_db.sh’ too or
> how does that information gets into the db?
>
The script just expects the file to be named that way. Whatever
the "smatch_warns.txt" is called plus ".caller_info".
${bin_dir}/fill_db_caller_info.pl "$PROJ" ${info_file}.caller_info
$db_file
For the return states in smatch_warns.txt.sql it doesn't really
matter but it turns out that this does matter for caller_info. The
reload_partial.sh script assumes it's all in one file and then
separates the caller_info out into a tmp file for processing.
regards,
dan carpenter