Ilpo Järvinen fa10366cc6 selftests/resctrl: Allow ->setup() to return errors
resctrl_val() assumes ->setup() always returns either 0 to continue
tests or < 0 in case of the normal termination of tests after x runs.
The latter overlaps with normal error returns.

Define END_OF_TESTS (=1) to differentiate the normal termination of
tests and return errors as negative values. Alter callers of ->setup()
to handle errors properly.

Fixes: 790bf585b0ee ("selftests/resctrl: Add Cache Allocation Technology (CAT) selftest")
Fixes: ecdbb911f22d ("selftests/resctrl: Add MBM test")
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2023-04-10 12:20:41 -06:00
..
2023-03-02 09:45:34 -08:00
2023-02-03 13:54:22 -03:00
2023-01-21 17:52:26 +00:00
2023-03-02 09:45:34 -08:00
2023-02-23 10:20:49 -08:00
2023-03-02 09:45:34 -08:00
2023-02-21 17:32:50 -08:00
2023-02-23 10:20:49 -08:00