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