perf-list.txt 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. perf-list(1)
  2. ============
  3. NAME
  4. ----
  5. perf-list - List all symbolic event types
  6. SYNOPSIS
  7. --------
  8. [verse]
  9. 'perf list' [hw|sw|cache|tracepoint|event_glob]
  10. DESCRIPTION
  11. -----------
  12. This command displays the symbolic event types which can be selected in the
  13. various perf commands with the -e option.
  14. [[EVENT_MODIFIERS]]
  15. EVENT MODIFIERS
  16. ---------------
  17. Events can optionally have a modifer by appending a colon and one or
  18. more modifiers. Modifiers allow the user to restrict when events are
  19. counted with 'u' for user-space, 'k' for kernel, 'h' for hypervisor.
  20. Additional modifiers are 'G' for guest counting (in KVM guests) and 'H'
  21. for host counting (not in KVM guests).
  22. The 'p' modifier can be used for specifying how precise the instruction
  23. address should be. The 'p' modifier is currently only implemented for
  24. Intel PEBS and can be specified multiple times:
  25. 0 - SAMPLE_IP can have arbitrary skid
  26. 1 - SAMPLE_IP must have constant skid
  27. 2 - SAMPLE_IP requested to have 0 skid
  28. 3 - SAMPLE_IP must have 0 skid
  29. The PEBS implementation now supports up to 2.
  30. RAW HARDWARE EVENT DESCRIPTOR
  31. -----------------------------
  32. Even when an event is not available in a symbolic form within perf right now,
  33. it can be encoded in a per processor specific way.
  34. For instance For x86 CPUs NNN represents the raw register encoding with the
  35. layout of IA32_PERFEVTSELx MSRs (see [Intel® 64 and IA-32 Architectures Software Developer's Manual Volume 3B: System Programming Guide] Figure 30-1 Layout
  36. of IA32_PERFEVTSELx MSRs) or AMD's PerfEvtSeln (see [AMD64 Architecture Programmer’s Manual Volume 2: System Programming], Page 344,
  37. Figure 13-7 Performance Event-Select Register (PerfEvtSeln)).
  38. Note: Only the following bit fields can be set in x86 counter
  39. registers: event, umask, edge, inv, cmask. Esp. guest/host only and
  40. OS/user mode flags must be setup using <<EVENT_MODIFIERS, EVENT
  41. MODIFIERS>>.
  42. Example:
  43. If the Intel docs for a QM720 Core i7 describe an event as:
  44. Event Umask Event Mask
  45. Num. Value Mnemonic Description Comment
  46. A8H 01H LSD.UOPS Counts the number of micro-ops Use cmask=1 and
  47. delivered by loop stream detector invert to count
  48. cycles
  49. raw encoding of 0x1A8 can be used:
  50. perf stat -e r1a8 -a sleep 1
  51. perf record -e r1a8 ...
  52. You should refer to the processor specific documentation for getting these
  53. details. Some of them are referenced in the SEE ALSO section below.
  54. OPTIONS
  55. -------
  56. Without options all known events will be listed.
  57. To limit the list use:
  58. . 'hw' or 'hardware' to list hardware events such as cache-misses, etc.
  59. . 'sw' or 'software' to list software events such as context switches, etc.
  60. . 'cache' or 'hwcache' to list hardware cache events such as L1-dcache-loads, etc.
  61. . 'tracepoint' to list all tracepoint events, alternatively use
  62. 'subsys_glob:event_glob' to filter by tracepoint subsystems such as sched,
  63. block, etc.
  64. . If none of the above is matched, it will apply the supplied glob to all
  65. events, printing the ones that match.
  66. One or more types can be used at the same time, listing the events for the
  67. types specified.
  68. SEE ALSO
  69. --------
  70. linkperf:perf-stat[1], linkperf:perf-top[1],
  71. linkperf:perf-record[1],
  72. http://www.intel.com/Assets/PDF/manual/253669.pdf[Intel® 64 and IA-32 Architectures Software Developer's Manual Volume 3B: System Programming Guide],
  73. http://support.amd.com/us/Processor_TechDocs/24593.pdf[AMD64 Architecture Programmer’s Manual Volume 2: System Programming]