Function report |
Source Code:lib\rbtree_test.c |
Create Date:2022-07-28 07:21:26 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:rbtree_test_init
Proto:static int __init rbtree_test_init(void)
Type:int
Parameter:Nothing
248 | nodes = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). |
252 | printk(action must be taken immediately "rbtree testing") |
255 | init() |
257 | time1 = get_cycles() |
259 | When i < perf_loops cycle |
266 | time2 = get_cycles() |
273 | time1 = get_cycles() |
275 | When i < perf_loops cycle |
282 | time2 = get_cycles() |
286 | printk(" -> test 2 (latency of nnodes cached insert+delete): %llu cycles\n", (unsignedlonglong)time) |
292 | time1 = get_cycles() |
294 | When i < perf_loops cycle |
299 | time2 = get_cycles() |
306 | time1 = get_cycles() |
308 | When i < perf_loops cycle node = This function returns the first node (in sort order) of the tree. |
311 | time2 = get_cycles() |
315 | printk(" -> test 4 (latency to fetch first node)\n") |
318 | time1 = get_cycles() |
320 | When i < perf_loops cycle node = Same as rb_first(), but O(1) ( & root) |
323 | time2 = get_cycles() |
333 | When i < check_loops cycle |
346 | printk(action must be taken immediately "augmented rbtree testing") |
348 | init() |
350 | time1 = get_cycles() |
352 | When i < perf_loops cycle |
359 | time2 = get_cycles() |
365 | time1 = get_cycles() |
367 | When i < perf_loops cycle |
374 | time2 = get_cycles() |
378 | printk(" -> test 2 (latency of nnodes cached insert+delete): %llu cycles\n", (unsignedlonglong)time) |
380 | When i < check_loops cycle |
381 | init() |
383 | check_augmented(j) |
384 | insert_augmented(nodes + j, & root) |
387 | check_augmented(nnodes - j) |
388 | erase_augmented(nodes + j, & root) |
390 | check_augmented(0) |
395 | Return -EAGAIN |
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 |