futex: Add benchmark for futexes

Plug futex bench into mmtests. Specifically, introduce 4 new drivers:
  o futexbench-common: run all futexbench workloads.
  o futexbench-<workload> : where <workload> = hash, wake, requeue

Combination of workloads can be passed with the --workload parameter.
Given that the futex benchmarks already uses good defaults (num threads
and run repeats), reports can safely rely on the final avg without
any further processing/statistics. Furthermore, add the new benchmark
to the 'configs/config-default' file.

Sample output with compare-kernels.sh (16 threads, not too interesting):

futexbench-common

                                    3.17.0-rc7            3.17.0-rc7
                                  next-20141002
Tput hash (16 threads)     2594770.00 (  0.00%)  2587673.00 ( -0.27%)
Tput wake (16 threads)           0.03 (  0.00%)        0.03 ( -5.37%)
Tput requeue (16 threads)        0.01 (  0.00%)        0.01 (-15.44%)

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
futex: Move futex benchmark into separate configuration

Signed-off-by: Mel Gorman <mgorman@suse.de>
futex: Fix futexbench templates

The templates could not be used for generating the scripts in shellpacks/.
It looks like the scripts were fixed up manually after they were initially
created. This patch fixes up the templates a bit.

Signed-off-by: Mel Gorman <mgorman@suse.de>
futex: Fix tab vs whitespace damage

Signed-off-by: Mel Gorman <mgorman@suse.de>
futex: Correct typo on Futexbenchwake reporting modules

Signed-off-by: Mel Gorman <mgorman@suse.de>
futexbench: Disable graphical reporting of results

Currently completely broken.

Signed-off-by: Mel Gorman <mgorman@suse.de>
summarise: Move Cputime to new naming scheme

Signed-off-by: Mel Gorman <mgorman@suse.de>
summarise: Convert existing DATA_OPSSEC extraction scripts to common helpers

Signed-off-by: Mel Gorman <mgorman@suse.de>
summarise: Convert existing WALLTIME_VARIABLE extraction scripts to common helpers

Signed-off-by: Mel Gorman <mgorman@suse.de>
summarise: Convert most WALLTIME extraction scripts to common helpers

Signed-off-by: Mel Gorman <mgorman@suse.de>
summarise: Convert most THROUGHPUT extraction scripts to common helpers

Signed-off-by: Mel Gorman <mgorman@suse.de>
summarise: Convert misc extraction scripts to common helpers

Remaining scripts after this need special handling and/or splitting.

Signed-off-by: Mel Gorman <mgorman@suse.de>
arraysmash: Delete

It's never shown anything useful and was only part of a test-case
reproduction that battered the system to pieces but was shown to not be
representative.

Signed-off-by: Mel Gorman <mgorman@suse.de>
summarise: Convert cputimes to common units

Signed-off-by: Mel Gorman <mgorman@suse.de>
summarise: Remove obsolete starve reporting

Signed-off-by: Mel Gorman <mgorman@suse.de>
summarise: Convert SummariseVariableops to report time

All users of it are currently focused on time so update the units to
reflect that.

Signed-off-by: Mel Gorman <mgorman@suse.de>
summarise: Use proper units for most of the Singleops extraction scripts

Signed-off-by: Mel Gorman <mgorman@suse.de>
harmmean: Add helper to calculate harmonic mean

Signed-off-by: Mel Gorman <mgorman@suse.de>
summarise: Distinguish when harmonic or arithmetic mean should be used

Signed-off-by: Mel Gorman <mgorman@suse.de>
Merge branch 'unify-reporting'