Re: [PATCH] tools lib traceevent: Fix kbuffer_read_at_offset()

From: Steven Rostedt
Date: Fri Oct 07 2016 - 10:07:59 EST


On Fri, 7 Oct 2016 13:19:08 +0900
Namhyung Kim <namhyung@xxxxxxxxxx> wrote:

> Actually kbuffer_load_subbuffer() calls kbuf->next_event(). Inside
> the function it has a loop updating next valid event. Sometimes, the
> data starts with TIME_EXTEND with value of 0 and the loop skips it
> which ended up setting kbuf->curr to 8. :)

Right, because kbuffer_read_at_offset() should not return a TIME_EXTEND.

-- Steve