Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1618485
| From | "Michael S. Tsirkin" <mst@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 3/3] ptr_ring: support testing different batching sizes |
| Date | 2017-04-07 08:00 +0200 |
| Message-ID | <ttv69-31Q-3@gated-at.bofh.it> (permalink) |
| References | <ttv69-31Q-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Use the param flag for that.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
tools/virtio/ringtest/ptr_ring.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/virtio/ringtest/ptr_ring.c b/tools/virtio/ringtest/ptr_ring.c
index 635b07b..7b22f1b 100644
--- a/tools/virtio/ringtest/ptr_ring.c
+++ b/tools/virtio/ringtest/ptr_ring.c
@@ -97,6 +97,9 @@ void alloc_ring(void)
{
int ret = ptr_ring_init(&array, ring_size, 0);
assert(!ret);
+ /* Hacky way to poke at ring internals. Useful for testing though. */
+ if (param)
+ array.batch = param;
}
/* guest side */
--
MST
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/3] ptr_ring: batch ring zeroing "Michael S. Tsirkin" <mst@redhat.com> - 2017-04-07 08:00 +0200 [PATCH 3/3] ptr_ring: support testing different batching sizes "Michael S. Tsirkin" <mst@redhat.com> - 2017-04-07 08:00 +0200 [PATCH 2/3] ringtest: support test specific parameters "Michael S. Tsirkin" <mst@redhat.com> - 2017-04-07 08:00 +0200 Re: [PATCH 1/3] ptr_ring: batch ring zeroing Jesper Dangaard Brouer <brouer@redhat.com> - 2017-04-08 14:20 +0200
csiph-web