Re: [RFC][PATCH] perf: Rewrite enabled/running timekeeping

From: Peter Zijlstra
Date: Tue Sep 05 2017 - 12:04:00 EST


On Tue, Sep 05, 2017 at 03:06:26PM +0300, Alexey Budankov wrote:
> [ 6614.226305] WARNING: CPU: 45 PID: 43385 at kernel/events/core.c:239 event_function+0xb3/0xe0

I think I avoided that problem by not radically rewriting
perf_event_read() but fixing it instead:

https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?h=perf/core&id=8ad650955ede95e4a6fd6afbda2a0b37d4af9c29

Full tree at:

git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git perf/core


Very minimally tested so far, I'll continue tomorrow.