perf-list.txt 3.2 KB

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