函数逻辑报告 |
Source Code:kernel\time\test_udelay.c |
Create Date:2022-07-27 11:52:34 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:udelay_test_single
函数原型:static int udelay_test_single(struct seq_file *s, int usecs, uint32_t iters)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct seq_file * | s | |
int | usecs | |
uint32_t | iters |
30 | min等于0, max等于0, fail_count等于0 |
31 | sum等于0 |
35 | allowed_error_ns等于usecs乘5 |
41 | kt1等于ktime_get_ns() |
43 | kt2等于ktime_get_ns() |
44 | time_passed等于kt2减kt1 |
46 | 如果i恒等于0或time_passed小于min则min等于time_passed |
48 | 如果i恒等于0或time_passed大于max则max等于time_passed |
50 | 如果time_passed加allowed_error_ns的和除1000小于usecs则fail_count先自加 |
52 | WARN_ON(time_passed < 0) |
53 | sum加等于time_passed |
58 | seq_printf(s, "%d usecs x %d: exp=%d allowed=%d min=%d avg=%lld max=%d", usecs, iters, usecs * 1000, (usecs * 1000) - allowed_error_ns, min, avg, max) |
61 | 如果fail_count则seq_printf(s, " FAIL=%d", fail_count) |
65 | 返回:0 |
名称 | 描述 |
---|---|
udelay_test_show |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |