perf_event_open: Add support for counting REF_CPU_CYCLES

Using thread's tsc count instead of performance counter

Refs: #1025
Change-Id: I1d7a18f1c52f1d52087002d31818638a6b206014
This commit is contained in:
Ken Sato
2019-09-25 21:14:35 +09:00
committed by Masamichi Takagi
parent bc06d68d84
commit 309145587f
18 changed files with 2360 additions and 22 deletions

View File

@ -0,0 +1,16 @@
*** C1025T01 ******************************************
** Linux's result *************************************
* REF_CPU_CYCLES event is NOT supported Linux on aarch64
** McKernel's result *************************************
[type: HARDWARE, counter: HW_REF_CPU_CYCLES, exclude: none]
fd: 8
REF_CPU_CYCLES : 6641022
[type: HARDWARE, counter: HW_REF_CPU_CYCLES, exclude: user]
fd: 8
REF_CPU_CYCLES : 97
[type: HARDWARE, counter: HW_REF_CPU_CYCLES, exclude: kernel]
fd: 8
REF_CPU_CYCLES : 6644473
** C1025T01 PASSED