Lines Matching +full:sub +full:- +full:modules
1 perf-script-perl(1)
5 ----
6 perf-script-perl - Process trace data with a Perl script
9 --------
11 'perf script' [-s [Perl]:script[.pl] ]
14 -----------
17 built-in Perl interpreter. It reads and processes the input file and
22 ---------------
25 -g perl' in the same directory as an existing perf.data trace file.
31 ~/libexec/perf-core/scripts/perl for typical examples showing how to
33 the check-perf-script.pl script, while not interesting for its results,
37 --------------
39 When perf script is invoked using a trace script, a user-defined
46 handler function; some of the less common ones aren't - those are
52 # perf record -a -e sched:sched_wakeup
55 the above option: -a to enable system-wide collection.
60 ----
72 ----
76 ----
77 sub sched::sched_wakeup
83 ----
112 -------------
115 search path and 'use'ing a few support modules (see module
118 ----
119 use lib "$ENV{'PERF_EXEC_PATH'}/scripts/perl/Perf-Trace-Util/lib";
120 use lib "./Perf-Trace-Util/lib";
124 ----
135 ----
136 sub trace_begin
139 ----
142 processed and gives scripts a chance to do end-of-script tasks, such
145 ----
146 sub trace_end
149 ----
155 ----
156 sub trace_unhandled
161 ----
164 built-in perf script Perl modules and their associated functions.
166 AVAILABLE MODULES AND FUNCTIONS
167 -------------------------------
170 via the various Perf::Trace::* Perl modules. To use the functions and
179 The *flag_str* and *symbol_str* functions provide human-readable
184 …flag_str($event_name, $field_name, $field_value) - returns the string representation corresponding…
185 …symbol_str($event_name, $field_name, $field_value) - returns the string representation correspondi…
199 common_pc($context) - returns common_preempt count for the current event
200 common_flags($context) - returns common_flags for the current event
201 common_lock_depth($context) - returns common_lock_depth for the current event
208 nsecs($secs, $nsecs) - returns total nsecs given secs/nsecs pair
209 nsecs_secs($nsecs) - returns whole secs portion given nsecs
210 nsecs_nsecs($nsecs) - returns nsecs remainder given nsecs
211 nsecs_str($nsecs) - returns printable string in the form secs.nsecs
212 avg($total, $n) - returns average given a sum and a total number of values
215 --------
216 linkperf:perf-script[1]