perf script: Fix named threads support
authorDavid Ahern <dsahern@gmail.com>
Thu, 18 Jul 2013 22:06:15 +0000 (16:06 -0600)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 22 Jul 2013 14:55:53 +0000 (11:55 -0300)
Commit 73994dc broke named thread support in perf-script. The thread
struct in al is the main thread for a multithreaded process. The thread
struct used for analysis (e.g., dumping events) should be the specific
thread for the sample.

Signed-off-by: David Ahern <dsahern@gmail.com>
Cc: Feng Tang <feng.tang@intel.com>
Link: http://lkml.kernel.org/r/1374185175-28272-1-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-script.c
tools/perf/util/scripting-engines/trace-event-perl.c
tools/perf/util/scripting-engines/trace-event-python.c
tools/perf/util/trace-event-scripting.c
tools/perf/util/trace-event.h

Simple merge
Simple merge