[PATCH net-next 0/2] refactor the ringtest testing for ptr_ring

From: Yunsheng Lin
Date: Sun Jul 04 2021 - 23:58:23 EST


tools/include/* have a lot of abstract layer for building
kernel code from userspace, so reuse or add the abstract
layer in tools/include/ to build the ptr_ring for ringtest
testing.

The same abstract layer can be used to build the ptr_ring
for ptr_ring benchmark app too, see [1].

1. https://lkml.org/lkml/2021/7/1/275

Yunsheng Lin (2):
tools: add missing infrastructure for building ptr_ring.h
tools/virtio: use common infrastructure to build ptr_ring.h

tools/include/asm/cache.h | 56 ++++++++++++++++++++
tools/include/asm/processor.h | 36 +++++++++++++
tools/include/generated/autoconf.h | 1 +
tools/include/linux/align.h | 15 ++++++
tools/include/linux/cache.h | 87 +++++++++++++++++++++++++++++++
tools/include/linux/gfp.h | 4 ++
tools/include/linux/slab.h | 46 +++++++++++++++++
tools/include/linux/spinlock.h | 2 -
tools/virtio/ringtest/Makefile | 2 +-
tools/virtio/ringtest/main.h | 100 +++---------------------------------
tools/virtio/ringtest/ptr_ring.c | 102 ++-----------------------------------
11 files changed, 257 insertions(+), 194 deletions(-)
create mode 100644 tools/include/asm/cache.h
create mode 100644 tools/include/asm/processor.h
create mode 100644 tools/include/generated/autoconf.h
create mode 100644 tools/include/linux/align.h
create mode 100644 tools/include/linux/cache.h
create mode 100644 tools/include/linux/slab.h

--
2.7.4