Skip to main content

interrupts_taken_event

Function interrupts_taken_event 

Source
pub fn interrupts_taken_event(cpu: CpuModel) -> Option<u64>
Expand description

The raw PMU configuration of the interrupts-taken event on cpu, or None where perf’s event tables do not document one.

  • AMD LsIntTaken (event 0x2C): Zen 2 and later, that is family 17h from model 0x30, and families 19h and 1Ah. Zen 1 does not list it.
  • Intel HW_INTERRUPTS.RECEIVED (event 0xCB, umask 0x01): Skylake client and the client parts on the same core (Kaby, Coffee and Comet Lake), Skylake-X, Cascade and Cooper Lake, Sapphire, Emerald and Granite Rapids, Goldmont, Goldmont Plus, Tremont (Elkhart and Jasper Lake) and Snow Ridge. Haswell, Broadwell, Ice Lake (including Ice Lake-X), Tiger, Alder, Raptor, Meteor, Lunar and Arrow Lake and Sierra Forest do not list it, so they are refused rather than given an event that might count something else.