函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Update NUMA hit/miss statistics* Must be called with interrupts disabled.

函数原型:static inline void zone_statistics(struct zone *preferred_zone, struct zone *z)

返回类型:void

参数:

类型参数名称
struct zone *preferred_zone
struct zone *z
3184  local_stat等于 allocation from local node
3187  如果非static_branch_likely( & vm_numa_stat_key)则返回
3190  如果zone_to_nid(z)不等于Returns the number of the current Node. local_stat等于 allocation from other node
3193  如果zone_to_nid(z)恒等于zone_to_nid(preferred_zone)则__inc_numa_state(z, allocated in intended node )
3195  否则
3196  __inc_numa_state(z, allocated in non intended node )
3197  __inc_numa_state(preferred_zone, was intended here, hit elsewhere )
3199  __inc_numa_state(z, local_stat)
调用者
名称描述
rmqueue_pcplistLock and remove page from the per-cpu list
rmqueueAllocate a page from the given zone. Use pcplists for order-0 allocations.