linux/tools/perf/bench
Davidlohr Bueso 0fb298cf95 perf bench: Add futex-requeue microbenchmark
Block a bunch of threads on a futex and requeue them on another, N at a
time.

This program is particularly useful to measure the latency of nthread
requeues without waking up any tasks -- thus mimicking a regular
futex_wait.

An example run:

  $ perf bench futex requeue -r 100 -t 64
  Run summary [PID 151011]: Requeuing 64 threads (from 0x7d15c4 to 0x7d15c8), 1 at a time.

  [Run 1]: Requeued 64 of 64 threads in 0.0400 ms
  [Run 2]: Requeued 64 of 64 threads in 0.0390 ms
  [Run 3]: Requeued 64 of 64 threads in 0.0400 ms
  ...
  [Run 100]: Requeued 64 of 64 threads in 0.0390 ms
  Requeued 64 of 64 threads in 0.0399 ms (+-0.37%)

Signed-off-by: Davidlohr Bueso <davidlohr@hp.com>
Acked-by: Darren Hart <dvhart@linux.intel.com>
Cc: Aswin Chandramouleeswaran <aswin@hp.com>
Cc: Darren Hart <dvhart@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jason Low <jason.low2@hp.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Scott J Norton <scott.norton@hp.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Waiman Long <Waiman.Long@hp.com>
Link: http://lkml.kernel.org/r/1387081917-9102-4-git-send-email-davidlohr@hp.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2014-03-14 11:20:44 -03:00
..
bench.h perf bench: Add futex-requeue microbenchmark 2014-03-14 11:20:44 -03:00
futex-hash.c perf bench: Add futex-hash microbenchmark 2014-03-14 11:20:43 -03:00
futex-requeue.c perf bench: Add futex-requeue microbenchmark 2014-03-14 11:20:44 -03:00
futex-wake.c perf bench: Add futex-wake microbenchmark 2014-03-14 11:20:43 -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 tools/perf: Standardize feature support define names to: HAVE_{FEATURE}_SUPPORT 2013-10-09 08:48:28 +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 tools/perf: Standardize feature support define names to: HAVE_{FEATURE}_SUPPORT 2013-10-09 08:48:28 +02:00
numa.c perf tools: Fix bench/numa.c for 32-bit build 2013-10-21 11:19:42 -03:00
sched-messaging.c perf tools: Use __maybe_used for unused variables 2012-09-11 12:19:15 -03:00
sched-pipe.c perf bench sched: Add --threaded option 2013-10-11 12:17:25 -03:00