linux_dsm_epyc7002/tools/perf/bench
Davidlohr Bueso e19685ed24 perf bench futex: Sanitize -q option in requeue
When given the number of threads to requeue at once by user input,
there's always the risk of this value being larger than the total number
of threads.  This doesn't make any sense, and the kernel can easily deal
with such sort of situations, hence no big deal. We should however
prevent bogus output such as:

./perf bench --repeat 2 futex requeue -q 10
Run summary [PID 22210]: Requeuing 4 threads (from [private] 0x99ef3c to 0x99ef38), 10 at a time.

[Run 1]: Requeued 10 of 4 threads in 0.0040 ms
[Run 2]: Requeued 10 of 4 threads in 0.0030 ms
Requeued 10 of 4 threads in 0.0035 ms (+-14.29%)

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Cc: Davidlohr Bueso <dbueso@suse.de>
Link: http://lkml.kernel.org/r/1412008868-22328-2-git-send-email-dave@stgolabs.net
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2014-09-29 15:43:26 -03:00
..
bench.h perf bench: Add --repeat option 2014-06-19 16:13:15 -03:00
futex-hash.c perf bench futex: Support operations for shared futexes 2014-09-29 15:43:21 -03:00
futex-requeue.c perf bench futex: Sanitize -q option in requeue 2014-09-29 15:43:26 -03:00
futex-wake.c perf bench futex: Support operations for shared futexes 2014-09-29 15:43:21 -03:00
futex.h perf bench: Add futex-requeue microbenchmark 2014-03-14 11:20:44 -03:00
mem-memcpy-arch.h tools/perf: Standardize feature support define names to: HAVE_{FEATURE}_SUPPORT 2013-10-09 08:48:28 +02:00
mem-memcpy-x86-64-asm-def.h perf bench: Also allow measuring alternative memcpy implementations 2012-01-24 19:51:01 -02:00
mem-memcpy-x86-64-asm.S Merge branch 'perf/urgent' into perf/core 2012-02-06 19:11:02 -02:00
mem-memcpy.c perf tools: Enable close-on-exec flag on perf file descriptor 2014-07-18 09:09:34 +02:00
mem-memset-arch.h tools/perf: Standardize feature support define names to: HAVE_{FEATURE}_SUPPORT 2013-10-09 08:48:28 +02:00
mem-memset-x86-64-asm-def.h perf bench: Also allow measuring memset() 2012-01-24 20:25:32 -02:00
mem-memset-x86-64-asm.S perf tool: Fix perf stack to non executable on x86_64 2012-02-06 19:14:17 -02:00
mem-memset.c perf tools: Enable close-on-exec flag on perf file descriptor 2014-07-18 09:09:34 +02:00
numa.c Merge branch 'perf-core-for-mingo' into perf/urgent 2014-04-14 16:45:39 +02:00
sched-messaging.c perf tools: Don't include sys/poll.h directly 2014-09-17 17:08:09 -03:00
sched-pipe.c perf bench sched: Add --threaded option 2013-10-11 12:17:25 -03:00