perf bench futex: Call the futex syscall from a function
authorAlistair Francis <alistair.francis@wdc.com>
Fri, 22 Oct 2021 01:33:40 +0000 (11:33 +1000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 27 Oct 2021 23:54:00 +0000 (20:54 -0300)
commitfec5c3a5155911b750753975c425a24ce70d06cf
treef5a9dc0e504dcfaa87fda4cf2c5aa115f4f63671
parent624ff63abfd368fef5fa18ce34e025bc4e37dee5
perf bench futex: Call the futex syscall from a function

In preparation for a more complex futex() function let's convert the
current macro into two functions. We need two functions to avoid
compiler failures as the macro is overloaded.

This will allow us to include pre-processor conditionals in the futex
syscall functions.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Acked-by: Davidlohr Bueso <dbueso@suse.de>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alistair Francis <alistair23@gmail.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Atish Patra <atish.patra@wdc.com>
Cc: Darren Hart <dvhart@infradead.org>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-riscv@lists.infradead.org
Link: http://lore.kernel.org/lkml/20211022013343.2262938-1-alistair.francis@opensource.wdc.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/bench/futex.h