1PERF-INJECT(1)                    perf Manual                   PERF-INJECT(1)
2
3
4

NAME

6       perf-inject - Filter to augment the events stream with additional
7       information
8

SYNOPSIS

10       perf inject <options>
11

DESCRIPTION

13       perf-inject reads a perf-record event stream and repipes it to stdout.
14       At any point the processing code can inject other events into the event
15       stream - in this case build-ids (-b option) are read and injected as
16       needed into the event stream.
17
18       Build-ids are just the first user of perf-inject - potentially anything
19       that needs userspace processing to augment the events stream with
20       additional information could make use of this facility.
21

OPTIONS

23       -b, --build-ids=
24           Inject build-ids into the output stream
25
26       -v, --verbose
27           Be more verbose.
28
29       -i, --input=
30           Input file name. (default: stdin)
31
32       -o, --output=
33           Output file name. (default: stdout)
34
35       -s, --sched-stat
36           Merge sched_stat and sched_switch for getting events where and how
37           long tasks slept. sched_switch contains a callchain where a task
38           slept and sched_stat contains a timeslice how long a task slept.
39
40       --kallsyms=<file>
41           kallsyms pathname
42
43       --itrace
44           Decode Instruction Tracing data, replacing it with synthesized
45           events. Options are:
46
47               i       synthesize instructions events
48               b       synthesize branches events
49               c       synthesize branches events (calls only)
50               r       synthesize branches events (returns only)
51               x       synthesize transactions events
52               w       synthesize ptwrite events
53               p       synthesize power events
54               o       synthesize other events recorded due to the use
55                       of aux-output (refer to perf record)
56               e       synthesize error events
57               d       create a debug log
58               g       synthesize a call chain (use with i or x)
59               l       synthesize last branch entries (use with i or x)
60               s       skip initial number of events
61
62               The default is all events i.e. the same as --itrace=ibxwpe,
63               except for perf script where it is --itrace=ce
64
65               In addition, the period (default 100000, except for perf script where it is 1)
66               for instructions events can be specified in units of:
67
68               i       instructions
69               t       ticks
70               ms      milliseconds
71               us      microseconds
72               ns      nanoseconds (default)
73
74               Also the call chain size (default 16, max. 1024) for instructions or
75               transactions events can be specified.
76
77               Also the number of last branch entries (default 64, max. 1024) for
78               instructions or transactions events can be specified.
79
80               It is also possible to skip events generated (instructions, branches, transactions,
81               ptwrite, power) at the beginning. This is useful to ignore initialization code.
82
83               --itrace=i0nss1000000
84
85               skips the first million instructions.
86
87       --strip
88           Use with --itrace to strip out non-synthesized events.
89
90       -j, --jit
91           Process jitdump files by injecting the mmap records corresponding
92           to jitted functions. This option also generates the ELF images for
93           each jitted function found in the jitdumps files captured in the
94           input perf.data file. Use this option if you are monitoring
95           environment using JIT runtimes, such as Java, DART or V8.
96
97       -f, --force
98           Don’t complain, do it.
99

SEE ALSO

101       perf-record(1), perf-report(1), perf-archive(1)
102
103
104
105perf                              04/23/2020                    PERF-INJECT(1)
Impressum