On 8/19/2022 4:39 PM, Like Xu wrote: > From: Like Xu <likexu@xxxxxxxxxxx> > > This is a pre-requisite operation for adding AMD PMU tests. > > AMD and Intel PMU are different in counter registers, event selection > registers, number of generic registers and generic hardware events. > By introducing a set of global variables to facilitate assigning > different values on different platforms. > > Signed-off-by: Like Xu <likexu@xxxxxxxxxxx> > --- > x86/pmu.c | 99 ++++++++++++++++++++++++++++++++----------------------- > 1 file changed, 58 insertions(+), 41 deletions(-) > > Reviewed-by: Sandipan Das <sandipan.das@xxxxxxx>