selftests/resctrl: Add non-contiguous CBMs CAT test
authorMaciej Wieczor-Retman <maciej.wieczor-retman@intel.com>
Fri, 16 Feb 2024 08:35:52 +0000 (09:35 +0100)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 23 Feb 2024 22:19:25 +0000 (15:19 -0700)
commitae638551ab64a216364a63c4ee5061f82702fde2
treebd6987a8fb1a82a80ce454f032d5e7ade7823bfc
parent74e76cbabd7f71f46afdf125dd4f6a54447d87e0
selftests/resctrl: Add non-contiguous CBMs CAT test

Add tests for both L2 and L3 CAT to verify the return values
generated by writing non-contiguous CBMs don't contradict the
reported non-contiguous support information.

Use a logical XOR to confirm return value of write_schemata() and
non-contiguous CBMs support information match.

Signed-off-by: Maciej Wieczor-Retman <maciej.wieczor-retman@intel.com>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/resctrl/cat_test.c
tools/testing/selftests/resctrl/resctrl.h
tools/testing/selftests/resctrl/resctrl_tests.c