From: Peter Zijlstra Date: Thu, 6 May 2010 15:31:38 +0000 (+0200) Subject: perf: Fix exit() vs PERF_FORMAT_GROUP X-Git-Tag: v2.6.35-rc1~522^2~69^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fd38e4595e2f6c9d27732c042a0e16b2753049c;p=pandora-kernel.git perf: Fix exit() vs PERF_FORMAT_GROUP Both Stephane and Corey reported that PERF_FORMAT_GROUP didn't work as expected if the task the counters were attached to quit before the read() call. The cause is that we unconditionally destroy the grouping when we remove counters from their context. Fix this by only doing this when we free the counter itself. Reported-by: Corey Ashford Reported-by: Stephane Eranian Signed-off-by: Peter Zijlstra LKML-Reference: <1273160566.5605.404.camel@twins> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed