Function report |
Source Code:lib\test_rhashtable.c |
Create Date:2022-07-28 06:31:37 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:test_rhashtable
Proto:static s64 __init test_rhashtable(struct rhashtable *ht, struct test_obj *array, unsigned int entries)
Type:s64
Parameter:
Type | Parameter | Name |
---|---|---|
struct rhashtable * | ht | |
struct test_obj * | array | |
unsigned int | entries |
213 | insert_retries = 0 |
221 | start = ktime_get_ns() |
226 | err = insert_retry(ht, obj, test_rht_params) |
227 | If err > 0 Then insert_retries += err |
233 | If insert_retries Then pr_info(" %u insertions retried due to memory pressure\n", insert_retries) |
237 | test_bucket_stats(ht, entries) |
239 | test_rht_lookup(ht, array, entries) |
242 | test_bucket_stats(ht, entries) |
246 | struct test_obj_val key = {id = i * 2, } |
250 | If id != TEST_INSERT_FAIL Then |
257 | cond_resched() |
260 | end = ktime_get_ns() |
Name | Describe |
---|---|
test_rht_init |
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 |