Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dump_header

Proto:static void dump_header(struct oom_control *oc, struct task_struct *p)

Type:void

Parameter:

TypeParameterName
struct oom_control *oc
struct task_struct *p
454  pr_warn("%s invoked oom-killer: gfp_mask=%#x(%pGg), order=%d, oom_score_adj=%hd\n", comm, Used to determine cpuset and node locality requirement , & Used to determine cpuset and node locality requirement , rder == -1 means the oom kill is required by sysrq, otherwise only* for display purposes., oom_score_adj)
457  If Not IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_COMPACTION) && rder == -1 means the oom kill is required by sysrq, otherwise only* for display purposes. Then pr_warn("COMPACTION is disabled!!!\n")
460  dump_stack()
461  If is_memcg_oom(oc) Then mem_cgroup_print_oom_meminfo(Memory cgroup in which oom is invoked, or NULL for global oom )
463  Else
464  show_mem(disallowed nodes , Used to determine mempolicy )
465  If Print out unreclaimble slabs info when unreclaimable slabs amount is greater* than all user memory (LRU pages) Then dump_unreclaimable_slab()
468  If sysctl_oom_dump_tasks Then 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
470  If p Then dump_oom_summary(oc, p)
Caller
NameDescribe
oom_kill_process
check_panic_on_oomDetermines whether the kernel must panic because of the panic_on_oom sysctl.
out_of_memory_of_memory - kill the "best" process when we run out of memory*@oc: pointer to struct oom_control* If we run out of memory, we have the choice between either* killing a random task (bad), letting the system crash (worse)