函数逻辑报告 |
Source Code:mm\vmscan.c |
Create Date:2022-07-27 15:42:30 |
Last Modify:2022-05-23 13:41:30 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:shrink_active_list
函数原型:static void shrink_active_list(unsigned long nr_to_scan, struct lruvec *lruvec, struct scan_control *sc, enum lru_list lru)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned long | nr_to_scan | |
struct lruvec * | lruvec | |
struct scan_control * | sc | |
enum lru_list | lru |
2018 | LIST_HEAD(l_inactive) |
2020 | reclaim_stat等于reclaim_stat |
2022 | nr_rotated等于0 |
2023 | file等于is_file_lru(lru) |
2024 | pgdat等于lruvec_pgdat(lruvec) |
2026 | lru_add_drain() |
2033 | __mod_node_page_state(pgdat, NR_ISOLATED_ANON + file, nr_taken) |
2034 | recent_scanned[file]加等于nr_taken |
2036 | __count_vm_events(PGREFILL, nr_scanned) |
2042 | cond_resched() |
2043 | page等于lru_to_page( & l_hold) |
2044 | 删除链表项 |
2051 | 如果此条件成立可能性小(为编译器优化)(buffer_heads_over_limit)则 |
2077 | ClearPageActive(page) |
2078 | SetPageWorkingset(page) |
2079 | 添加链表项 |
2097 | 为栈加入第二个链表项 |
2102 | __mod_node_page_state(pgdat, NR_ISOLATED_ANON + file, - nr_taken) |
2105 | mem_cgroup_uncharge_list( & l_active) |
2106 | free_unref_page_list( & l_active) |
2107 | trace_mm_vmscan_lru_shrink_active(全局结点ID, nr_taken, nr_activate, nr_deactivate, nr_rotated, Scan (total_size >> priority) pages at once , file) |
名称 | 描述 |
---|---|
shrink_list | |
shrink_lruvec | |
age_active_anon |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |