]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite1abcaf2459860259664dcf8a10f9c7a9fc2f714
tree08e481b78056b0e996ae53efad2136b5c6ef576b
parentca24cff5b0a0f7acd6afef08702cd4a7c26e56eb
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