foss-for-synopsys-dwc-arc-processors / linux

Helpful resources for users & developers of Linux kernel for ARC
22 stars 13 forks source link

ARCv3: Add cluster PCTs driver #111

Closed xxkent closed 1 year ago

xxkent commented 1 year ago

Driver for supporting ARCv3 cluster performance measurement unit(PMU).

Examples of usage:

  1. "perf list" shows a list of availabe core and cluster events.
  2. "perf stat -a -e cycles,instructions,branches,NOCnumrd0,NOCnumwr0,CLNcycttl ls"
  3. "perf record -a -F 250 -e CLNcycttl ls && perf report > perf.report && vi perf.report"

Perf record/report works on SMP configuration but meant to be used on UP systems. On multiprocessor systems, it is impossible to determine which executable code is causing events in the cluster. So only one CPU program counter will be recorded for profiling report, and usually this CPU is 0.