aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/Documentation/perf-trace-python.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/Documentation/perf-trace-python.txt')
-rw-r--r--tools/perf/Documentation/perf-trace-python.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/perf/Documentation/perf-trace-python.txt b/tools/perf/Documentation/perf-trace-python.txt
index 119d5deba1db..a241aca77184 100644
--- a/tools/perf/Documentation/perf-trace-python.txt
+++ b/tools/perf/Documentation/perf-trace-python.txt
@@ -36,7 +36,8 @@ scripts listed by that command.
36 36
37The syscall-counts script is a simple script, but demonstrates all the 37The syscall-counts script is a simple script, but demonstrates all the
38basic ideas necessary to create a useful script. Here's an example 38basic ideas necessary to create a useful script. Here's an example
39of its output: 39of its output (syscall names are not yet supported, they will appear
40as numbers):
40 41
41---- 42----
42syscall events: 43syscall events:
@@ -270,7 +271,8 @@ calling the print_syscall_totals() function from the trace_end()
270handler called at the end of script processing. 271handler called at the end of script processing.
271 272
272The final script producing the output shown above is shown in its 273The final script producing the output shown above is shown in its
273entirety below: 274entirety below (syscall_name() helper is not yet available, you can
275only deal with id's for now):
274 276
275---- 277----
276import os 278import os
@@ -617,7 +619,6 @@ Various utility functions for use with perf trace:
617 nsecs_nsecs(nsecs) - returns nsecs remainder given nsecs 619 nsecs_nsecs(nsecs) - returns nsecs remainder given nsecs
618 nsecs_str(nsecs) - returns printable string in the form secs.nsecs 620 nsecs_str(nsecs) - returns printable string in the form secs.nsecs
619 avg(total, n) - returns average given a sum and a total number of values 621 avg(total, n) - returns average given a sum and a total number of values
620 syscall_name(id) - returns the syscall name for the specified syscall_nr
621 622
622SEE ALSO 623SEE ALSO
623-------- 624--------