函数逻辑报告 |
Source Code:kernel\debug\kdb\kdb_main.c |
Create Date:2022-07-27 12:46:40 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:kdb_per_cpu - This function implements the 'per_cpu' command.
函数原型:static int kdb_per_cpu(int argc, const char **argv)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
int | argc | |
const char ** | argv |
2562 | nextarg等于1 |
2563 | bytesperword等于0, whichcpu等于0UL的反 |
2565 | 如果argc小于1或argc大于3则返回:KDB_ARGCOUNT |
2568 | diag等于kdbgetaddrarg - This function is responsible for parsing an* address-expression and returning the value of the expression,* symbol name, and offset to the caller |
2572 | 如果argc大于等于2则 |
2577 | 如果非bytesperword则bytesperword等于KDB_WORD_SIZE |
2579 | 否则如果bytesperword大于KDB_WORD_SIZE则返回:KDB_BADWIDTH |
2581 | 输出格式化串 |
2582 | 如果argc大于等于3则 |
2586 | 如果whichcpu大于等于CPU数量或非cpu_online(whichcpu)则 |
2587 | kdb_printf("cpu %ld is not online\n", whichcpu) |
2588 | 返回:KDB_BADCPUNUM |
2605 | 如果KDB_FLAG(CMD_INTERRUPT)则返回:0 |
2612 | 如果diag则 |
2613 | kdb_printf("%5d "kdb_bfd_vma_fmt0" - unable to read, diag=%d\n", cpu, addr, diag) |
2615 | 继续下一循环 |
2617 | kdb_printf("%5d ", cpu) |
2623 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |