perf script: Replace "struct thread" with "struct addr_location" as a parameter for...
authorFeng Tang <[email protected]>
Wed, 8 Aug 2012 09:57:52 +0000 (17:57 +0800)
committerArnaldo Carvalho de Melo <[email protected]>
Wed, 8 Aug 2012 15:46:40 +0000 (12:46 -0300)
commit73994dc158a24df4af77d0a76c9702f120f7a6ad
tree26380804ed9dd1c8bc6e3d00459aaed01edd4d74
parent6a6daec2ae9f097703c1da4925367f1c198c9492
perf script: Replace "struct thread" with "struct addr_location" as a parameter for "process_event()"

Both perl and python script start processing events other than trace
points, and it's useful to pass the resolved symbol and the dso info to
the event handler in script for better analysis and statistics.

Struct thread is already a member of struct addr_location, using
addr_location will keep the thread info, while providing additional
symbol and dso info if exist, so that the script itself doesn't need to
bother to do the symbol resolving and dso searching work.

Tested-by: David Ahern <[email protected]>
Signed-off-by: Feng Tang <[email protected]>
Acked-by: David Ahern <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Robert Richter <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
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