Hello,
I am trying to implement a wrapper to libbabeltrace.so, to provide
backward iteration capability.
I've already implemented a binary search in lib/iterator.c, in
seek_file_stream_by_timestamp() - which helps a lot when doing any kind of
seek. I intend to donate this patch, pretty soon.
However, it seems that the greatest benefit would come from checking
whether the current event is not the first in its packet, returning
quickly to the first event in the packet, and then iterating forward until
we find the event preceding the current one.
Could someone suggest how I would implement such functionality in
libbabeltrace? I'd be very happy to perform the implementation and donate
the results, along with performance data.
Thanks,
Amit Margalit
IBM XIV - Storage Reinvented
XIV-NAS Development Team
Tel. 03-689-7774
Fax. 03-689-7230
_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev