itrace.txt 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. i synthesize instructions events
  2. y synthesize cycles events
  3. b synthesize branches events (branch misses for Arm SPE)
  4. c synthesize branches events (calls only)
  5. r synthesize branches events (returns only)
  6. x synthesize transactions events
  7. w synthesize ptwrite events
  8. p synthesize power events (incl. PSB events for Intel PT)
  9. o synthesize other events recorded due to the use
  10. of aux-output (refer to perf record)
  11. I synthesize interrupt or similar (asynchronous) events
  12. (e.g. Intel PT Event Trace)
  13. e synthesize error events
  14. d create a debug log
  15. f synthesize first level cache events
  16. m synthesize last level cache events
  17. M synthesize memory events
  18. t synthesize TLB events
  19. a synthesize remote access events
  20. g synthesize a call chain (use with i or x)
  21. G synthesize a call chain on existing event records
  22. l synthesize last branch entries (use with i or x)
  23. L synthesize last branch entries on existing event records
  24. s skip initial number of events
  25. q quicker (less detailed) decoding
  26. A approximate IPC
  27. Z prefer to ignore timestamps (so-called "timeless" decoding)
  28. T use the timestamp trace as kernel time
  29. The default is all events i.e. the same as --itrace=iybxwpe,
  30. except for perf script where it is --itrace=ce
  31. In addition, the period (default 100000, except for perf script where it is 1)
  32. for instructions events can be specified in units of:
  33. i instructions
  34. t ticks
  35. ms milliseconds
  36. us microseconds
  37. ns nanoseconds (default)
  38. Also the call chain size (default 16, max. 1024) for instructions or
  39. transactions events can be specified.
  40. Also the number of last branch entries (default 64, max. 1024) for
  41. instructions or transactions events can be specified.
  42. Similar to options g and l, size may also be specified for options G and L.
  43. On x86, note that G and L work poorly when data has been recorded with
  44. large PEBS. Refer linkperf:perf-intel-pt[1] man page for details.
  45. It is also possible to skip events generated (instructions, branches, transactions,
  46. ptwrite, power) at the beginning. This is useful to ignore initialization code.
  47. --itrace=i0nss1000000
  48. skips the first million instructions.
  49. The 'e' option may be followed by flags which affect what errors will or
  50. will not be reported. Each flag must be preceded by either '+' or '-'.
  51. The flags are:
  52. o overflow
  53. l trace data lost
  54. If supported, the 'd' option may be followed by flags which affect what
  55. debug messages will or will not be logged. Each flag must be preceded
  56. by either '+' or '-'. The flags are:
  57. a all perf events
  58. e output only on errors (size configurable - see linkperf:perf-config[1])
  59. o output to stdout
  60. If supported, the 'q' option may be repeated to increase the effect.