2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-07 21:24:00 +08:00
linux-next/tools/virtio/ringtest
Halil Pasic 21f5eda9b8 tools/virtio/ringtest: fix run-on-all.sh for offline cpus
Since ef1b144d ("tools/virtio/ringtest: fix run-on-all.sh to work
without /dev/cpu") run-on-all.sh uses seq 0 $HOST_AFFINITY as the list
of ids of the CPUs to run the command on (assuming ids of online CPUs
are consecutive and start from 0), where $HOST_AFFINITY is the highest
CPU id in the system previously determined using lscpu.  This can fail
on systems with offline CPUs.

Instead let's use lscpu to determine the list of online CPUs.

Signed-off-by: Halil Pasic <pasic@linux.vnet.ibm.com>
Fixes: ef1b144d ("tools/virtio/ringtest: fix run-on-all.sh to work without
/dev/cpu")
Reviewed-by: Sascha Silbe <silbe@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
2017-01-19 23:46:31 +02:00
..
main.c ringtest: poll for new buffers once before updating event index 2016-10-31 00:21:43 +02:00
main.h ringtest: commonize implementation of poll_avail/poll_used 2016-10-31 00:21:43 +02:00
Makefile ringtest: use link-time optimization 2016-10-31 00:21:42 +02:00
noring.c ringtest: commonize implementation of poll_avail/poll_used 2016-10-31 00:21:43 +02:00
ptr_ring.c ringtest: commonize implementation of poll_avail/poll_used 2016-10-31 00:21:43 +02:00
README tools/virtio/ringtest: add usage example to README 2016-06-06 13:00:11 +03:00
ring.c ringtest: commonize implementation of poll_avail/poll_used 2016-10-31 00:21:43 +02:00
run-on-all.sh tools/virtio/ringtest: fix run-on-all.sh for offline cpus 2017-01-19 23:46:31 +02:00
virtio_ring_0_9.c ringtest: commonize implementation of poll_avail/poll_used 2016-10-31 00:21:43 +02:00
virtio_ring_inorder.c virtio: add inorder option 2016-05-22 19:44:12 +03:00
virtio_ring_poll.c

Partial implementation of various ring layouts, useful to tune virtio design.
Uses shared memory heavily.

Typical use:

# sh run-on-all.sh perf stat -r 10 --log-fd 1 -- ./ring