Lines Matching refs:al

485 		struct addr_location al;  in perf_event__fprintf_text_poke()  local
487 al.map = maps__find(&machine->kmaps, tp->addr); in perf_event__fprintf_text_poke()
488 if (al.map && map__load(al.map) >= 0) { in perf_event__fprintf_text_poke()
489 al.addr = al.map->map_ip(al.map, tp->addr); in perf_event__fprintf_text_poke()
490 al.sym = map__find_symbol(al.map, al.addr); in perf_event__fprintf_text_poke()
491 if (al.sym) in perf_event__fprintf_text_poke()
492 ret += symbol__fprintf_symname_offs(al.sym, &al, fp); in perf_event__fprintf_text_poke()
571 struct addr_location *al) in thread__find_map() argument
577 al->maps = maps; in thread__find_map()
578 al->thread = thread; in thread__find_map()
579 al->addr = addr; in thread__find_map()
580 al->cpumode = cpumode; in thread__find_map()
581 al->filtered = 0; in thread__find_map()
584 al->map = NULL; in thread__find_map()
589 al->level = 'k'; in thread__find_map()
590 al->maps = maps = &machine->kmaps; in thread__find_map()
593 al->level = '.'; in thread__find_map()
595 al->level = 'g'; in thread__find_map()
596 al->maps = maps = &machine->kmaps; in thread__find_map()
599 al->level = 'u'; in thread__find_map()
601 al->level = 'H'; in thread__find_map()
602 al->map = NULL; in thread__find_map()
607 al->filtered |= (1 << HIST_FILTER__GUEST); in thread__find_map()
611 al->filtered |= (1 << HIST_FILTER__HOST); in thread__find_map()
616 al->map = maps__find(maps, al->addr); in thread__find_map()
617 if (al->map != NULL) { in thread__find_map()
623 map__load(al->map); in thread__find_map()
624 al->addr = al->map->map_ip(al->map, al->addr); in thread__find_map()
627 return al->map; in thread__find_map()
636 struct addr_location *al) in thread__find_map_fb() argument
638 struct map *map = thread__find_map(thread, cpumode, addr, al); in thread__find_map_fb()
645 return thread__find_map(thread, addr_cpumode, addr, al); in thread__find_map_fb()
649 u64 addr, struct addr_location *al) in thread__find_symbol() argument
651 al->sym = NULL; in thread__find_symbol()
652 if (thread__find_map(thread, cpumode, addr, al)) in thread__find_symbol()
653 al->sym = map__find_symbol(al->map, al->addr); in thread__find_symbol()
654 return al->sym; in thread__find_symbol()
658 u64 addr, struct addr_location *al) in thread__find_symbol_fb() argument
660 al->sym = NULL; in thread__find_symbol_fb()
661 if (thread__find_map_fb(thread, cpumode, addr, al)) in thread__find_symbol_fb()
662 al->sym = map__find_symbol(al->map, al->addr); in thread__find_symbol_fb()
663 return al->sym; in thread__find_symbol_fb()
683 int machine__resolve(struct machine *machine, struct addr_location *al, in machine__resolve() argument
693 thread__find_map(thread, sample->cpumode, sample->ip, al); in machine__resolve()
695 al->map ? al->map->dso->long_name : in machine__resolve()
696 al->level == 'H' ? "[hypervisor]" : "<not found>"); in machine__resolve()
699 al->filtered |= (1 << HIST_FILTER__THREAD); in machine__resolve()
701 al->sym = NULL; in machine__resolve()
702 al->cpu = sample->cpu; in machine__resolve()
703 al->socket = -1; in machine__resolve()
704 al->srcline = NULL; in machine__resolve()
706 if (al->cpu >= 0) { in machine__resolve()
710 al->socket = env->cpu[al->cpu].socket_id; in machine__resolve()
713 if (al->map) { in machine__resolve()
714 struct dso *dso = al->map->dso; in machine__resolve()
722 al->filtered |= (1 << HIST_FILTER__DSO); in machine__resolve()
725 al->sym = map__find_symbol(al->map, al->addr); in machine__resolve()
727 al->filtered |= (1 << HIST_FILTER__DSO); in machine__resolve()
735 if (al->sym) { in machine__resolve()
737 al->sym->name); in machine__resolve()
739 if (!ret && al->sym) { in machine__resolve()
741 al->map->unmap_ip(al->map, al->sym->start)); in machine__resolve()
745 if (!ret && symbol_conf.addr_list && al->map) { in machine__resolve()
746 unsigned long addr = al->map->unmap_ip(al->map, al->addr); in machine__resolve()
757 al->filtered |= (1 << HIST_FILTER__SYMBOL); in machine__resolve()
769 void addr_location__put(struct addr_location *al) in addr_location__put() argument
771 thread__zput(al->thread); in addr_location__put()
795 void thread__resolve(struct thread *thread, struct addr_location *al, in thread__resolve() argument
798 thread__find_map_fb(thread, sample->cpumode, sample->addr, al); in thread__resolve()
800 al->cpu = sample->cpu; in thread__resolve()
801 al->sym = NULL; in thread__resolve()
803 if (al->map) in thread__resolve()
804 al->sym = map__find_symbol(al->map, al->addr); in thread__resolve()