Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\perfctr-watchdog.c Create Date:2022-07-28 08:14:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:reserve_perfctr_nmi

Proto:int reserve_perfctr_nmi(unsigned int msr)

Type:int

Parameter:

TypeParameterName
unsigned intmsr
113  counter = verts an msr to an appropriate reservation bit
115  If counter > his number is calculated from Intel's MSR_P4_CRU_ESCR5 register and it's* offset from MSR_P4_BSU_ESCR0.* It will be the max for all platforms (for now) Then Return 1
118  If Not st_and_set_bit - Set a bit and return its old value*@nr: Bit to set*@addr: Address to count from* This is an atomic fully-ordered operation (implied full memory barrier). Then Return 1
120  Return 0