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:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:reserve_evntsel_nmi

Proto:int reserve_evntsel_nmi(unsigned int msr)

Type:int

Parameter:

TypeParameterName
unsigned intmsr
141  counter = verts an msr to an appropriate reservation bit* returns the bit offset of the event selection register
143  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
146  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
148  Return 0