[libvirt] [PATCH] perf: add one more perf event support
Peter Krempa
pkrempa at redhat.com
Tue Dec 6 11:07:18 UTC 2016
On Tue, Dec 06, 2016 at 15:52:08 +0530, Nitesh Konkar wrote:
> With current perf framework, this patch adds support and documentation
> for branch instructions perf event.
>
> Signed-off-by: Nitesh Konkar <nitkon12 at linux.vnet.ibm.com>
> ---
> docs/formatdomain.html.in | 6 ++++
> docs/schemas/domaincommon.rng | 1 +
> include/libvirt/libvirt-domain.h | 10 +++++++
> src/libvirt-domain.c | 38 +++++++++++++------------
> src/qemu/qemu_driver.c | 1 +
> src/util/virperf.c | 6 +++-
> src/util/virperf.h | 9 +++---
> tests/genericxml2xmlindata/generic-perf.xml | 1 +
> tools/virsh.pod | 43 +++++++++++++++--------------
> 9 files changed, 72 insertions(+), 43 deletions(-)
>
> diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
> index 6bd02cc..259b2c6 100644
> --- a/docs/formatdomain.html.in
> +++ b/docs/formatdomain.html.in
> @@ -1927,6 +1927,7 @@
> <event name='instructions' enabled='yes'/>
> <event name='cache_references' enabled='no'/>
> <event name='cache_misses' enabled='no'/>
> + <event name='branch_instructions' enabled='no'/>
> </perf>
> ...
> </pre>
> @@ -1972,6 +1973,11 @@
> <td>the count of cache misses by applications running on the platform</td>
> <td><code>perf.cache_misses</code></td>
> </tr>
> + <tr>
> + <td><code>hardware_instructions</code></td>
> + <td>the count of hardware instructions by applications running on the platform</td>
> + <td><code>perf.hardware_instructions</code></td>
> + </tr>
> </table>
The two sections above reference a different name. Similarly to the rest
of the code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20161206/1b4916d9/attachment-0001.sig>
More information about the libvir-list
mailing list