函数逻辑报告 |
Source Code:kernel\debug\kdb\kdb_main.c |
Create Date:2022-07-27 12:46:21 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:kdb_cpu - This function implements the 'cpu' command.* cpu [<cpunum>]* Returns:* KDB_CMD_CPU for success, a kdb diagnostic if error
函数原型:static void kdb_cpu_status(void)
返回类型:void
参数:无
2209 | first_print等于1 |
2210 | prev_state等于'?' |
2212 | kdb_printf("Currently on cpu %d\n", These macros fold the SMP functionality into a single CPU system()) |
2213 | kdb_printf("Available cpus: ") |
2215 | 如果非cpu_online(i)则 |
2216 | state等于'F' |
2217 | 否则如果非enter_kgdb则 |
2218 | state等于'D' |
2219 | 否则 |
2220 | state等于' ' |
2224 | 如果state不等于prev_state则 |
2225 | 如果prev_state不等于'?'则 |
2226 | 如果非first_print则kdb_printf(", ") |
2228 | first_print等于0 |
2229 | kdb_printf("%d", start_cpu) |
2230 | 如果start_cpu小于i减1则kdb_printf("-%d", i - 1) |
2232 | 如果prev_state不等于' '则kdb_printf("(%c)", prev_state) |
2235 | prev_state等于state |
2240 | 如果prev_state不等于'F'则 |
2241 | 如果非first_print则kdb_printf(", ") |
2243 | kdb_printf("%d", start_cpu) |
2244 | 如果start_cpu小于i减1则kdb_printf("-%d", i - 1) |
2246 | 如果prev_state不等于' '则kdb_printf("(%c)", prev_state) |
2249 | kdb_printf("\n") |
名称 | 描述 |
---|---|
kdb_cpu |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |