perf: add context_switches software perf event support

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

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

View File

@@ -1950,6 +1950,7 @@
&lt;event name='cpu_clock' enabled='no'/&gt;
&lt;event name='task_clock' enabled='no'/&gt;
&lt;event name='page_faults' enabled='no'/&gt;
&lt;event name='context_switches' enabled='no'/&gt;
&lt;/perf&gt;
...
</pre>
@@ -2049,6 +2050,12 @@
types of page faults</td>
<td><code>perf.page_faults</code></td>
</tr>
<tr>
<td><code>context_switches</code></td>
<td>the count of context switches by applications running on
the platform</td>
<td><code>perf.context_switches</code></td>
</tr>
</table>
<h3><a name="elementsDevices">Devices</a></h3>