-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Record: Allow to configure Perf Events based on Model
Also, fix a bug in the default Intel PMU config for Backend Stalls.
- Loading branch information
Showing
8 changed files
with
308 additions
and
53 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
use crate::data::perf_stat::{NamedCtr, NamedTypeCtr, PerfType}; | ||
|
||
static CYCLES: NamedTypeCtr = NamedTypeCtr { | ||
perf_type: PerfType::RAW, | ||
name: "Cycles", | ||
config: 0x3c, | ||
}; | ||
static SLOTS: NamedTypeCtr = NamedTypeCtr { | ||
perf_type: PerfType::RAW, | ||
name: "Slots", | ||
config: 0x01a4, | ||
}; | ||
static STALL_FRONTEND: NamedTypeCtr = NamedTypeCtr { | ||
perf_type: PerfType::RAW, | ||
name: "Frontend-Stalls", | ||
config: 0x500019c, | ||
}; | ||
static STALL_BACKEND: NamedTypeCtr = NamedTypeCtr { | ||
perf_type: PerfType::RAW, | ||
name: "Backend-Stalls", | ||
config: 0x02a4, | ||
}; | ||
|
||
lazy_static! { | ||
pub static ref ICX_CTRS: Vec<NamedCtr<'static>> = [ | ||
NamedCtr { | ||
name: "stall-frontend-pkc", | ||
nrs: vec![STALL_FRONTEND], | ||
drs: vec![CYCLES], | ||
scale: 1000 | ||
}, | ||
NamedCtr { | ||
name: "stall-backend-pkc", | ||
nrs: vec![STALL_BACKEND], | ||
drs: vec![SLOTS], | ||
scale: 1000 | ||
}, | ||
] | ||
.to_vec(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.