函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mm.h Create Date:2022-07-27 06:44:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:add_mm_counter

函数原型:static inline void add_mm_counter(struct mm_struct *mm, int member, long value)

返回类型:void

参数:

类型参数名称
struct mm_struct *mm
intmember
longvalue
1635  count等于atomic_long_add_return(value, & count[member])
1637  mm_trace_rss_stat(mm, member, count)
调用者
名称描述
sync_mm_rss
add_mm_counter_fast
add_mm_rss_vec
madvise_free_pte_range
__do_huge_pmd_anonymous_page
copy_huge_pmd
do_huge_pmd_wp_page
zap_huge_pmd
__split_huge_pmd_locked
__collapse_huge_page_copy
acct_arg_sizeThe nascent bprm->mm is not visible until exec_mmap() but it can* use a lot of memory, account these pages in current->mm temporary* for oom_badness()->get_mm_rss(). Once exec succeeds or fails, we* change the counter back via acct_arg_size(0).