函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mem_cgroup_print_oom_context: Print OOM information relevant to* memory controller.*@memcg: The memory cgroup that went over limit*@p: Task that is going to be killed* NOTE: @memcg and @p's mem_cgroup can be different when hierarchy is* enabled

函数原型:void mem_cgroup_print_oom_context(struct mem_cgroup *memcg, struct task_struct *p)

返回类型:void

参数:

类型参数名称
struct mem_cgroup *memcg
struct task_struct *p
1485  _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
1487  如果memcg
1488  打印标准信息(",oom_memcg=")
1489  pr_cont_cgroup_path(PI: the cgroup that this css is attached to )
1490  否则打印标准信息(",global_oom")
1492  如果p
1493  打印标准信息(",task_memcg=")
1494  pr_cont_cgroup_path(task_cgroup(p, memory_cgrp_id))
1496  _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_oom_summary