-
Notifications
You must be signed in to change notification settings - Fork 584
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PerfCounters: Add support for AMD Family 15h Model 2 (Piledriver)
Extends existing Family 15h Model 30 (Steamroller) support for Piledriver. Piledriver supports PMCx0C4 (Retired Taken Branch Instructions) and PMCx0C6 (Retired Far Control Transfer), just like Model 30h. [1] Note that PMCx0C4 counts all control flow changes, including exceptions and interrupts. Like on 15h model 30-3Fh (Steamroller) we subtract PMCx0C6 (Retired Far Control Transfers) to count only regular taken branches. [1]: https://www.amd.com/system/files/TechDocs/42301_15h_Mod_00h-0Fh_BKDG.pdf Tested: 1) counters-test: vsrinivas@ubuntu:~/tmp/rr/src/counters-test$ sudo ./a.out Interrupted after 1000025 ticks, expected 1000000 ticks EXIT-SUCCESS
- Loading branch information
Showing
3 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
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