函数逻辑报告 |
Source Code:lib\test_rhashtable.c |
Create Date:2022-07-27 07:29:17 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:test_rht_init
函数原型:static int __init test_rht_init(void)
返回类型:int
参数:无
699 | started_threads等于0, failed_threads等于0 |
700 | total_time等于0 |
704 | 如果parm_entries小于0则parm_entries等于1 |
707 | entries等于两数取小(parm_entries, MAX_ENTRIES) |
711 | nelem_hint等于size |
718 | 打印信息("Running rhashtable test nelem=%d, max_size=%d, shrinking=%d\n", size, max_size, shrinking) |
727 | err等于hashtable_init - initialize a new hash table*@ht: hash table to be initialized*@params: configuration parameters* Initializes a new hash table based on the provided configuration* parameters |
728 | 如果err小于0则 |
734 | time等于test_rhashtable( & ht, objs, entries) |
735 | rhashtable_destroy( & ht) |
736 | 如果time小于0则 |
742 | total_time加等于time |
745 | 打印信息("test if its possible to exceed max_size %d: %s\n", max_size, test_rhashtable_max(objs, entries) == 0 ? "no, ok" : "YES, failed") |
751 | 打印信息("Average test time: %llu\n", total_time) |
755 | 如果非tcount则返回:0 |
760 | atomic_set( & startup_count, tcount) |
765 | 如果非objs则 |
772 | err等于hashtable_init - initialize a new hash table*@ht: hash table to be initialized*@params: configuration parameters* Initializes a new hash table based on the provided configuration* parameters |
773 | 如果err小于0则 |
778 | 返回:负EINVAL |
786 | 如果是错误则 |
788 | atomic_dec( & startup_count) |
789 | 否则 |
790 | started_threads自加 |
796 | atomic_dec( & startup_count) |
797 | wake_up_all( & startup_wait) |
799 | 如果是错误则继续下一循环 |
804 | failed_threads自加 |
807 | rhashtable_destroy( & ht) |
815 | err等于test_rhltable(entries / 16) |
816 | 打印信息("Started %d threads, %d failed, rhltable test returns %d\n", started_threads, failed_threads, err) |
818 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |