qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/4] Extract block accounting statistic code in it's own module
@ 2014-09-05 13:46 Benoît Canet
  2014-09-05 13:46 ` [Qemu-devel] [PATCH 1/4] block: Extract the BlockAcctStats structure Benoît Canet
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Benoît Canet @ 2014-09-05 13:46 UTC (permalink / raw)
  To: qemu-devel; +Cc: Benoît Canet

With the need to add new statistics it's better to modularize asap the I/O
block accounting code.

This series takes care of extracting this code and making it independant of the
BlockDriverState structure.

Compile tested and basically runtime tested excepted for the xen_disk.c backend.

Best regards

Benoît

Benoît Canet (4):
  block: Extract the BlockAcctStats structure
  block: Extract the block accounting code
  block: rename BlockAcctType members to start with BLOCK_ instead of
    BDRV_
  block: Make the block accounting functions operate on BlockAcctStats

 block.c                        | 37 ++++++++++-----------------
 block/Makefile.objs            |  1 +
 block/accounting.c             | 54 +++++++++++++++++++++++++++++++++++++++
 block/qapi.c                   | 19 +++++++-------
 dma-helpers.c                  |  2 +-
 hw/block/nvme.c                |  4 +--
 hw/block/virtio-blk.c          | 15 ++++++-----
 hw/block/xen_disk.c            |  8 +++---
 hw/ide/ahci.c                  |  7 +++---
 hw/ide/atapi.c                 | 18 +++++++------
 hw/ide/core.c                  | 24 ++++++++++--------
 hw/ide/macio.c                 | 19 ++++++++------
 hw/scsi/scsi-disk.c            | 45 ++++++++++++++++++++-------------
 include/block/accounting.h     | 57 ++++++++++++++++++++++++++++++++++++++++++
 include/block/block.h          | 20 +++------------
 include/block/block_int.h      |  6 ++---
 include/hw/virtio/virtio-blk.h |  1 +
 include/sysemu/dma.h           |  1 +
 18 files changed, 225 insertions(+), 113 deletions(-)
 create mode 100644 block/accounting.c
 create mode 100644 include/block/accounting.h

-- 
2.1.0

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-09-09 10:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-05 13:46 [Qemu-devel] [PATCH 0/4] Extract block accounting statistic code in it's own module Benoît Canet
2014-09-05 13:46 ` [Qemu-devel] [PATCH 1/4] block: Extract the BlockAcctStats structure Benoît Canet
2014-09-05 13:46 ` [Qemu-devel] [PATCH 2/4] block: Extract the block accounting code Benoît Canet
2014-09-05 13:46 ` [Qemu-devel] [PATCH 3/4] block: rename BlockAcctType members to start with BLOCK_ instead of BDRV_ Benoît Canet
2014-09-05 13:46 ` [Qemu-devel] [PATCH 4/4] block: Make the block accounting functions operate on BlockAcctStats Benoît Canet
2014-09-09  9:56 ` [Qemu-devel] [PATCH 0/4] Extract block accounting statistic code in it's own module Kevin Wolf
2014-09-09 10:48   ` Benoît Canet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).