X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fmacros.h;fp=src%2Fcommon%2Fmacros.h;h=43a4d692b80fbad0a5a42f03f2ceffc3450c63a1;hp=1c131db780e5eb2980fcefc875608040456e1f1b;hb=48b7cdc221a445188d6d9bd08fc1686837e71224;hpb=3c3390532736cfb5198f863d0d2b218e21fcf76d diff --git a/src/common/macros.h b/src/common/macros.h index 1c131db78..43a4d692b 100644 --- a/src/common/macros.h +++ b/src/common/macros.h @@ -74,6 +74,7 @@ void *zmalloc(size_t len) #define member_sizeof(type, field) sizeof(((type *) 0)->field) #define ASSERT_LOCKED(lock) LTTNG_ASSERT(pthread_mutex_trylock(&lock)) +#define ASSERT_RCU_READ_LOCKED(lock) LTTNG_ASSERT(rcu_read_ongoing()) /* Attribute suitable to tag functions as having printf()-like arguments. */ #define ATTR_FORMAT_PRINTF(_string_index, _first_to_check) \