Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934812AbcJSONK (ORCPT ); Wed, 19 Oct 2016 10:13:10 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:60066 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933968AbcJSOND (ORCPT ); Wed, 19 Oct 2016 10:13:03 -0400 From: =?UTF-8?q?Emilio=20L=C3=B3pez?= To: shuah@kernel.org Cc: devel@driverdev.osuosl.org, gustavo.padovan@collabora.co.uk, riandrews@android.com, daniel.vetter@ffwll.ch, John.C.Harrison@Intel.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, ghackmann@google.com, robdclark@gmail.com, linux-kselftest@vger.kernel.org, maarten.lankhorst@linux.intel.com, daniels@collabora.com, arve@android.com, emil.l.velikov@gmail.com, mpe@ellerman.id.au, =?UTF-8?q?Emilio=20L=C3=B3pez?= Subject: [PATCH v2 0/7] Tests for sync infrastructure Date: Wed, 19 Oct 2016 09:49:47 -0300 Message-Id: <20161019124954.29232-1-emilio.lopez@collabora.co.uk> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20160921211205.22657-1-emilio.lopez@collabora.co.uk> References: <20160921211205.22657-1-emilio.lopez@collabora.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2940 Lines: 63 Hello everyone, This is a series of tests to exercise the sync kernel infrastructure. It is meant to be a test suite for the work Gustavo has been doing to destage it. These tests were originally part of a battery of tests shipping with Android's libsync that were rewritten to use the new userspace interfaces. This is the second iteration of the test suite. Main changes over v1 are a reworked Makefile and small code style fixes. If you are testing this on v4.9-rc1, do note that the last test will currently fail due to a regression[0]. As usual, all comments are welcome. Cheers! Emilio [0] https://patchwork.kernel.org/patch/9343347/ Emilio López (7): selftest: sync: basic tests for sw_sync framework selftest: sync: fence tests for sw_sync framework selftest: sync: merge tests for sw_sync framework selftest: sync: wait tests for sw_sync framework selftest: sync: stress test for parallelism selftest: sync: stress consumer/producer test selftest: sync: stress test for merges tools/testing/selftests/Makefile | 1 + tools/testing/selftests/sync/.gitignore | 1 + tools/testing/selftests/sync/Makefile | 24 +++ tools/testing/selftests/sync/sw_sync.h | 46 +++++ tools/testing/selftests/sync/sync.c | 221 +++++++++++++++++++++ tools/testing/selftests/sync/sync.h | 40 ++++ tools/testing/selftests/sync/sync_alloc.c | 74 +++++++ tools/testing/selftests/sync/sync_fence.c | 132 ++++++++++++ tools/testing/selftests/sync/sync_merge.c | 60 ++++++ .../testing/selftests/sync/sync_stress_consumer.c | 185 +++++++++++++++++ tools/testing/selftests/sync/sync_stress_merge.c | 115 +++++++++++ .../selftests/sync/sync_stress_parallelism.c | 111 +++++++++++ tools/testing/selftests/sync/sync_test.c | 79 ++++++++ tools/testing/selftests/sync/sync_wait.c | 91 +++++++++ tools/testing/selftests/sync/synctest.h | 66 ++++++ 15 files changed, 1246 insertions(+) create mode 100644 tools/testing/selftests/sync/.gitignore create mode 100644 tools/testing/selftests/sync/Makefile create mode 100644 tools/testing/selftests/sync/sw_sync.h create mode 100644 tools/testing/selftests/sync/sync.c create mode 100644 tools/testing/selftests/sync/sync.h create mode 100644 tools/testing/selftests/sync/sync_alloc.c create mode 100644 tools/testing/selftests/sync/sync_fence.c create mode 100644 tools/testing/selftests/sync/sync_merge.c create mode 100644 tools/testing/selftests/sync/sync_stress_consumer.c create mode 100644 tools/testing/selftests/sync/sync_stress_merge.c create mode 100644 tools/testing/selftests/sync/sync_stress_parallelism.c create mode 100644 tools/testing/selftests/sync/sync_test.c create mode 100644 tools/testing/selftests/sync/sync_wait.c create mode 100644 tools/testing/selftests/sync/synctest.h -- 2.10.1