Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf tests: No need to set up ref_reloc_sym

Now that ref_reloc_sym is set up by machine__create_kernel_maps(), the
"vmlinux symtab matches kallsyms" test does have to do it.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Tested-by: Jiri Olsa <jolsa@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1391004884-10334-8-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Adrian Hunter and committed by
Arnaldo Carvalho de Melo
c080f727 a00d28cb

-10
-10
tools/perf/tests/vmlinux-kallsyms.c
··· 26 26 struct map *kallsyms_map, *vmlinux_map; 27 27 struct machine kallsyms, vmlinux; 28 28 enum map_type type = MAP__FUNCTION; 29 - struct ref_reloc_sym ref_reloc_sym = { .name = "_stext", }; 30 29 u64 mem_start, mem_end; 31 30 32 31 /* ··· 69 70 */ 70 71 kallsyms_map = machine__kernel_map(&kallsyms, type); 71 72 72 - sym = map__find_symbol_by_name(kallsyms_map, ref_reloc_sym.name, NULL); 73 - if (sym == NULL) { 74 - pr_debug("dso__find_symbol_by_name "); 75 - goto out; 76 - } 77 - 78 - ref_reloc_sym.addr = UM(sym->start); 79 - 80 73 /* 81 74 * Step 5: 82 75 * ··· 80 89 } 81 90 82 91 vmlinux_map = machine__kernel_map(&vmlinux, type); 83 - map__kmap(vmlinux_map)->ref_reloc_sym = &ref_reloc_sym; 84 92 85 93 /* 86 94 * Step 6: