On 11/16/21 13:20, Like Xu wrote:
+ /* return PERF_COUNT_HW_MAX as AMD doesn't have fixed events */ + if (pmc_is_fixed(pmc)) + return PERF_COUNT_HW_MAX; +
This should have a WARN_ON, since reprogram_fixed_counter will never see an enabled fixed counter on AMD.
Paolo