Lines Matching refs:al

511 		struct addr_location al;
513 addr_location__init(&al);
514 al.map = maps__find(machine__kernel_maps(machine), tp->addr);
515 if (al.map && map__load(al.map) >= 0) {
516 al.addr = map__map_ip(al.map, tp->addr);
517 al.sym = map__find_symbol(al.map, al.addr);
518 if (al.sym)
519 ret += symbol__fprintf_symname_offs(al.sym, &al, fp);
521 addr_location__exit(&al);
599 struct addr_location *al)
605 maps__zput(al->maps);
606 map__zput(al->map);
607 thread__zput(al->thread);
608 al->thread = thread__get(thread);
610 al->addr = addr;
611 al->cpumode = cpumode;
612 al->filtered = 0;
618 al->level = 'k';
622 al->level = '.';
624 al->level = 'g';
628 al->level = 'u';
630 al->level = 'H';
635 al->filtered |= (1 << HIST_FILTER__GUEST);
639 al->filtered |= (1 << HIST_FILTER__HOST);
643 al->maps = maps__get(maps);
644 al->map = maps__find(maps, al->addr);
645 if (al->map != NULL) {
651 map__load(al->map);
652 al->addr = map__map_ip(al->map, al->addr);
655 return al->map;
664 struct addr_location *al)
666 struct map *map = thread__find_map(thread, cpumode, addr, al);
673 return thread__find_map(thread, addr_cpumode, addr, al);
677 u64 addr, struct addr_location *al)
679 al->sym = NULL;
680 if (thread__find_map(thread, cpumode, addr, al))
681 al->sym = map__find_symbol(al->map, al->addr);
682 return al->sym;
686 u64 addr, struct addr_location *al)
688 al->sym = NULL;
689 if (thread__find_map_fb(thread, cpumode, addr, al))
690 al->sym = map__find_symbol(al->map, al->addr);
691 return al->sym;
708 * Callers need to drop the reference to al->thread, obtained in
711 int machine__resolve(struct machine *machine, struct addr_location *al,
725 thread__find_map(thread, sample->cpumode, sample->ip, al);
726 dso = al->map ? map__dso(al->map) : NULL;
730 : (al->level == 'H' ? "[hypervisor]" : "<not found>"));
733 al->filtered |= (1 << HIST_FILTER__THREAD);
738 al->sym = NULL;
739 al->cpu = sample->cpu;
740 al->socket = -1;
741 al->srcline = NULL;
743 if (al->cpu >= 0) {
747 al->socket = env->cpu[al->cpu].socket_id;
750 if (al->map) {
757 al->filtered |= (1 << HIST_FILTER__DSO);
760 al->sym = map__find_symbol(al->map, al->addr);
762 al->filtered |= (1 << HIST_FILTER__DSO);
770 if (al->sym) {
772 al->sym->name);
774 if (!ret && al->sym) {
776 map__unmap_ip(al->map, al->sym->start));
780 if (!ret && symbol_conf.addr_list && al->map) {
781 unsigned long addr = map__unmap_ip(al->map, al->addr);
792 al->filtered |= (1 << HIST_FILTER__SYMBOL);
819 void thread__resolve(struct thread *thread, struct addr_location *al,
822 thread__find_map_fb(thread, sample->cpumode, sample->addr, al);
824 al->cpu = sample->cpu;
825 al->sym = NULL;
827 if (al->map)
828 al->sym = map__find_symbol(al->map, al->addr);