[libvirt] [PATCH v4 0/4] perf: add more perf events support

Qiaowei Ren qiaowei.ren at intel.com
Sat Jul 16 08:15:09 UTC 2016


With current perf framework, this patchset refactor virPerfEventEnable()
for general purpose and add more perf events support based on this change,
including cache misses, cache references, cpu cycles, instrctions, etc..

Changes since v3:
  * separate the patch into 4 patches.
  * update virsh.pod for new perf events.
  * introduce a static attr table that would be able to convert the
    VIR_PERF_EVENT_* into their respective "attr.type" and "attr.config".

Qiaowei Ren (4):
  perf: rename qemuDomainGetStatsPerfRdt()
  perf: introduce a static attr table and refactor virPerfEventEnable()
    for general purpose
  perf: add more perf events support
  perf: add description for new events in virsh.pod

 docs/formatdomain.html.in                   |  24 ++++
 docs/schemas/domaincommon.rng               |   4 +
 include/libvirt/libvirt-domain.h            |  39 ++++++
 src/libvirt-domain.c                        |   8 ++
 src/qemu/qemu_driver.c                      |  23 ++--
 src/util/virperf.c                          | 176 +++++++++++++++++-----------
 src/util/virperf.h                          |  11 ++
 tests/genericxml2xmlindata/generic-perf.xml |   4 +
 tools/virsh.pod                             |   4 +
 9 files changed, 211 insertions(+), 82 deletions(-)

-- 
1.9.1




More information about the libvir-list mailing list