From: Arnaldo Carvalho de Melo Date: Tue, 11 Aug 2009 19:22:00 +0000 (-0300) Subject: perf record: Fix .tid and .pid fill-in when synthesizing events X-Git-Tag: v2.6.31-rc6~2^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a8083f063472f27c253545dd64e1a7bbbb1ab61;p=pandora-kernel.git perf record: Fix .tid and .pid fill-in when synthesizing events Noticed when trying to record events for a firefox thread. We were synthesizing both .tid and .pid with the pid passed via --pid. Fix it by reading /proc/PID/status and getting the tgid to use in .pid, .tid gets the specified "pid". Signed-off-by: Arnaldo Carvalho de Melo Cc: "H. Peter Anvin" Cc: Frédéric Weisbecker Cc: Peter Zijlstra Cc: Mike Galbraith LKML-Reference: <20090811192200.GF18061@ghostprotocols.net> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed