diff options
author | Jens Wiklander <jens.wiklander@linaro.org> | 2017-11-14 12:59:34 +0100 |
---|---|---|
committer | Jérôme Forissier <jerome.forissier@linaro.org> | 2017-11-15 17:52:48 +0100 |
commit | 5209c97a2bfed2a5e993cb1b396ef3f42765a8d4 (patch) | |
tree | 5fe503762289ddf55fe2c1a34143b6e80bbcfa36 /lib/libutee | |
parent | bdc1c51e9d3c2828bd5dfaa2e599b7a5ec601ac3 (diff) |
core: pta: add PTA_INVOKE_TESTS_CMD_MUTEX
Adds test functions PTA_INVOKE_TESTS_CMD_MUTEX the invoke tests PTA
(PTA_INVOKE_TESTS_UUID). The PTA_INVOKE_TESTS_CMD_MUTEX function is used
to test in particular read and write mutex, but also mutex over all.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Volodymyr Babchuk <vlad.babchuk@gmail.com>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU)
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'lib/libutee')
-rw-r--r-- | lib/libutee/include/pta_invoke_tests.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/libutee/include/pta_invoke_tests.h b/lib/libutee/include/pta_invoke_tests.h index 1667af82..355d5c96 100644 --- a/lib/libutee/include/pta_invoke_tests.h +++ b/lib/libutee/include/pta_invoke_tests.h @@ -78,5 +78,17 @@ */ #define PTA_INVOKE_TESTS_CMD_FS_HTREE 6 +/* + * Tests mutex + * + * [in] value[0].a Test function PTA_MUTEX_TEST_* + * [in] value[0].b delay number + * [out] value[1].a before lock concurency + * [out] value[1].b during lock concurency + */ +#define PTA_MUTEX_TEST_WRITER 0 +#define PTA_MUTEX_TEST_READER 1 +#define PTA_INVOKE_TESTS_CMD_MUTEX 7 + #endif /*__PTA_INVOKE_TESTS_H*/ |