struct buffer_reg_uid *reg = NULL, key;
struct lttng_ht *ht = buffer_registry_uid;
+ ASSERT_RCU_READ_LOCKED();
+
/* Setup key we are looking for. */
key.session_id = session_id;
key.bits_per_long = bits_per_long;
}
rcu_read_unlock();
- ht_cleanup_push(regp->channels);
+ lttng_ht_destroy(regp->channels);
switch (domain) {
case LTTNG_DOMAIN_UST:
void buffer_reg_destroy_registries(void)
{
DBG3("Buffer registry destroy all registry");
- ht_cleanup_push(buffer_registry_uid);
- ht_cleanup_push(buffer_registry_pid);
+ lttng_ht_destroy(buffer_registry_uid);
+ lttng_ht_destroy(buffer_registry_pid);
}