From 3f642e42dfde132624da8f6c53eb7b911906011c Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Thu, 6 Apr 2023 18:42:49 +0300 Subject: [PATCH] db/fixup_kernel.sh: vfs_read/write() are the only important read/write functions Ignore the other functions. Only care about vfs_read/write. Signed-off-by: Dan Carpenter --- smatch_data/db/fixup_kernel.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smatch_data/db/fixup_kernel.sh b/smatch_data/db/fixup_kernel.sh index e822056f..4bb7211e 100755 --- a/smatch_data/db/fixup_kernel.sh +++ b/smatch_data/db/fixup_kernel.sh @@ -9,8 +9,8 @@ DRIVERS_RAPIDIO_ACCESS=$(${bin_dir}/sm_hash 'drivers/rapidio/rio-access.c') cat << EOF | sqlite3 $db_file /* we only care about the main ->read/write() functions. */ -delete from caller_info where function = '(struct file_operations)->read' and file != ${FS_READ_WRITE}; -delete from caller_info where function = '(struct file_operations)->write' and file != ${FS_READ_WRITE}; +delete from caller_info where function = '(struct file_operations)->read' and caller != 'vfs_read'; +delete from caller_info where function = '(struct file_operations)->write' and caller != 'vfs_write'; delete from function_ptr where function = '(struct file_operations)->read'; delete from function_ptr where function = '(struct file_operations)->write'; delete from caller_info where function = '(struct file_operations)->write' and caller = 'do_loop_readv_writev'; -- 2.11.4.GIT