~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/admin-guide/perf/xgene-pmu.rst

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 ================================================
  2 APM X-Gene SoC Performance Monitoring Unit (PMU)
  3 ================================================
  4 
  5 X-Gene SoC PMU consists of various independent system device PMUs such as
  6 L3 cache(s), I/O bridge(s), memory controller bridge(s) and memory
  7 controller(s). These PMU devices are loosely architected to follow the
  8 same model as the PMU for ARM cores. The PMUs share the same top level
  9 interrupt and status CSR region.
 10 
 11 PMU (perf) driver
 12 -----------------
 13 
 14 The xgene-pmu driver registers several perf PMU drivers. Each of the perf
 15 driver provides description of its available events and configuration options
 16 in sysfs, see /sys/bus/event_source/devices/<l3cX/iobX/mcbX/mcX>/.
 17 
 18 The "format" directory describes format of the config (event ID),
 19 config1 (agent ID) fields of the perf_event_attr structure. The "events"
 20 directory provides configuration templates for all supported event types that
 21 can be used with perf tool. For example, "l3c0/bank-fifo-full/" is an
 22 equivalent of "l3c0/config=0x0b/".
 23 
 24 Most of the SoC PMU has a specific list of agent ID used for monitoring
 25 performance of a specific datapath. For example, agents of a L3 cache can be
 26 a specific CPU or an I/O bridge. Each PMU has a set of 2 registers capable of
 27 masking the agents from which the request come from. If the bit with
 28 the bit number corresponding to the agent is set, the event is counted only if
 29 it is caused by a request from that agent. Each agent ID bit is inversely mapped
 30 to a corresponding bit in "config1" field. By default, the event will be
 31 counted for all agent requests (config1 = 0x0). For all the supported agents of
 32 each PMU, please refer to APM X-Gene User Manual.
 33 
 34 Each perf driver also provides a "cpumask" sysfs attribute, which contains a
 35 single CPU ID of the processor which will be used to handle all the PMU events.
 36 
 37 Example for perf tool use::
 38 
 39  / # perf list | grep -e l3c -e iob -e mcb -e mc
 40    l3c0/ackq-full/                                    [Kernel PMU event]
 41  <...>
 42    mcb1/mcb-csw-stall/                                [Kernel PMU event]
 43 
 44  / # perf stat -a -e l3c0/read-miss/,mcb1/csw-write-request/ sleep 1
 45 
 46  / # perf stat -a -e l3c0/read-miss,config1=0xfffffffffffffffe/ sleep 1
 47 
 48 The driver does not support sampling, therefore "perf record" will
 49 not work. Per-task (without "-a") perf sessions are not supported.

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php