函数逻辑报告 |
Source Code:kernel\locking\locktorture.c |
Create Date:2022-07-27 10:54:43 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Create an lock-torture-statistics message in the specified buffer.
函数原型:static void __torture_print_stats(char *page, struct lock_stress_stats *statp, bool write)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| char * | page | |
| struct lock_stress_stats * | statp | |
| bool | write |
| 689 | fail等于0 |
| 691 | max等于0, min等于如果statp则n_lock_acquired否则0 |
| 692 | sum等于0 |
| 696 | 如果n_lock_fail则fail = true |
| 698 | sum加等于n_lock_acquired |
| 699 | 如果max小于n_lock_fail则max等于n_lock_fail |
| 701 | 如果min大于n_lock_fail则min等于n_lock_fail |
| 709 | 如果fail则atomic_inc( & n_lock_torture_errors) |
| 名称 | 描述 |
|---|---|
| lock_torture_stats_print | Print torture statistics |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |