perf-inject.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. perf-inject(1)
  2. ==============
  3. NAME
  4. ----
  5. perf-inject - Filter to augment the events stream with additional information
  6. SYNOPSIS
  7. --------
  8. [verse]
  9. 'perf inject <options>'
  10. DESCRIPTION
  11. -----------
  12. perf-inject reads a perf-record event stream and repipes it to stdout. At any
  13. point the processing code can inject other events into the event stream - in
  14. this case build-ids (-b option) are read and injected as needed into the event
  15. stream.
  16. Build-ids are just the first user of perf-inject - potentially anything that
  17. needs userspace processing to augment the events stream with additional
  18. information could make use of this facility.
  19. OPTIONS
  20. -------
  21. -b::
  22. --build-ids=::
  23. Inject build-ids into the output stream
  24. -v::
  25. --verbose::
  26. Be more verbose.
  27. -i::
  28. --input=::
  29. Input file name. (default: stdin)
  30. -o::
  31. --output=::
  32. Output file name. (default: stdout)
  33. -s::
  34. --sched-stat::
  35. Merge sched_stat and sched_switch for getting events where and how long
  36. tasks slept. sched_switch contains a callchain where a task slept and
  37. sched_stat contains a timeslice how long a task slept.
  38. --kallsyms=<file>::
  39. kallsyms pathname
  40. --itrace::
  41. Decode Instruction Tracing data, replacing it with synthesized events.
  42. Options are:
  43. include::itrace.txt[]
  44. --strip::
  45. Use with --itrace to strip out non-synthesized events.
  46. -j::
  47. --jit::
  48. Process jitdump files by injecting the mmap records corresponding to jitted
  49. functions. This option also generates the ELF images for each jitted function
  50. found in the jitdumps files captured in the input perf.data file. Use this option
  51. if you are monitoring environment using JIT runtimes, such as Java, DART or V8.
  52. SEE ALSO
  53. --------
  54. linkperf:perf-record[1], linkperf:perf-report[1], linkperf:perf-archive[1]