linux-stable/tools/perf
Tom Zanussi 16c632de64 perf trace: Add Perl scripting support
Implement trace_scripting_ops to make Perl a supported perf
trace scripting language.

Additionally adds code that allows Perl trace scripts to access
the 'flag' and 'symbolic' (__print_flags(), __print_symbolic())
field information parsed from the trace format files.

Also adds the Perl implementation of the generate_script()
trace_scripting_op, which creates a ready-to-run perf trace Perl
script based on existing trace data.  Scripts generated by this
implementation print out all the fields for each event mentioned
in perf.data (and will detect and generate the proper scripting
code for 'flag' and 'symbolic' fields), and will additionally
generate handlers for the special 'trace_unhandled',
'trace_begin' and 'trace_end' handlers.  Script authors can
simply remove the printing code to implement their own custom
event handling.

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-4-git-send-email-tzanussi@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-11-28 10:04:26 +01:00
..
bench perf tools: Introduce zalloc() for the common calloc(1, N) case 2009-11-24 16:37:02 +01:00
Documentation perf kmem: Add help file 2009-11-24 08:49:51 +01:00
util perf trace: Add Perl scripting support 2009-11-28 10:04:26 +01:00
.gitignore perf tools: Add perf.data to .gitignore 2009-11-24 16:37:01 +01:00
builtin-annotate.c perf tools: Consolidate symbol resolving across all tools 2009-11-27 20:22:02 +01:00
builtin-bench.c perf bench: Add memcpy() benchmark 2009-11-19 06:21:48 +01:00
builtin-buildid-list.c perf buildid-list: Always show the DSO name 2009-11-17 07:19:54 +01:00
builtin-help.c perf tools: Introduce zalloc() for the common calloc(1, N) case 2009-11-24 16:37:02 +01:00
builtin-kmem.c perf tools: Consolidate symbol resolving across all tools 2009-11-27 20:22:02 +01:00
builtin-list.c perf list: Fix large list output by using the pager 2009-08-13 09:05:48 +02:00
builtin-probe.c perf tools: Introduce zalloc() for the common calloc(1, N) case 2009-11-24 16:37:02 +01:00
builtin-record.c perf record, x86: Print more intelligent error message when sampling fails 2009-11-23 09:40:13 +01:00
builtin-report.c perf tools: Consolidate symbol resolving across all tools 2009-11-27 20:22:02 +01:00
builtin-sched.c perf tools: Reorganize event processing routines, lotsa dups killed 2009-11-27 20:22:01 +01:00
builtin-stat.c perf stat: Do not print ratio when task-clock event is not counted 2009-11-15 15:25:50 +01:00
builtin-timechart.c perf tools: perf_header__read() shouldn't die() 2009-11-19 18:47:17 +01:00
builtin-top.c perf tools: Consolidate symbol resolving across all tools 2009-11-27 20:22:02 +01:00
builtin-trace.c perf trace: Add Perl scripting support 2009-11-28 10:04:26 +01:00
builtin.h perf: Add 'perf kmem' tool 2009-11-20 09:51:41 +01:00
command-list.txt perf kmem: Add help file 2009-11-24 08:49:51 +01:00
CREDITS perf_counter tools: Add CREDITS file for Git contributors 2009-06-24 19:54:29 +02:00
design.txt perf_event: Add alignment-faults and emulation-faults software events 2009-10-28 16:13:03 +11:00
Makefile perf trace: Add Perl scripting support 2009-11-28 10:04:26 +01:00
perf.c perf: Add 'perf kmem' tool 2009-11-20 09:51:41 +01:00
perf.h perf tools: Add ia64 support for tools/perf/ 2009-11-19 06:03:33 +01:00