函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mem_cgroup_print_oom_meminfo: Print OOM memory information relevant to* memory controller.*@memcg: The memory cgroup that went over limit

函数原型:void mem_cgroup_print_oom_meminfo(struct mem_cgroup *memcg)

返回类型:void

参数:

类型参数名称
struct mem_cgroup *memcg
1508  打印信息("memory: usage %llukB, limit %llukB, failcnt %lu\n", K((u64)page_counter_read( & Accounted resources )), K((u64)max), failcnt)
1511  如果cgroup_subsys_on_dfl - fast test on whether a subsys is on default hierarchy*@ss: subsystem in question(memory_cgrp_subsys)则打印信息("swap: usage %llukB, limit %llukB, failcnt %lu\n", K((u64)page_counter_read( & swap)), K((u64)max), failcnt)
1515  否则
1516  打印信息("memory+swap: usage %llukB, limit %llukB, failcnt %lu\n", K((u64)page_counter_read( & Legacy consumer-oriented counters )), K((u64)max), failcnt)
1519  打印信息("kmem: usage %llukB, limit %llukB, failcnt %lu\n", K((u64)page_counter_read( & kmem)), K((u64)max), failcnt)
1524  打印信息("Memory cgroup stats for ")
1525  pr_cont_cgroup_path(PI: the cgroup that this css is attached to )
1526  打印标准信息(":")
1527  buf等于memory_stat_format(memcg)
1528  如果非buf则返回
1530  打印信息("%s", buf)
1531  释放内存
调用者
名称描述
dump_header