From c52dee5025d904896198b7090cf7df80a4028363 Mon Sep 17 00:00:00 2001 From: Emilio López Date: Wed, 19 Oct 2016 09:49:53 -0300 Subject: selftest: sync: stress consumer/producer test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This test is based on the libsync test suite from Android. This commit includes a stress test that replicates a consumer/producer pattern. Signed-off-by: Emilio López Signed-off-by: Shuah Khan --- tools/testing/selftests/sync/synctest.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/testing/selftests/sync/synctest.h') diff --git a/tools/testing/selftests/sync/synctest.h b/tools/testing/selftests/sync/synctest.h index c461577f84a0..a94b6220b8e6 100644 --- a/tools/testing/selftests/sync/synctest.h +++ b/tools/testing/selftests/sync/synctest.h @@ -57,4 +57,7 @@ int test_fence_multi_timeline_wait(void); /* Stress test - parallelism */ int test_stress_two_threads_shared_timeline(void); +/* Stress test - consumer */ +int test_consumer_stress_multi_producer_single_consumer(void); + #endif -- cgit v1.2.3-59-g8ed1b