perf: add cpu_clock software perf event support

This patch adds support and documentation for
the cpu_clock perf event.

Signed-off-by: Nitesh Konkar <nitkon12@linux.vnet.ibm.com>
This commit is contained in:
Nitesh Konkar
2017-02-23 20:25:30 +05:30
committed by John Ferlan
parent 62bc956786
commit f372a862ac
9 changed files with 33 additions and 1 deletions

View File

@@ -1947,6 +1947,7 @@
&lt;event name='stalled_cycles_frontend' enabled='no'/&gt;
&lt;event name='stalled_cycles_backend' enabled='no'/&gt;
&lt;event name='ref_cpu_cycles' enabled='no'/&gt;
&lt;event name='cpu_clock' enabled='no'/&gt;
&lt;/perf&gt;
...
</pre>
@@ -2025,6 +2026,13 @@
by applications running on the platform</td>
<td><code>perf.ref_cpu_cycles</code></td>
</tr>
<tr>
<td><code>cpu_clock</code></td>
<td>the count of cpu clock time, as measured by a monotonic
high-resolution per-CPU timer, by applications running on
the platform</td>
<td><code>perf.cpu_clock</code></td>
</tr>
</table>
<h3><a name="elementsDevices">Devices</a></h3>

View File

@@ -433,6 +433,7 @@
<value>stalled_cycles_frontend</value>
<value>stalled_cycles_backend</value>
<value>ref_cpu_cycles</value>
<value>cpu_clock</value>
</choice>
</attribute>
<attribute name="enabled">