Message ID | 20231229031138.68313-2-rostedt@goodmis.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 66d3bebcec7acc3c845d9f5e0809f7b59d43bae5 |
Headers | show |
Series | trace-cmd library: Fixes and add a reset | expand |
diff --git a/lib/trace-cmd/trace-input.c b/lib/trace-cmd/trace-input.c index 42c8312f8395..bf070f057ed0 100644 --- a/lib/trace-cmd/trace-input.c +++ b/lib/trace-cmd/trace-input.c @@ -3143,7 +3143,7 @@ int tracecmd_iterate_events_multi(struct tracecmd_input **handles, offset = (int)(records[cpu].record->offset & (handle->page_size - 1)); free_next(handle, local_cpu); /* Reset the buffer to read the cached record again */ - kbuffer_read_at_offset(handle->cpu_data[cpu].kbuf, offset, NULL); + kbuffer_read_at_offset(handle->cpu_data[local_cpu].kbuf, offset, NULL); } free(records);