[PATCH 3/4] perf bench: Modify builtin-bench.c for new subsystem "mem"

From: Hitoshi Mitake
Date: Thu Nov 12 2009 - 23:23:46 EST


This patch modifies builtin-bench.c to make new subsystem
"mem" executable.

Signed-off-by: Hitoshi Mitake <mitake@xxxxxxxxxxxxxxxxxxxxx>
Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
Cc: Paul Mackerras <paulus@xxxxxxxxx>
Cc: Frederic Weisbecker <fweisbec@xxxxxxxxx>
Cc: Ling Ma <ling.ma@xxxxxxxxx>
---
tools/perf/builtin-bench.c | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/tools/perf/builtin-bench.c b/tools/perf/builtin-bench.c
index 90c39ba..0e58fdf 100644
--- a/tools/perf/builtin-bench.c
+++ b/tools/perf/builtin-bench.c
@@ -12,7 +12,7 @@
*
* Available subsystem list:
* sched ... scheduler and IPC mechanism
- *
+ * mem ... memory access performance
*/

#include "perf.h"
@@ -43,6 +43,15 @@ static struct bench_suite sched_suites[] = {
NULL }
};

+static struct bench_suite mem_suites[] = {
+ { "memcpy",
+ "Simple memory copy in various ways",
+ bench_mem_memcpy },
+ { NULL,
+ NULL,
+ NULL }
+};
+
struct bench_subsys {
const char *name;
const char *summary;
@@ -53,7 +62,9 @@ static struct bench_subsys subsystems[] = {
{ "sched",
"scheduler and IPC mechanism",
sched_suites },
+ { "mem",
+ "memory access performance",
+ mem_suites },
{ NULL,
NULL,
NULL }
--
1.6.5.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/