Please sign in to comment.
perf: Fix perf_event_for_each() to use sibling
In perf_event_for_each() we call a function on an event, and then iterate over the siblings of the event. However we don't call the function on the siblings, we call it repeatedly on the original event - it seems "obvious" that we should be calling it with sibling as the argument. It looks like this broke in commit 75f937f ("Fix ctx->mutex vs counter->mutex inversion"). The only effect of the bug is that the PERF_IOC_FLAG_GROUP parameter to the ioctls doesn't work. Signed-off-by: Michael Ellerman <email@example.com> Signed-off-by: Peter Zijlstra <firstname.lastname@example.org> Link: http://email@example.com Signed-off-by: Ingo Molnar <firstname.lastname@example.org>
- Loading branch information...