Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-28 16:09:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mem_cgroup_print_oom_meminfo: Print OOM memory information relevant to* memory controller.*@memcg: The memory cgroup that went over limit

Proto:void mem_cgroup_print_oom_meminfo(struct mem_cgroup *memcg)

Type:void

Parameter:

TypeParameterName
struct mem_cgroup *memcg
1508  pr_info("memory: usage %llukB, limit %llukB, failcnt %lu\n", K((u64)page_counter_read( & Accounted resources )), K((u64)max), failcnt)
1511  If cgroup_subsys_on_dfl - fast test on whether a subsys is on default hierarchy*@ss: subsystem in question(memory_cgrp_subsys) Then pr_info("swap: usage %llukB, limit %llukB, failcnt %lu\n", K((u64)page_counter_read( & swap)), K((u64)max), failcnt)
1515  Else
1516  pr_info("memory+swap: usage %llukB, limit %llukB, failcnt %lu\n", K((u64)page_counter_read( & Legacy consumer-oriented counters )), K((u64)max), failcnt)
1519  pr_info("kmem: usage %llukB, limit %llukB, failcnt %lu\n", K((u64)page_counter_read( & kmem)), K((u64)max), failcnt)
1524  pr_info("Memory cgroup stats for ")
1525  pr_cont_cgroup_path(PI: the cgroup that this css is attached to )
1526  Like KERN_CONT, pr_cont() should only be used when continuing* a line with no newline ('\n') enclosed. Otherwise it defaults* back to KERN_DEFAULT.(":")
1527  buf = memory_stat_format(memcg)
1528  If Not buf Then Return
1530  pr_info("%s", buf)
1531  kfree(buf)