函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\oom_kill.c Create Date:2022-07-27 15:29:13
Last Modify:2022-05-23 13:16:41 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dump_tasks - dump current memory state of all system tasks*@oc: pointer to struct oom_control* Dumps the current memory state of all eligible tasks. Tasks not in the same* memcg, not in the same cpuset, or bound to a disjoint set of mempolicy nodes

函数原型:static void dump_tasks(struct oom_control *oc)

返回类型:void

参数:

类型参数名称
struct oom_control *oc
425  打印信息("Tasks state (memory values in pages):\n")
426  打印信息("[ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name\n")
428  如果is_memcg_oom(oc)则mem_cgroup_scan_tasks(Memory cgroup in which oom is invoked, or NULL for global oom , dump_task, oc)
430  否则
433  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
434  for_each_process(p)
435  dump_task(p, oc)
436  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
调用者
名称描述
dump_header