selftests/resctrl: Add vendor detection mechanism
authorBabu Moger <babu.moger@amd.com>
Thu, 16 Jan 2020 21:32:43 +0000 (13:32 -0800)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 11 Feb 2020 01:43:17 +0000 (18:43 -0700)
commit53f74fbec9f069241aa6f4c4d908229c77ee83e2
tree441424a750794e87f90a958a15876c6ef9e5acaa
parent790bf585b0eeec9aa0e680ba090142b98da7f948
selftests/resctrl: Add vendor detection mechanism

RESCTRL feature is supported both on Intel and AMD now. Some features
are implemented differently. Add vendor detection mechanism. Use the vendor
check where there are differences.

Signed-off-by: Babu Moger <babu.moger@amd.com>
Co-developed-by: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/resctrl/resctrl.h
tools/testing/selftests/resctrl/resctrl_tests.c