vppinfra: added performance test for clib_rwlock_t (test_rwlock.c) 62/20862/5
authorjaszha03 <jason.zhang2@arm.com>
Mon, 1 Jul 2019 22:20:52 +0000 (17:20 -0500)
committerDave Barach <openvpp@barachs.net>
Wed, 31 Jul 2019 13:55:12 +0000 (13:55 +0000)
commit25ab6cfed6db18bdd8cdb57b7e751751aa64c576
tree030e0250238413e740953667f3017f5c64806e50
parent5cdde5c25a0e71d923a6d56e5c94e058887f95d8
vppinfra: added performance test for clib_rwlock_t (test_rwlock.c)

Spawns a uniform number of writer and reader threads across a number of
cores where each writer thread increments a global variable a specified
number of times, and the reader threads continually poll the global's
value until the writers complete.

Type: test

Change-Id: I979c3734c6d03139d0802bff1846875d226f6fbb
Signed-off-by: Jason Zhang <jason.zhang2@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: Lijian Zhang <Lijian.Zhang@arm.com>
src/vppinfra/CMakeLists.txt
src/vppinfra/test_rwlock.c [new file with mode: 0644]