return ret;
}
+static
void event_notifier_send_notification_work_wakeup(struct irq_work *entry)
{
struct lttng_event_notifier_group *event_notifier_group =
return lttng_kernel_counter_clear(counter, indexes);
}
default:
- WARN_ON_ONCE(1);
return -ENOSYS;
}
}
/* Finish copy of previous record */
if (*ppos != 0) {
- if (read_count < count) {
+ if (count != 0) {
len = chan->iter.len_left;
read_offset = *ppos;
goto skip_get_next;
chan->iter.len_left = 0;
put_record:
- lib_ring_buffer_put_current_record(buf);
+ if (*ppos == 0)
+ lib_ring_buffer_put_current_record(buf);
return read_count;
}
* @file: the file
* @wait: poll table
*/
+static
unsigned int lttng_channel_poll(struct file *file, poll_table *wait)
{
struct lttng_kernel_channel_buffer *channel = file->private_data;