Caused sequence of:
lttng create
lttng enable-event -k sched_switch
lttng start
lttng stop
lttng start
lttng stop
to hang on waiting for data......
Issue appeared in
commit
d83004aa718065e5221d8ef4b99e4302b70b3df9
Author: Julien Desfossez <jdesfossez@efficios.com>
Date: Thu Jun 6 16:38:48 2013 -0400
Metadata cache and multiple metadata channels
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
len = stream->metadata_cache->metadata_written -
stream->metadata_cache_read;
+ if (!len)
+ return 0;
reserve_len = min_t(size_t,
chan->ops->packet_avail_size(chan->chan),
len);