mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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:
committed by
John Ferlan
parent
6ef2c7e00f
commit
99cc3dc6a2
@@ -1950,6 +1950,7 @@
|
||||
<event name='cpu_clock' enabled='no'/>
|
||||
<event name='task_clock' enabled='no'/>
|
||||
<event name='page_faults' enabled='no'/>
|
||||
<event name='context_switches' enabled='no'/>
|
||||
</perf>
|
||||
...
|
||||
</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>
|
||||
|
||||
Reference in New Issue
Block a user