rt-fixes (0) experimental :: add stp_rwlock_t which can be raw_spinlock on RT
There is no raw_rwlock_t type on most kernels, so use a regular spinlock instead.
(Using rwlock_t in the wrong context can prevent probes from locking data entirely,
and causes kernel freeze in the conversions_profile.stp stress test.)
changes made throughout translator and runtime
- add stp_rwlock_t either rwlock_t or raw_spinlock_t
- ensure DEFINE_RWLOCK -> DEFINE_STP_RWLOCK
- ensure {read,write}_{,un,try}lock -> stp_{read,write}_{,un,try}lock
4 files changed