smp test: memset benchmark

If all goes well, it prints some benchmark results (libc memset vs.
simple memset vs. parallelized simple memset vs. double-parallelized
simple memset) and exits with exit status 0.

If it doesn't go well, it tells what went wrong on stderr and exits
with a non-zero exit status.

Note that you'll also get a non-zero exit status if you run it on a
single-core box when all goes well -- since it's an SMP test, it
considers running things in a single thread an error (e.g. multiple
cores not being detected, e.g. because CONFIG_SMP is disabled in the
kernel).
1 file changed
tree: 3c19bb90202bd4b1b760a4526d65f376d63b4515
  1. smp.c