函数逻辑报告 |
Source Code:kernel\sched\topology.c |
Create Date:2022-07-27 10:43:07 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:sched_init_numa
函数原型:void sched_init_numa(void)
返回类型:void
参数:无
1554 | curr_distance等于node_distance(0, 0) |
1556 | level等于0 |
1560 | 如果非sched_domains_numa_distance则返回 |
1574 | next_distance等于curr_distance |
1575 | 以i小于nr_node_ids循环 |
1576 | 以j小于nr_node_ids循环 |
1577 | 以k小于nr_node_ids循环 |
1578 | distance等于node_distance(i, k) |
1580 | 如果distance大于curr_distance且distance小于next_distance或next_distance恒等于curr_distance的值则next_distance等于distance |
1590 | 如果sched_debug()且node_distance(k, i)不等于distance则sched_numa_warn("Node-distance not symmetric") |
1593 | 如果sched_debug()且i且非find_numa_distance(distance)则sched_numa_warn("Node-0 not representative") |
1596 | 如果next_distance不等于curr_distance则 |
1599 | curr_distance等于next_distance |
1600 | 否则退出 |
1606 | 如果非sched_debug()则退出 |
1626 | sched_domains_numa_levels等于0 |
1629 | 如果非sched_domains_numa_masks则返回 |
1637 | sched_domains_numa_masks[i]等于分配内存并置零 |
1639 | 如果非sched_domains_numa_masks[i]则返回 |
1642 | 以j小于nr_node_ids循环 |
1663 | 如果非tl则返回 |
1675 | tl[i++] = (struct sched_domain_topology_level){tl[i++] = sd_numa_mask, tl[i++] = 0, SD_INIT_NAME(NODE)} |
1685 | tl[i] = (struct sched_domain_topology_level){tl[i] = sd_numa_mask, tl[i] = cpu_numa_flags, tl[i] = SDTL_OVERLAP, tl[i] = j, SD_INIT_NAME(NUMA)} |
1694 | sched_domain_topology等于tl |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |