函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dump_header

函数原型:static void dump_header(struct oom_control *oc, struct task_struct *p)

返回类型:void

参数:

类型参数名称
struct oom_control *oc
struct task_struct *p
454  打印警告信息("%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  如果非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.打印警告信息("COMPACTION is disabled!!!\n")
460  dump_stack()
461  如果is_memcg_oom(oc)则mem_cgroup_print_oom_meminfo(Memory cgroup in which oom is invoked, or NULL for global oom )
463  否则
464  show_mem(disallowed nodes , Used to determine mempolicy )
465  如果Print out unreclaimble slabs info when unreclaimable slabs amount is greater* than all user memory (LRU pages)dump_unreclaimable_slab()
468  如果sysctl_oom_dump_tasksdump_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  如果pdump_oom_summary(oc, p)
调用者
名称描述
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)