level = '.';
map = thread__find_map(thread, ip);
if (map != NULL) {
-got_map:
ip = map->map_ip(map, ip);
sym = map__find_function(map, ip, symbol_filter);
} else {
* the "[vdso]" dso, but for now lets use the old
* trick of looking in the whole kernel symbol list.
*/
- if ((long long)ip < 0) {
- map = kernel_map__functions;
- goto got_map;
- }
+ if ((long long)ip < 0)
+ sym = kernel_maps__find_function(ip, &map,
+ symbol_filter);
}
dump_printf(" ...... dso: %s\n",
map ? map->dso->long_name : "<not found>");
unsigned int symbol__priv_size;
static int vmlinux_path__nr_entries;
static char **vmlinux_path;
+static struct map *kernel_map__functions;
static struct symbol_conf symbol_conf__defaults = {
.use_modules = true,
return ret;
}
-struct map *kernel_map__functions;
-
static void kernel_maps__insert(struct map *map)
{
maps__insert(&kernel_maps__functions, map);
int symbol__init(struct symbol_conf *conf);
extern struct list_head dsos__user, dsos__kernel;
-extern struct map *kernel_map__functions;
extern struct dso *vdso;
#endif /* __PERF_SYMBOL */