Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\oom_kill.c Create Date:2022-07-28 14:06:03
Last Modify:2022-05-23 13:16:41 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static void dump_tasks(struct oom_control *oc)

Type:void

Parameter:

TypeParameterName
struct oom_control *oc
425  pr_info("Tasks state (memory values in pages):\n")
426  pr_info("[ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name\n")
428  If is_memcg_oom(oc) Then mem_cgroup_scan_tasks(Memory cgroup in which oom is invoked, or NULL for global oom , dump_task, oc)
430  Else
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()
Caller
NameDescribe
dump_header