aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/resctrl/resctrl.h
diff options
context:
space:
mode:
authorBabu Moger <babu.moger@amd.com>2020-01-16 13:32:43 -0800
committerShuah Khan <skhan@linuxfoundation.org>2020-02-10 18:43:17 -0700
commit53f74fbec9f069241aa6f4c4d908229c77ee83e2 (patch)
tree441424a750794e87f90a958a15876c6ef9e5acaa /tools/testing/selftests/resctrl/resctrl.h
parentselftests/resctrl: Add Cache Allocation Technology (CAT) selftest (diff)
downloadlinux-dev-53f74fbec9f069241aa6f4c4d908229c77ee83e2.tar.xz
linux-dev-53f74fbec9f069241aa6f4c4d908229c77ee83e2.zip
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>
Diffstat (limited to 'tools/testing/selftests/resctrl/resctrl.h')
-rw-r--r--tools/testing/selftests/resctrl/resctrl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/resctrl/resctrl.h b/tools/testing/selftests/resctrl/resctrl.h
index e8399389f3ad..39bf59c6b9c5 100644
--- a/tools/testing/selftests/resctrl/resctrl.h
+++ b/tools/testing/selftests/resctrl/resctrl.h
@@ -66,6 +66,7 @@ pid_t bm_pid, ppid;
int tests_run;
char llc_occup_path[1024];
+bool is_amd;
bool check_resctrlfs_support(void);
int filter_dmesg(void);