[PATCH] test_bit: Add some more functions to test.

Christophe JAILLET <[email protected]> Sat, 21 May 2022 11:58:23 +0200
Newsgroups org.kernel.vger.smatch
Message-ID <6007e5788b30199010a904e4795b92af453b2d83.1653127095.git.christophe.jaillet@wanadoo.fr>
change_bit() and co. were missing.
__<function_name> were missing as well.

Signed-off-by: Christophe JAILLET <[email protected]>
---
 check_test_bit.c | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/check_test_bit.c b/check_test_bit.c
index b09139aa89bb..71f7aed06c08 100644
--- a/check_test_bit.c
+++ b/check_test_bit.c
@@ -47,8 +47,18 @@ void check_test_bit(int id)
 
 	add_function_hook("test_bit", &match_test_bit, NULL);
 	add_function_hook("variable_test_bit", &match_test_bit, NULL);
+
 	add_function_hook("set_bit", &match_test_bit, NULL);
 	add_function_hook("clear_bit", &match_test_bit, NULL);
-	add_function_hook("test_and_clear_bit", &match_test_bit, NULL);
+	add_function_hook("change_bit", &match_test_bit, NULL);
+	add_function_hook("__set_bit", &match_test_bit, NULL);
+	add_function_hook("__clear_bit", &match_test_bit, NULL);
+	add_function_hook("__change_bit", &match_test_bit, NULL);
+
 	add_function_hook("test_and_set_bit", &match_test_bit, NULL);
+	add_function_hook("test_and_clear_bit", &match_test_bit, NULL);
+	add_function_hook("test_and_change_bit", &match_test_bit, NULL);
+	add_function_hook("__test_and_set_bit", &match_test_bit, NULL);
+	add_function_hook("__test_and_clear_bit", &match_test_bit, NULL);
+	add_function_hook("__test_and_change_bit", &match_test_bit, NULL);
 }
-- 
2.34.1