Function report |
Source Code:lib\interval_tree_test.c |
Create Date:2022-07-28 07:21:43 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:interval_tree_test_init
Proto:static int interval_tree_test_init(void)
Type:int
Parameter:Nothing
68 | nodes = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). |
73 | queries = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). |
74 | If Not queries Then |
79 | printk(action must be taken immediately "interval tree insert/remove") |
82 | init() |
84 | time1 = get_cycles() |
86 | When i < perf_loops cycle |
93 | time2 = get_cycles() |
99 | printk(action must be taken immediately "interval tree search") |
104 | time1 = get_cycles() |
106 | results = 0 |
109 | start = If search_all Then 0 Else queries[j] |
110 | last = If search_all Then max_endpoint Else queries[j] |
115 | time2 = get_cycles() |
126 | 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 |