Re: [PATCH v2] ring-buffer: Add offset of events in dump on mismatch

From: Steven Rostedt
Date: Mon Dec 11 2023 - 13:06:44 EST


On Mon, 11 Dec 2023 13:06:14 -0500
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

>
> case RINGBUF_TYPE_DATA:
> ts += event->time_delta;
> - pr_warn(" [%lld] delta:%d\n", ts, event->time_delta);
> + pr_warn(" 0x%x: [%lld] delta:%d\n",
> + e, ts, event->time_delta);
> break;
>
> default:
> break;
> }
> }
> + pr_warn("expected end:%ld last event actually ended at:%d\n", tail, e);
> }
>

Bah, all offsets were in hex, the above was supposed to be in hex too. I
sent out the wrong version.

Will send a v3 with that update.

-- Steve