函数逻辑报告 |
Source Code:lib\rbtree_test.c |
Create Date:2022-07-27 08:20:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:rbtree_test_init
函数原型:static int __init rbtree_test_init(void)
返回类型:int
参数:无
252 | printk(action must be taken immediately "rbtree testing") |
255 | init() |
257 | time1等于get_cycles() |
259 | 以i小于perf_loops循环 |
266 | time2等于get_cycles() |
273 | time1等于get_cycles() |
275 | 以i小于perf_loops循环 |
282 | time2等于get_cycles() |
286 | printk(" -> test 2 (latency of nnodes cached insert+delete): %llu cycles\n", (unsignedlonglong)time) |
292 | time1等于get_cycles() |
294 | 以i小于perf_loops循环 |
299 | time2等于get_cycles() |
306 | time1等于get_cycles() |
311 | time2等于get_cycles() |
315 | printk(" -> test 4 (latency to fetch first node)\n") |
318 | time1等于get_cycles() |
320 | 以i小于perf_loops循环node等于Same as rb_first(), but O(1) ( & root) |
323 | time2等于get_cycles() |
333 | 以i小于check_loops循环 |
346 | printk(action must be taken immediately "augmented rbtree testing") |
348 | init() |
350 | time1等于get_cycles() |
352 | 以i小于perf_loops循环 |
359 | time2等于get_cycles() |
365 | time1等于get_cycles() |
367 | 以i小于perf_loops循环 |
374 | time2等于get_cycles() |
378 | printk(" -> test 2 (latency of nnodes cached insert+delete): %llu cycles\n", (unsignedlonglong)time) |
380 | 以i小于check_loops循环 |
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 | 返回:负EAGAIN |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |