diff options
author | Gui Jianfeng <guijianfeng@cn.fujitsu.com> | 2010-06-24 22:15:28 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-06-25 06:28:21 -0400 |
commit | 830f4c803196eec181e209110885c4ac130f3805 (patch) | |
tree | 346220057659e06946257f1b4d031e25b06b2d9c /tools/perf | |
parent | 9f61d85fd0fe91f9a17a9f304d67e55f8ae38b2e (diff) |
perf kvm: Get rid of unused guest_kallsyms
guest_kallsyms is redundant here, remove it.
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Yanmin Zhang <yanmin_zhang@linux.intel.com>
LKML-Reference: <4C241140.9090008@cn.fujitsu.com>
Signed-off-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | 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 86b1c3b6264e..0df64088135f 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c | |||
@@ -445,8 +445,6 @@ static void atexit_header(void) | |||
445 | static void event__synthesize_guest_os(struct machine *machine, void *data) | 445 | static void event__synthesize_guest_os(struct machine *machine, void *data) |
446 | { | 446 | { |
447 | int err; | 447 | int err; |
448 | char *guest_kallsyms; | ||
449 | char path[PATH_MAX]; | ||
450 | struct perf_session *psession = data; | 448 | struct perf_session *psession = data; |
451 | 449 | ||
452 | if (machine__is_host(machine)) | 450 | if (machine__is_host(machine)) |
@@ -466,13 +464,6 @@ static void event__synthesize_guest_os(struct machine *machine, void *data) | |||
466 | pr_err("Couldn't record guest kernel [%d]'s reference" | 464 | pr_err("Couldn't record guest kernel [%d]'s reference" |
467 | " relocation symbol.\n", machine->pid); | 465 | " relocation symbol.\n", machine->pid); |
468 | 466 | ||
469 | if (machine__is_default_guest(machine)) | ||
470 | guest_kallsyms = (char *) symbol_conf.default_guest_kallsyms; | ||
471 | else { | ||
472 | sprintf(path, "%s/proc/kallsyms", machine->root_dir); | ||
473 | guest_kallsyms = path; | ||
474 | } | ||
475 | |||
476 | /* | 467 | /* |
477 | * We use _stext for guest kernel because guest kernel's /proc/kallsyms | 468 | * We use _stext for guest kernel because guest kernel's /proc/kallsyms |
478 | * have no _text sometimes. | 469 | * have no _text sometimes. |