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

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

Reply via email to