1LIBPFM(3) Linux Programmer's Manual LIBPFM(3)
2
3
4
6 libpfm_intel_tmt - support for Intel Tremont core PMU
7
9 #include <perfmon/pfmlib.h>
10
11 PMU name: tmt
12 PMU desc: Intel Tremont
13
14
16 The library supports the Intel Tremont core PMU.
17
18
20 The following modifiers are supported on Intel Tremont processors:
21
22 u Measure at user level which includes privilege levels 1, 2, 3.
23 This corresponds to PFM_PLM3. This is a boolean modifier.
24
25 k Measure at kernel level which includes privilege level 0. This
26 corresponds to PFM_PLM0. This is a boolean modifier.
27
28 i Invert the meaning of the event. The counter will now count cy‐
29 cles in which the event is not occurring. This is a boolean mod‐
30 ifier
31
32 e Enable edge detection, i.e., count only when there is a state
33 transition from no occurrence of the event to at least one oc‐
34 currence. This modifier must be combined with a counter mask
35 modifier (m) with a value greater or equal to one. This is a
36 boolean modifier.
37
38 c Set the counter mask value. The mask acts as a threshold. The
39 counter will count the number of cycles in which the number of
40 occurrences of the event is greater or equal to the threshold.
41 This is an integer modifier with values in the range [0:255].
42
43
45 Intel Tremont provides two offcore_response events: OFFCORE_RESPONSE_0
46 and OFFCORE_RESPONSE_1. The OCR event is aliased to OFFCORE_RE‐
47 SPONSE_0.
48
49 Those events need special treatment in the performance monitoring in‐
50 frastructure because each event uses an extra register to store some
51 settings. Thus, in case multiple offcore_response events are monitored
52 simultaneously, the kernel needs to manage the sharing of that extra
53 register.
54
55 The offcore_response event is exposed as a normal event by the library.
56 The extra settings are exposed as regular umasks. The library takes
57 care of encoding the events according for the underlying kernel inter‐
58 face.
59
60 On Intel Tremont, it is not possible to combine the request, supplier,
61 snoop, fields anymore to avoid invalid combinations. As such, the
62 umasks provided by the library are the only ones supported and vali‐
63 dated.
64
65
67 Stephane Eranian <eranian@gmail.com>
68
69
70
71 March, 2020 LIBPFM(3)