Messages in this thread | | | Date | Tue, 10 Nov 2009 11:40:04 +0100 | From | Frederic Weisbecker <> | Subject | Re: [PATCH v2] tracing: Protect the buffer from recursion in perf |
| |
On Tue, Nov 10, 2009 at 11:27:42AM +0100, Peter Zijlstra wrote: > There already is recursion protection in > kernel/perf_event.c:perf_swevent_recursion_context() and thereabouts. > Could you not fix this by widening its scope?
Hmm, indeed. I could probably use perf_swevent_recursion_context() directly from the tracing fill path. And then split up a bit do_perf_sw_event() so that it continues to check the recursion for normal software events but not for trace events (for which we would already explicitly call perf_swevent_recursion_context()).
I'll try that, thanks!
| |