Merge tag '4.21-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6
[linux-2.6-block.git] / Documentation / perf / thunderx2-pmu.txt
CommitLineData
d6310a3f
KG
1Cavium ThunderX2 SoC Performance Monitoring Unit (PMU UNCORE)
2=============================================================
3
4The ThunderX2 SoC PMU consists of independent, system-wide, per-socket
5PMUs such as the Level 3 Cache (L3C) and DDR4 Memory Controller (DMC).
6
7The DMC has 8 interleaved channels and the L3C has 16 interleaved tiles.
8Events are counted for the default channel (i.e. channel 0) and prorated
9to the total number of channels/tiles.
10
11The DMC and L3C support up to 4 counters. Counters are independently
12programmable and can be started and stopped individually. Each counter
13can be set to a different event. Counters are 32-bit and do not support
14an overflow interrupt; they are read every 2 seconds.
15
16PMU UNCORE (perf) driver:
17
18The thunderx2_pmu driver registers per-socket perf PMUs for the DMC and
19L3C devices. Each PMU can be used to count up to 4 events
20simultaneously. The PMUs provide a description of their available events
21and configuration options under sysfs, see
22/sys/devices/uncore_<l3c_S/dmc_S/>; S is the socket id.
23
24The driver does not support sampling, therefore "perf record" will not
25work. Per-task perf sessions are also not supported.
26
27Examples:
28
29# perf stat -a -e uncore_dmc_0/cnt_cycles/ sleep 1
30
31# perf stat -a -e \
32uncore_dmc_0/cnt_cycles/,\
33uncore_dmc_0/data_transfers/,\
34uncore_dmc_0/read_txns/,\
35uncore_dmc_0/write_txns/ sleep 1
36
37# perf stat -a -e \
38uncore_l3c_0/read_request/,\
39uncore_l3c_0/read_hit/,\
40uncore_l3c_0/inv_request/,\
41uncore_l3c_0/inv_hit/ sleep 1