Created attachment 204804 [details]
add baytrail id
When trying to use pmc on a baytrail cpu, the dmesg contains the following message:
pmc: Unknown Intel CPU.
Since Baytrail cpu seems to be based on the Silvermont micro-architecture, I just add the necessary id to make it recognized as such. Then, the message became:
hwpmc: SOFT/16/64/0x67<INT,USR,SYS,REA,WRI> TSC/1/64/0x20<REA> IAP/2/40/0x3ff<INT,USR,SYS,EDG,THR,REA,WRI,INV,QUA,PRC> IAF/3/40/0x67<INT,USR,SYS,REA,WRI>
Using pmcstat to get the values of differents counters seems to work as expected.
Thank you for the report and patch Masse
I will handle this later today. I suspect that there are more ids that can be added, at least according to SDM.
A commit references this bug:
Date: Mon Jun 3 16:21:09 UTC 2019
New revision: 348544
hwpmc_intel: List all Silvermont ids.
Based on submission by: Masse Nicolas <firstname.lastname@example.org>
MFC after: 1 week