aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/sync/synctest.h
diff options
context:
space:
mode:
authorEmilio López <emilio.lopez@collabora.co.uk>2016-10-19 09:49:53 -0300
committerShuah Khan <shuahkh@osg.samsung.com>2016-12-01 18:13:25 -0700
commitc52dee5025d904896198b7090cf7df80a4028363 (patch)
tree27cc570456745917115a7b7389d8615dea79d82b /tools/testing/selftests/sync/synctest.h
parentselftest: sync: stress test for parallelism (diff)
downloadlinux-dev-c52dee5025d904896198b7090cf7df80a4028363.tar.xz
linux-dev-c52dee5025d904896198b7090cf7df80a4028363.zip
selftest: sync: stress consumer/producer test
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 <emilio.lopez@collabora.co.uk> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to '')
-rw-r--r--tools/testing/selftests/sync/synctest.h3
1 files changed, 3 insertions, 0 deletions
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