Re: [PATCH] perf: add one more perf event support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxx>
> ---
>  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 @@
>    &lt;event name='instructions' enabled='yes'/&gt;
>    &lt;event name='cache_references' enabled='no'/&gt;
>    &lt;event name='cache_misses' enabled='no'/&gt;
> +  &lt;event name='branch_instructions' enabled='no'/&gt;
>  &lt;/perf&gt;
>  ...
>  </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.

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux