Re: [RFC PATCH] perf: Update event buffer tail when overwriting old events

2013-04-18 Thread Peter Zijlstra
On Mon, 2013-04-15 at 14:02 +0800, Yan, Zheng wrote: > From: "Yan, Zheng" > > If perf event buffer is in overwrite mode, the kernel only updates > the data head when it overwrites old samples. The program that owns > the buffer need periodically check the buffer and update a variable > that track

[RFC PATCH] perf: Update event buffer tail when overwriting old events

2013-04-14 Thread Yan, Zheng
From: "Yan, Zheng" If perf event buffer is in overwrite mode, the kernel only updates the data head when it overwrites old samples. The program that owns the buffer need periodically check the buffer and update a variable that tracks the date tail. If the program fails to do this in time, the dat