Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1405354

Re: [PATCH v5 2/2] skb_array: ring test

From Jesper Dangaard Brouer <brouer@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH v5 2/2] skb_array: ring test
Date 2016-05-23 15:10 +0200
Message-ID <rBXMm-6ir-31@gated-at.bofh.it> (permalink)
References <rBVAR-4HP-9@gated-at.bofh.it> <rBVAR-4HP-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, 23 May 2016 13:43:46 +0300
"Michael S. Tsirkin" <mst@redhat.com> wrote:

> Add ringtest based unit test for skb array.
>
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
>  tools/virtio/ringtest/skb_array.c | 167 ++++++++++++++++++++++++++++++++++++++
>  tools/virtio/ringtest/Makefile    |   4 +-

Patch didn't apply cleanly to Makefile, as you also seems to have
"virtio_ring_inorder", I manually applied it.

I chdir to tools/virtio/ringtest/ and I could compile "skb_array",
BUT how do I use it??? (the README is not helpful)

What is the "output", are there any performance measurement results?


> diff --git a/tools/virtio/ringtest/Makefile b/tools/virtio/ringtest/Makefile
> index 6ba7455..87e58cf 100644
> --- a/tools/virtio/ringtest/Makefile
> +++ b/tools/virtio/ringtest/Makefile
> @@ -1,6 +1,6 @@
>  all:
>  
> -all: ring virtio_ring_0_9 virtio_ring_poll virtio_ring_inorder
> +all: ring virtio_ring_0_9 virtio_ring_poll virtio_ring_inorder skb_array
                                              ^^^^^^^^^^^^^^^^^^^
>  
>  CFLAGS += -Wall
>  CFLAGS += -pthread -O2 -ggdb
> @@ -8,6 +8,7 @@ LDFLAGS += -pthread -O2 -ggdb
>  
>  main.o: main.c main.h
>  ring.o: ring.c main.h
> +skb_array.o: skb_array.c main.h ../../../include/linux/skb_array.h
>  virtio_ring_0_9.o: virtio_ring_0_9.c main.h
>  virtio_ring_poll.o: virtio_ring_poll.c virtio_ring_0_9.c main.h
>  virtio_ring_inorder.o: virtio_ring_inorder.c virtio_ring_0_9.c main.h
> @@ -15,6 +16,7 @@ ring: ring.o main.o
>  virtio_ring_0_9: virtio_ring_0_9.o main.o
>  virtio_ring_poll: virtio_ring_poll.o main.o
>  virtio_ring_inorder: virtio_ring_inorder.o main.o
   ^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^
> +skb_array: skb_array.o main.o
>  clean:
>  	-rm main.o
>  	-rm ring.o ring


-- 
Best regards,
  Jesper Dangaard Brouer
  MSc.CS, Principal Kernel Engineer at Red Hat
  Author of http://www.iptv-analyzer.org
  LinkedIn: http://www.linkedin.com/in/brouer

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v5 2/2] skb_array: ring test "Michael S. Tsirkin" <mst@redhat.com> - 2016-05-23 12:50 +0200
  Re: [PATCH v5 2/2] skb_array: ring test Jesper Dangaard Brouer <brouer@redhat.com> - 2016-05-23 15:10 +0200
    Re: [PATCH v5 2/2] skb_array: ring test "Michael S. Tsirkin" <mst@redhat.com> - 2016-05-23 23:00 +0200
      Re: [PATCH v5 2/2] skb_array: ring test Jesper Dangaard Brouer <brouer@redhat.com> - 2016-05-24 12:30 +0200
        Re: [PATCH v5 2/2] skb_array: ring test "Michael S. Tsirkin" <mst@redhat.com> - 2016-05-24 12:40 +0200
        Re: [PATCH v5 2/2] skb_array: ring test "Michael S. Tsirkin" <mst@redhat.com> - 2016-05-24 14:00 +0200
        Re: [PATCH v5 2/2] skb_array: ring test "Michael S. Tsirkin" <mst@redhat.com> - 2016-05-24 14:20 +0200
        Re: [PATCH v5 2/2] skb_array: ring test Jesper Dangaard Brouer <brouer@redhat.com> - 2016-05-24 19:10 +0200
          Re: [PATCH v5 2/2] skb_array: ring test "Michael S. Tsirkin" <mst@redhat.com> - 2016-05-24 22:40 +0200

csiph-web