1Title: kernel Object Performance 2 3Description: 4 5The SysKernel test measures the performance of semaphore, 6lifo, fifo, stack and memslab objects. 7 8-------------------------------------------------------------------------------- 9 10Sample Output: 11 12MODULE: kernel API test 13KERNEL VERSION: 0xXXYYZZZZ 14 15Each test below is repeated 10 times; 16average time for one iteration is displayed. 17 18TEST CASE: Semaphore #1 19TEST COVERAGE: 20 k_sem_init 21 k_sem_take(K_FOREVER) 22 k_sem_give 23Starting test. Please wait... 24TEST RESULT: SUCCESSFUL 25DETAILS: Average time for 1 iteration: NNNN nSec 26END TEST CASE 27 28TEST CASE: Semaphore #2 29TEST COVERAGE: 30 k_sem_init 31 k_sem_take(K_NO_WAIT) 32 k_yield 33 k_sem_give 34Starting test. Please wait... 35TEST RESULT: SUCCESSFUL 36DETAILS: Average time for 1 iteration: NNNN nSec 37END TEST CASE 38 39TEST CASE: Semaphore #3 40TEST COVERAGE: 41 k_sem_init 42 k_sem_take(K_FOREVER) 43 k_sem_give 44 k_sem_give 45 k_sem_take(K_FOREVER) 46Starting test. Please wait... 47TEST RESULT: SUCCESSFUL 48DETAILS: Average time for 1 iteration: NNNN nSec 49END TEST CASE 50 51TEST CASE: LIFO #1 52TEST COVERAGE: 53 k_lifo_init 54 k_lifo_get(K_FOREVER) 55 k_lifo_put 56Starting test. Please wait... 57TEST RESULT: SUCCESSFUL 58DETAILS: Average time for 1 iteration: NNNN nSec 59END TEST CASE 60 61TEST CASE: LIFO #2 62TEST COVERAGE: 63 k_lifo_init 64 k_lifo_get(K_FOREVER) 65 k_lifo_get(K_NO_WAIT) 66 k_lifo_put 67 k_yield 68Starting test. Please wait... 69TEST RESULT: SUCCESSFUL 70DETAILS: Average time for 1 iteration: NNNN nSec 71END TEST CASE 72 73TEST CASE: LIFO #3 74TEST COVERAGE: 75 k_lifo_init 76 k_lifo_get(K_FOREVER) 77 k_lifo_put 78 k_lifo_get(K_FOREVER) 79 k_lifo_put 80Starting test. Please wait... 81TEST RESULT: SUCCESSFUL 82DETAILS: Average time for 1 iteration: NNNN nSec 83END TEST CASE 84 85TEST CASE: FIFO #1 86TEST COVERAGE: 87 k_fifo_init 88 k_fifo_get(K_FOREVER) 89 k_fifo_put 90Starting test. Please wait... 91TEST RESULT: SUCCESSFUL 92DETAILS: Average time for 1 iteration: NNNN nSec 93END TEST CASE 94 95TEST CASE: FIFO #2 96TEST COVERAGE: 97 k_fifo_init 98 k_fifo_get(K_FOREVER) 99 k_fifo_get(K_NO_WAIT) 100 k_fifo_put 101 k_yield 102Starting test. Please wait... 103TEST RESULT: SUCCESSFUL 104DETAILS: Average time for 1 iteration: NNNN nSec 105END TEST CASE 106 107TEST CASE: FIFO #3 108TEST COVERAGE: 109 k_fifo_init 110 k_fifo_get(K_FOREVER) 111 k_fifo_put 112 k_fifo_get(K_FOREVER) 113 k_fifo_put 114Starting test. Please wait... 115TEST RESULT: SUCCESSFUL 116DETAILS: Average time for 1 iteration: NNNN nSec 117END TEST CASE 118 119TEST CASE: Stack #1 120TEST COVERAGE: 121 k_stack_init 122 k_stack_pop(K_FOREVER) 123 k_stack_push 124Starting test. Please wait... 125TEST RESULT: SUCCESSFUL 126DETAILS: Average time for 1 iteration: NNNN nSec 127END TEST CASE 128 129TEST CASE: Stack #2 130TEST COVERAGE: 131 k_stack_init 132 k_stack_pop(K_FOREVER) 133 k_stack_pop 134 k_stack_push 135 k_yield 136Starting test. Please wait... 137TEST RESULT: SUCCESSFUL 138DETAILS: Average time for 1 iteration: NNNN nSec 139END TEST CASE 140 141TEST CASE: Stack #3 142TEST COVERAGE: 143 k_stack_init 144 k_stack_pop(K_FOREVER) 145 k_stack_push 146 k_stack_pop(K_FOREVER) 147 k_stack_push 148Starting test. Please wait... 149TEST RESULT: SUCCESSFUL 150DETAILS: Average time for 1 iteration: NNNN nSec 151END TEST CASE 152 153TEST CASE: Memslab #1 154TEST COVERAGE: 155 k_mem_slab_alloc 156Starting test. Please wait... 157TEST RESULT: SUCCESSFUL 158DETAILS: Average time for 1 iteration: NNNN nSec 159END TEST CASE 160 161TEST CASE: Memslab #2 162TEST COVERAGE: 163 k_mem_slab_free 164Starting test. Please wait... 165TEST RESULT: SUCCESSFUL 166DETAILS: Average time for 1 iteration: NNNN nSec 167END TEST CASE 168 169PROJECT EXECUTION SUCCESSFUL 170