@@ -120,13 +120,13 @@ counters { // Wrapper structure where the "real" counters are specified.
| PERF_TYPE_RAW | | user can define architecture-specific raw events here.
| " | *XXXX* | Config must be an hex value (without 0x prefix). See <sup>[2](#fn2)</sup>
| | | |
| PERF_TYPE_BREAKPOINT | --- | config not required, any values will be ignored. However config must be specified (even if empty)
| PERF_TYPE_BREAKPOINT | --- | config not required, any values will be ignored. However config must still be specified (even if empty)
#### Footnotes
Taken from the [perf_event_open man-page](http://man7.org/linux/man-pages/man2/perf_event_open.2.html):
<aname="fn1">**1**</a>:The perf_event_paranoid file can be set to restrict access to the performance counters.
<aname="fn1">**1**</a>: The perf_event_paranoid file can be set to restrict access to the performance counters.
| Value | Restriction |
|:-----:|:----------- |
...
...
@@ -137,7 +137,7 @@ Taken from the [perf_event_open man-page](http://man7.org/linux/man-pages/man2/p
The existence of the perf_event_paranoid file is the official method for determining if a kernel supports perf_event_open()
<aname="fn2">**2**</a>:If type is *PERF_TYPE_RAW*, then a custom "raw" config value is needed. Most CPUs support events that are not covered by the "generalized" events. These are implementation defined; see your CPU manual (for example the Intel Volume 3B documentation or the AMD BIOS and Kernel Developer Guide). The libpfm4 library can be used to translate from the name in the architectural manual to the raw hex value perf_event_open() expects in this field.
<aname="fn2">**2**</a>: If type is *PERF_TYPE_RAW*, then a custom "raw" config value is needed. Most CPUs support events that are not covered by the "generalized" events. These are implementation defined; see your CPU manual (for example the Intel Volume 3B documentation or the AMD BIOS and Kernel Developer Guide). The libpfm4 library can be used to translate from the name in the architectural manual to the raw hex value perf_event_open() expects in this field.