Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755795AbZKMEXg (ORCPT ); Thu, 12 Nov 2009 23:23:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755689AbZKMEXd (ORCPT ); Thu, 12 Nov 2009 23:23:33 -0500 Received: from ns.dcl.info.waseda.ac.jp ([133.9.216.194]:50398 "EHLO ns.dcl.info.waseda.ac.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755519AbZKMEXH (ORCPT ); Thu, 12 Nov 2009 23:23:07 -0500 From: Hitoshi Mitake To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, Hitoshi Mitake , Peter Zijlstra , Paul Mackerras , Frederic Weisbecker , Ling Ma Subject: [PATCH 3/4] perf bench: Modify builtin-bench.c for new subsystem "mem" Date: Fri, 13 Nov 2009 13:23:05 +0900 Message-Id: <1258086186-32317-4-git-send-email-mitake@dcl.info.waseda.ac.jp> X-Mailer: git-send-email 1.6.5.2 In-Reply-To: <1258086186-32317-1-git-send-email-mitake@dcl.info.waseda.ac.jp> References: <1258086186-32317-1-git-send-email-mitake@dcl.info.waseda.ac.jp> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1562 Lines: 59 This patch modifies builtin-bench.c to make new subsystem "mem" executable. Signed-off-by: Hitoshi Mitake Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Frederic Weisbecker Cc: Ling Ma --- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/