Home
last modified time | relevance | path

Searched refs:sl_tab (Results 1 – 2 of 2) sorted by relevance

/f-stack/dpdk/app/test/
H A Dtest_spinlock.c48 static rte_spinlock_t sl_tab[RTE_MAX_LCORE]; variable
61 rte_spinlock_lock(&sl_tab[rte_lcore_id()]); in test_spinlock_per_core()
63 rte_spinlock_unlock(&sl_tab[rte_lcore_id()]); in test_spinlock_per_core()
213 rte_spinlock_init(&sl_tab[i]); in test_spinlock()
218 rte_spinlock_lock(&sl_tab[i]); in test_spinlock()
230 rte_spinlock_unlock(&sl_tab[i]); in test_spinlock()
H A Dtest_rwlock.c38 static rte_rwlock_t sl_tab[RTE_MAX_LCORE]; variable
74 rte_rwlock_write_lock(&sl_tab[rte_lcore_id()]); in test_rwlock_per_core()
76 rte_rwlock_write_unlock(&sl_tab[rte_lcore_id()]); in test_rwlock_per_core()
186 rte_rwlock_init(&sl_tab[i]); in rwlock_test1()
191 rte_rwlock_write_lock(&sl_tab[i]); in rwlock_test1()
198 rte_rwlock_write_unlock(&sl_tab[i]); in rwlock_test1()