diff options
Diffstat (limited to 'tools/perf/tests/vmlinux-kallsyms.c')
-rw-r--r-- | tools/perf/tests/vmlinux-kallsyms.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tools/perf/tests/vmlinux-kallsyms.c b/tools/perf/tests/vmlinux-kallsyms.c index 2bd13edcbc17..3d9088003a5b 100644 --- a/tools/perf/tests/vmlinux-kallsyms.c +++ b/tools/perf/tests/vmlinux-kallsyms.c | |||
@@ -26,7 +26,6 @@ int test__vmlinux_matches_kallsyms(void) | |||
26 | struct map *kallsyms_map, *vmlinux_map; | 26 | struct map *kallsyms_map, *vmlinux_map; |
27 | struct machine kallsyms, vmlinux; | 27 | struct machine kallsyms, vmlinux; |
28 | enum map_type type = MAP__FUNCTION; | 28 | enum map_type type = MAP__FUNCTION; |
29 | struct ref_reloc_sym ref_reloc_sym = { .name = "_stext", }; | ||
30 | u64 mem_start, mem_end; | 29 | u64 mem_start, mem_end; |
31 | 30 | ||
32 | /* | 31 | /* |
@@ -70,14 +69,6 @@ int test__vmlinux_matches_kallsyms(void) | |||
70 | */ | 69 | */ |
71 | kallsyms_map = machine__kernel_map(&kallsyms, type); | 70 | kallsyms_map = machine__kernel_map(&kallsyms, type); |
72 | 71 | ||
73 | sym = map__find_symbol_by_name(kallsyms_map, ref_reloc_sym.name, NULL); | ||
74 | if (sym == NULL) { | ||
75 | pr_debug("dso__find_symbol_by_name "); | ||
76 | goto out; | ||
77 | } | ||
78 | |||
79 | ref_reloc_sym.addr = UM(sym->start); | ||
80 | |||
81 | /* | 72 | /* |
82 | * Step 5: | 73 | * Step 5: |
83 | * | 74 | * |
@@ -89,7 +80,6 @@ int test__vmlinux_matches_kallsyms(void) | |||
89 | } | 80 | } |
90 | 81 | ||
91 | vmlinux_map = machine__kernel_map(&vmlinux, type); | 82 | vmlinux_map = machine__kernel_map(&vmlinux, type); |
92 | map__kmap(vmlinux_map)->ref_reloc_sym = &ref_reloc_sym; | ||
93 | 83 | ||
94 | /* | 84 | /* |
95 | * Step 6: | 85 | * Step 6: |