From: Stephane Eranian Date: Fri, 17 Sep 2010 09:28:47 +0000 (+0200) Subject: perf_events: Fix broken event grouping X-Git-Tag: v2.6.37-rc1~214^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d14b12d7adbf214f33eb59f800b5c3d5ed9268e8;p=pandora-kernel.git perf_events: Fix broken event grouping Events were not grouped anymore. The reason was that in perf_event_open(), the field event->group_leader was initialized before the function looked up the group_fd to find the event leader. This patch fixes this by reordering the code correctly. Signed-off-by: Stephane Eranian Signed-off-by: Peter Zijlstra Cc: Robert Richter LKML-Reference: <20100917093009.360420946@chello.nl> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed