* Index of next channel in array. Makes sure that as long as a trace channel is
* allocated, no array index will be re-used when a channel is freed and then
* another channel is allocated. This index is cleared and the array indexeds
* Index of next channel in array. Makes sure that as long as a trace channel is
* allocated, no array index will be re-used when a channel is freed and then
* another channel is allocated. This index is cleared and the array indexeds
- struct ltt_channel_setting *setting = _ust_container_of(kref,
- struct ltt_channel_setting, kref);
+ struct ltt_channel_setting *setting = _ust_container_of(urcu_ref,
+ struct ltt_channel_setting, urcu_ref);
{
struct ltt_channel_setting *iter, *n;
cds_list_for_each_entry_safe(iter, n, <t_channels, list)
{
struct ltt_channel_setting *iter, *n;
cds_list_for_each_entry_safe(iter, n, <t_channels, list)
cds_list_add(&setting->list, <t_channels);
strncpy(setting->name, name, PATH_MAX-1);
setting->index = free_index++;
cds_list_add(&setting->list, <t_channels);
strncpy(setting->name, name, PATH_MAX-1);
setting->index = free_index++;
struct ltt_channel_setting *iter;
cds_list_for_each_entry(iter, <t_channels, list)
struct ltt_channel_setting *iter;
cds_list_for_each_entry(iter, <t_channels, list)
cds_list_for_each_entry(iter, <t_channels, list)
if (!strcmp(iter->name, name)
cds_list_for_each_entry(iter, <t_channels, list)
if (!strcmp(iter->name, name)
continue;
channel[iter->index].subbuf_size = iter->subbuf_size;
channel[iter->index].subbuf_cnt = iter->subbuf_cnt;
continue;
channel[iter->index].subbuf_size = iter->subbuf_size;
channel[iter->index].subbuf_cnt = iter->subbuf_cnt;