Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__count_memcg_events - account VM events in a cgroup*@memcg: the memory cgroup*@idx: the event item*@count: the number of events that occured

Proto:void __count_memcg_events(struct mem_cgroup *memcg, enum vm_event_item idx, unsigned long count)

Type:void

Parameter:

TypeParameterName
struct mem_cgroup *memcg
enum vm_event_itemidx
unsigned longcount
791  If mem_cgroup_disabled() Then Return
794  x = count + Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(events[idx])
795  If Value for the false possibility is greater at compile time(x > size of first charge trial. "32" comes from vmscan.c's magic value.* TODO: maybe necessary to use big numbers in big irons.) Then
802  __this_cpu_add(events[idx], x)
803  When mi cycle atomic_long_add(x, & vmevents[idx])
805  x = 0
807  __this_cpu_write(events[idx], x)
Caller
NameDescribe
shrink_inactive_listshrink_inactive_list() is a helper for shrink_node(). It returns the number* of reclaimed pages
shrink_active_list
mem_cgroup_charge_statistics
uncharge_batch
count_memcg_events