[PATCH 0/3] perf bench: Add new benchmark for futex subsystem

Hitoshi Mitake
2009-11-24T14:39:26Z

Hi folks, sorry for my very slow response...

I found that Darren's futextest contains Michel's test program now.
So I added it to 'perf bench' as sample.
If you like this style, I'd like to add rest part of futextest.

Example of use:
| % ./perf bench futex wait -t 48 -l 100000000
| # Running futex/wait benchmark...
| # Running 48 threads
| # Total number of iteration: 100000000
| 16233.763636 Kiter/sec
| 6.100000 user sec
| 0.000000 system sec
| 6.160000 wall sec
| 0.990260 cores
| % perf bench --format=simple futex wait
| 16207.455429

This patch series contains two typedefs (and one volatile).
I know typedef and volatile is not a thing to welcome.
But I judged these are not problematic things,
could you review this?

Hitoshi Mitake (3):
perf bench: Add wrappers for atomic operation of GCC
perf bench: Add new files for futex performance test
perf bench: Fix misc files to build files related to futex

tools/perf/Makefile | 1 +
tools/perf/bench/bench.h | 3 +-
tools/perf/bench/futex-wait.c | 218 ++++++++++++++++++++++++++
tools/perf/bench/futextest.h | 280 ++++++++++++++++++++++++++++++++++
tools/perf/builtin-bench.c | 16 ++-
tools/perf/util/include/asm/atomic.h | 91 +++++++++++
6 files changed, 606 insertions(+), 3 deletions(-)
create mode 100644 tools/perf/bench/futex-wait.c
create mode 100644 tools/perf/bench/futextest.h
create mode 100644 tools/perf/util/include/asm/atomic.h