Lines Matching refs:al
458 struct addr_location *al) in thread__find_map() argument
464 al->machine = machine; in thread__find_map()
465 al->thread = thread; in thread__find_map()
466 al->addr = addr; in thread__find_map()
467 al->cpumode = cpumode; in thread__find_map()
468 al->filtered = 0; in thread__find_map()
471 al->map = NULL; in thread__find_map()
476 al->level = 'k'; in thread__find_map()
480 al->level = '.'; in thread__find_map()
482 al->level = 'g'; in thread__find_map()
486 al->level = 'u'; in thread__find_map()
488 al->level = 'H'; in thread__find_map()
489 al->map = NULL; in thread__find_map()
494 al->filtered |= (1 << HIST_FILTER__GUEST); in thread__find_map()
498 al->filtered |= (1 << HIST_FILTER__HOST); in thread__find_map()
503 al->map = map_groups__find(mg, al->addr); in thread__find_map()
504 if (al->map != NULL) { in thread__find_map()
510 map__load(al->map); in thread__find_map()
511 al->addr = al->map->map_ip(al->map, al->addr); in thread__find_map()
514 return al->map; in thread__find_map()
523 struct addr_location *al) in thread__find_map_fb() argument
525 struct map *map = thread__find_map(thread, cpumode, addr, al); in thread__find_map_fb()
532 return thread__find_map(thread, addr_cpumode, addr, al); in thread__find_map_fb()
536 u64 addr, struct addr_location *al) in thread__find_symbol() argument
538 al->sym = NULL; in thread__find_symbol()
539 if (thread__find_map(thread, cpumode, addr, al)) in thread__find_symbol()
540 al->sym = map__find_symbol(al->map, al->addr); in thread__find_symbol()
541 return al->sym; in thread__find_symbol()
545 u64 addr, struct addr_location *al) in thread__find_symbol_fb() argument
547 al->sym = NULL; in thread__find_symbol_fb()
548 if (thread__find_map_fb(thread, cpumode, addr, al)) in thread__find_symbol_fb()
549 al->sym = map__find_symbol(al->map, al->addr); in thread__find_symbol_fb()
550 return al->sym; in thread__find_symbol_fb()
557 int machine__resolve(struct machine *machine, struct addr_location *al, in machine__resolve() argument
567 thread__find_map(thread, sample->cpumode, sample->ip, al); in machine__resolve()
569 al->map ? al->map->dso->long_name : in machine__resolve()
570 al->level == 'H' ? "[hypervisor]" : "<not found>"); in machine__resolve()
573 al->filtered |= (1 << HIST_FILTER__THREAD); in machine__resolve()
575 al->sym = NULL; in machine__resolve()
576 al->cpu = sample->cpu; in machine__resolve()
577 al->socket = -1; in machine__resolve()
578 al->srcline = NULL; in machine__resolve()
580 if (al->cpu >= 0) { in machine__resolve()
584 al->socket = env->cpu[al->cpu].socket_id; in machine__resolve()
587 if (al->map) { in machine__resolve()
588 struct dso *dso = al->map->dso; in machine__resolve()
596 al->filtered |= (1 << HIST_FILTER__DSO); in machine__resolve()
599 al->sym = map__find_symbol(al->map, al->addr); in machine__resolve()
601 al->filtered |= (1 << HIST_FILTER__DSO); in machine__resolve()
605 (!al->sym || !strlist__has_entry(symbol_conf.sym_list, in machine__resolve()
606 al->sym->name))) { in machine__resolve()
607 al->filtered |= (1 << HIST_FILTER__SYMBOL); in machine__resolve()
619 void addr_location__put(struct addr_location *al) in addr_location__put() argument
621 thread__zput(al->thread); in addr_location__put()
645 void thread__resolve(struct thread *thread, struct addr_location *al, in thread__resolve() argument
648 thread__find_map_fb(thread, sample->cpumode, sample->addr, al); in thread__resolve()
650 al->cpu = sample->cpu; in thread__resolve()
651 al->sym = NULL; in thread__resolve()
653 if (al->map) in thread__resolve()
654 al->sym = map__find_symbol(al->map, al->addr); in thread__resolve()