search for: virtio_blk_stat

Displaying 4 results from an estimated 4 matches for "virtio_blk_stat".

2011 Aug 16
1
[PATCH] virtio-blk: Add stats VQ to collect information about devices
...rtqueue *vq; + struct virtqueue *vq, *stats_vq; /* The disk structure for the kernel. */ struct gendisk *disk; @@ -35,6 +35,10 @@ struct virtio_blk /* What host tells us, plus 2 for header & tailer. */ unsigned int sg_elems; + /* Block statistics */ + int need_stats_update; + struct virtio_blk_stat stats[VIRTIO_BLK_S_NR]; + /* Scatterlist: can be too big for stack. */ struct scatterlist sg[/*sg_elems*/]; }; @@ -48,6 +52,75 @@ struct virtblk_req u8 status; }; +static inline void update_stat(struct virtio_blk *vb, int idx, + u16 tag, u64 val) +{ + BUG_ON(idx >= VIRTIO_BLK_...
2011 Aug 16
1
[PATCH] virtio-blk: Add stats VQ to collect information about devices
...rtqueue *vq; + struct virtqueue *vq, *stats_vq; /* The disk structure for the kernel. */ struct gendisk *disk; @@ -35,6 +35,10 @@ struct virtio_blk /* What host tells us, plus 2 for header & tailer. */ unsigned int sg_elems; + /* Block statistics */ + int need_stats_update; + struct virtio_blk_stat stats[VIRTIO_BLK_S_NR]; + /* Scatterlist: can be too big for stack. */ struct scatterlist sg[/*sg_elems*/]; }; @@ -48,6 +52,75 @@ struct virtblk_req u8 status; }; +static inline void update_stat(struct virtio_blk *vb, int idx, + u16 tag, u64 val) +{ + BUG_ON(idx >= VIRTIO_BLK_...
2011 Aug 18
0
[PATCH] virtio-blk: Update spec with new stats vq
...ee backwards compatibility, unsupported statistics should be + omitted. +\end_layout + +\begin_deeper +\begin_layout Standard + +\change_inserted 2090695081 1313646835 +\begin_inset listings +inline false +status open + +\begin_layout Plain Layout + +\change_inserted 2090695081 1313646940 + +struct virtio_blk_stat { +\end_layout + +\begin_layout Plain Layout + +\change_inserted 2090695081 1313651887 + +#define VIRTIO_BLK_S_READ_IO 0 +\end_layout + +\begin_layout Plain Layout + +\change_inserted 2090695081 1313651942 + +#define VIRTIO_BLK_S_READ_MERGES 1 +\end_layout + +\begin_layout Plain Layout + +\change_i...
2011 Aug 18
0
[PATCH] virtio-blk: Update spec with new stats vq
...ee backwards compatibility, unsupported statistics should be + omitted. +\end_layout + +\begin_deeper +\begin_layout Standard + +\change_inserted 2090695081 1313646835 +\begin_inset listings +inline false +status open + +\begin_layout Plain Layout + +\change_inserted 2090695081 1313646940 + +struct virtio_blk_stat { +\end_layout + +\begin_layout Plain Layout + +\change_inserted 2090695081 1313651887 + +#define VIRTIO_BLK_S_READ_IO 0 +\end_layout + +\begin_layout Plain Layout + +\change_inserted 2090695081 1313651942 + +#define VIRTIO_BLK_S_READ_MERGES 1 +\end_layout + +\begin_layout Plain Layout + +\change_i...