perf bench futex, requeue: Add --pi parameter
authorDavidlohr Bueso <dave@stgolabs.net>
Mon, 9 Aug 2021 04:33:01 +0000 (21:33 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 9 Aug 2021 15:00:27 +0000 (12:00 -0300)
commit46f815323b5a8f0e7156f50ea87c354424210e97
tree08e481b78056b0e996ae53efad2136b5c6ef576b
parent6f9661b25b1741b180bdaeb85853905078cfd9d8
perf bench futex, requeue: Add --pi parameter

This extends the program to measure WAIT_REQUEUE_PI+CMP_REQUEUE_PI
pairs, which are the underlying machinery behind priority-inheritance
aware condition variables. The defaults are the same as with the regular
non-pi version, requeueing one task at a time, with the exception that
PI will always wakeup the first waiter.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Cc: Davidlohr Bueso <dbueso@suse.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lore.kernel.org/lkml/20210809043301.66002-8-dave@stgolabs.net
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/bench/futex-requeue.c
tools/perf/bench/futex.h