From: Arnaldo Carvalho de Melo Date: Thu, 17 Jun 2010 11:37:44 +0000 (-0300) Subject: perf session: Remove threads from tree on PERF_RECORD_EXIT X-Git-Tag: v2.6.35-rc4~45^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=720a3aeb7373cb49cf222d5f12e121f78d3d4410;p=pandora-kernel.git perf session: Remove threads from tree on PERF_RECORD_EXIT Move them to a session->dead_threads list just like we do with maps that are replaced, because we may have hist_entries pointing to them. This fixes a bug when inserting maps for a new thread that reused the TID, mixing maps for two different threads, causing an endless loop. The code for insering maps should be made more robust but for .35 this is the minimalistic patch. Reported-by: Ingo Molnar Cc: David S. Miller Cc: Frédéric Weisbecker Cc: Mike Galbraith Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Tom Zanussi LKML-Reference: Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed