X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fbuffer-registry.cpp;fp=src%2Fbin%2Flttng-sessiond%2Fbuffer-registry.cpp;h=ab7d11ae4f51f093c4907f74a23377034cff3cf5;hb=0114db0ec2407029052eb61a0189c9b1cd64d520;hp=360af749d587d6ebe4c5d09807d55d116295100c;hpb=3691d312bcf4dc2cc15f0ecb1f0e2fd2f34315b8;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/buffer-registry.cpp b/src/bin/lttng-sessiond/buffer-registry.cpp index 360af749d..ab7d11ae4 100644 --- a/src/bin/lttng-sessiond/buffer-registry.cpp +++ b/src/bin/lttng-sessiond/buffer-registry.cpp @@ -202,7 +202,7 @@ struct buffer_reg_uid *buffer_reg_uid_find(uint64_t session_id, if (!node) { goto end; } - reg = caa_container_of(node, struct buffer_reg_uid, node); + reg = lttng::utils::container_of(node, &buffer_reg_uid::node); end: return reg; @@ -314,7 +314,7 @@ struct buffer_reg_pid *buffer_reg_pid_find(uint64_t session_id) if (!node) { goto end; } - reg = caa_container_of(node, struct buffer_reg_pid, node); + reg = lttng::utils::container_of(node, &buffer_reg_pid::node); end: return reg; @@ -472,7 +472,7 @@ struct buffer_reg_channel *buffer_reg_channel_find(uint64_t key, if (!node) { goto end; } - chan = caa_container_of(node, struct buffer_reg_channel, node); + chan = lttng::utils::container_of(node, &buffer_reg_channel::node); end: return chan; @@ -630,9 +630,9 @@ void buffer_reg_uid_remove(struct buffer_reg_uid *regp) static void rcu_free_buffer_reg_uid(struct rcu_head *head) { struct lttng_ht_node_u64 *node = - caa_container_of(head, struct lttng_ht_node_u64, head); + lttng::utils::container_of(head, <tng_ht_node_u64::head); struct buffer_reg_uid *reg = - caa_container_of(node, struct buffer_reg_uid, node); + lttng::utils::container_of(node, &buffer_reg_uid::node); buffer_reg_session_destroy(reg->registry, reg->domain); free(reg); @@ -641,9 +641,9 @@ static void rcu_free_buffer_reg_uid(struct rcu_head *head) static void rcu_free_buffer_reg_pid(struct rcu_head *head) { struct lttng_ht_node_u64 *node = - caa_container_of(head, struct lttng_ht_node_u64, head); + lttng::utils::container_of(head, <tng_ht_node_u64::head); struct buffer_reg_pid *reg = - caa_container_of(node, struct buffer_reg_pid, node); + lttng::utils::container_of(node, &buffer_reg_pid::node); buffer_reg_session_destroy(reg->registry, LTTNG_DOMAIN_UST); free(reg);