[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4C241140.9090008@cn.fujitsu.com>
Date: Fri, 25 Jun 2010 10:15:28 +0800
From: Gui Jianfeng <guijianfeng@...fujitsu.com>
To: Arnaldo Carvalho de Melo <acme@...hat.com>,
Yanmin Zhang <yanmin_zhang@...ux.intel.com>
CC: mingo@...e.hu,
linux kernel mailing list <linux-kernel@...r.kernel.org>,
a.p.zijlstra@...llo.nl
Subject: [PATCH 1/3] perf kvm: Get rid of unused guest_kallsyms
guest_kallsyms is redundant here, remove it.
Signed-off-by: Gui Jianfeng <guijianfeng@...fujitsu.com>
---
tools/perf/builtin-record.c | 9 ---------
1 files changed, 0 insertions(+), 9 deletions(-)
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c
index dc3435e..abaf0f8 100644
--- a/tools/perf/builtin-record.c
+++ b/tools/perf/builtin-record.c
@@ -439,8 +439,6 @@ static void atexit_header(void)
static void event__synthesize_guest_os(struct machine *machine, void *data)
{
int err;
- char *guest_kallsyms;
- char path[PATH_MAX];
struct perf_session *psession = data;
if (machine__is_host(machine))
@@ -460,13 +458,6 @@ static void event__synthesize_guest_os(struct machine *machine, void *data)
pr_err("Couldn't record guest kernel [%d]'s reference"
" relocation symbol.\n", machine->pid);
- if (machine__is_default_guest(machine))
- guest_kallsyms = (char *) symbol_conf.default_guest_kallsyms;
- else {
- sprintf(path, "%s/proc/kallsyms", machine->root_dir);
- guest_kallsyms = path;
- }
-
/*
* We use _stext for guest kernel because guest kernel's /proc/kallsyms
* have no _text sometimes.
--
1.6.5.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists