db: don't load silly amounts of caller info
commitd3156bf6fb7b4bd1e70dfff438b494cc0f978136
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 11 Jun 2024 14:35:33 +0000 (11 17:35 +0300)
committerDan Carpenter <dan.carpenter@linaro.org>
Tue, 11 Jun 2024 14:35:33 +0000 (11 17:35 +0300)
tree1479c494785e4f67602c00d43e3a00918ae1bceb
parent9f65c8df9f47e89264eb5921fd1e9a6021247db1
db: don't load silly amounts of caller info

The issue here was is_inode_flag_set().  We say functions which are called
over 200 times as too common.  Don't save anything about them.  But
is_inode_flag_set() was called 166 times.

Apparently, there is no limit to the amount of caller info per call which
gets saved in the database.  This is hard to limit in a sensible ways as
well.

So is_inode_flag_set() was loading 28k entries of caller_info.  Which is
too much.  Cap it at 5000.  (This number is picked by guessing what an
appropriate number is).

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
smatch_db.c