Function report |
Source Code:lib\locking-selftest.c |
Create Date:2022-07-28 06:53:18 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ww_tests
Proto:static void ww_tests(void)
Type:void
Parameter:Nothing
| 1895 | printk(" --------------------------------------------------------------------------\n") |
| 1896 | printk(" | Wound/wait tests |\n") |
| 1897 | printk(" ---------------------\n") |
| 1899 | print_testname("ww api failures") |
| 1900 | dotest(ww_test_fail_acquire, SUCCESS, LOCKTYPE_WW) |
| 1901 | dotest(ww_test_normal, SUCCESS, LOCKTYPE_WW) |
| 1905 | print_testname("ww contexts mixing") |
| 1906 | dotest(ww_test_two_contexts, FAILURE, LOCKTYPE_WW) |
| 1907 | dotest(ww_test_diff_class, FAILURE, LOCKTYPE_WW) |
| 1910 | print_testname("finishing ww context") |
| 1917 | print_testname("locking mismatches") |
| 1923 | print_testname("EDEADLK handling") |
| 1936 | print_testname("spinlock nest unlocked") |
| 1940 | printk(" -----------------------------------------------------\n") |
| 1941 | printk(" |block | try |context|\n") |
| 1942 | printk(" -----------------------------------------------------\n") |
| 1944 | print_testname("context") |
| 1946 | dotest(ww_test_context_try, SUCCESS, LOCKTYPE_WW) |
| 1950 | print_testname("try") |
| 1951 | dotest(ww_test_try_block, FAILURE, LOCKTYPE_WW) |
| 1952 | dotest(ww_test_try_try, SUCCESS, LOCKTYPE_WW) |
| 1953 | dotest(ww_test_try_context, FAILURE, LOCKTYPE_WW) |
| 1956 | print_testname("block") |
| 1957 | dotest(ww_test_block_block, FAILURE, LOCKTYPE_WW) |
| 1958 | dotest(ww_test_block_try, SUCCESS, LOCKTYPE_WW) |
| 1962 | print_testname("spinlock") |
| 1963 | dotest(ww_test_spin_block, FAILURE, LOCKTYPE_WW) |
| 1964 | dotest(ww_test_spin_try, SUCCESS, LOCKTYPE_WW) |
| 1965 | dotest(ww_test_spin_context, FAILURE, LOCKTYPE_WW) |
| Name | Describe |
|---|---|
| locking_selftest |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |