linux-stable-rt/tools/perf/util
Tom Zanussi d1b93772be perf trace: Add interface to access perf data from Perl handlers
The Perl scripting support for perf trace allows most of a trace
event's data to be accessed directly as handler arguments, but
not all of it e.g. the less common fields aren't passed in.  To
give scripts access to the other fields and/or any other data or
metadata in the main perf executable that might be useful, a way
to access the C data in perf from Perl is needed; this patch
uses the Perl XS facility to do it for the common_xxx event
fields not passed to handler functions.

Context.pm exports three functions to Perl scripts that access
fields for the current event by calling back into perf:
common_pc(), common_flags() and common_lock_depth().  Support
for common_flags() field values was added to Core.pm and a
script used to sanity check these and other basic scripting
features, check-perf-trace.pl, was also added.

Signed-off-by: Tom Zanussi <tzanussi@gmail.com>
Cc: fweisbec@gmail.com
Cc: rostedt@goodmis.org
Cc: anton@samba.org
Cc: hch@infradead.org
LKML-Reference: <1259133352-23685-6-git-send-email-tzanussi@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-11-28 10:04:27 +01:00
..
include perf symbols: Simplify symbol machinery setup 2009-11-24 16:37:02 +01:00
PERF-VERSION-GEN
abspath.c
alias.c
cache.h
callchain.c perf tools: Unify debug messages mechanisms 2009-10-23 08:22:47 +02:00
callchain.h
color.c
color.h
config.c
ctype.c perf tools: Move graph_line and graph_dotted_line from top 2009-11-23 21:55:20 +01:00
data_map.c perf tools: Reorganize event processing routines, lotsa dups killed 2009-11-27 20:22:01 +01:00
data_map.h perf tools: Reorganize event processing routines, lotsa dups killed 2009-11-27 20:22:01 +01:00
debug.c perf tools: Unify debug messages mechanisms 2009-10-23 08:22:47 +02:00
debug.h perf tools: Debug.h needs to include event.h for event_t 2009-11-16 22:05:50 +01:00
debugfs.c perf tools: Add debugfs utility routines for perf 2009-11-08 18:01:34 +01:00
debugfs.h perf tools: Add debugfs utility routines for perf 2009-11-08 18:01:34 +01:00
environment.c
event.c perf tools: Consolidate symbol resolving across all tools 2009-11-27 20:22:02 +01:00
event.h perf tools: Consolidate symbol resolving across all tools 2009-11-27 20:22:02 +01:00
exec_cmd.c
exec_cmd.h
generate-cmdlist.sh
header.c perf symbols: Split the dsos list into kernel and user parts 2009-11-27 20:21:58 +01:00
header.h perf tools: Eliminate some more die() uses in library functions 2009-11-19 18:47:17 +01:00
help.c
help.h
hist.c perf tools: Consolidate symbol resolving across all tools 2009-11-27 20:22:02 +01:00
hist.h perf tools: Consolidate symbol resolving across all tools 2009-11-27 20:22:02 +01:00
levenshtein.c
levenshtein.h
map.c perf symbols: Better support for multiple symbol tables per dso 2009-11-27 20:21:59 +01:00
pager.c
parse-events.c perf tools: Introduce zalloc() for the common calloc(1, N) case 2009-11-24 16:37:02 +01:00
parse-events.h
parse-options.c
parse-options.h
path.c
probe-finder.c perf/probes: Fall back to non-dwarf if possible 2009-11-04 13:02:47 +01:00
probe-finder.h perf/probes: Support function entry relative line number 2009-10-29 08:47:49 +01:00
quote.c
quote.h
run-command.c
run-command.h
sigchain.c
sigchain.h
sort.c perf tools: Bind callchains to the first sort dimension column 2009-10-23 07:55:18 +02:00
sort.h perf tools: Bind callchains to the first sort dimension column 2009-10-23 07:55:18 +02:00
strbuf.c
strbuf.h
string.c perf tools: Add new perf_atoll() function to parse string representing size in bytes 2009-11-15 14:54:23 +01:00
string.h perf tools: Add new perf_atoll() function to parse string representing size in bytes 2009-11-15 14:54:23 +01:00
strlist.c
strlist.h
svghelper.c
svghelper.h
symbol.c perf tools: Consolidate symbol resolving across all tools 2009-11-27 20:22:02 +01:00
symbol.h perf tools: Consolidate symbol resolving across all tools 2009-11-27 20:22:02 +01:00
thread.c perf tools: Consolidate symbol resolving across all tools 2009-11-27 20:22:02 +01:00
thread.h perf tools: Consolidate symbol resolving across all tools 2009-11-27 20:22:02 +01:00
trace-event-info.c perf trace: Read_tracing_data should die() another day 2009-11-21 17:45:59 +01:00
trace-event-parse.c perf trace: Add interface to access perf data from Perl handlers 2009-11-28 10:04:27 +01:00
trace-event-perl.c perf trace: Add interface to access perf data from Perl handlers 2009-11-28 10:04:27 +01:00
trace-event-perl.h perf trace: Add interface to access perf data from Perl handlers 2009-11-28 10:04:27 +01:00
trace-event-read.c perf trace: Read_tracing_data should die() another day 2009-11-21 17:45:59 +01:00
trace-event.h perf trace: Add interface to access perf data from Perl handlers 2009-11-28 10:04:27 +01:00
types.h
usage.c
util.h perf tools: Remove unused wrapper routines 2009-11-24 16:37:03 +01:00
values.c
values.h
wrapper.c perf tools: Remove unused wrapper routines 2009-11-24 16:37:03 +01:00