Lines Matching defs:cpumode
693 struct map *thread__find_map(struct thread *thread, u8 cpumode, u64 addr,
705 al->cpumode = cpumode;
711 if (cpumode == PERF_RECORD_MISC_KERNEL && perf_host) {
715 } else if (cpumode == PERF_RECORD_MISC_USER && perf_host) {
717 } else if (cpumode == PERF_RECORD_MISC_GUEST_KERNEL && perf_guest) {
721 } else if (cpumode == PERF_RECORD_MISC_GUEST_USER && perf_guest) {
726 if ((cpumode == PERF_RECORD_MISC_GUEST_USER ||
727 cpumode == PERF_RECORD_MISC_GUEST_KERNEL) &&
730 if ((cpumode == PERF_RECORD_MISC_USER ||
731 cpumode == PERF_RECORD_MISC_KERNEL) &&
752 * For branch stacks or branch samples, the sample cpumode might not be correct
756 struct map *thread__find_map_fb(struct thread *thread, u8 cpumode, u64 addr,
759 struct map *map = thread__find_map(thread, cpumode, addr, al);
761 u8 addr_cpumode = machine__addr_cpumode(machine, cpumode, addr);
763 if (map || addr_cpumode == cpumode)
769 struct symbol *thread__find_symbol(struct thread *thread, u8 cpumode,
773 if (thread__find_map(thread, cpumode, addr, al))
778 struct symbol *thread__find_symbol_fb(struct thread *thread, u8 cpumode,
782 if (thread__find_map_fb(thread, cpumode, addr, al))
818 thread__find_map(thread, sample->cpumode, sample->ip, al);
926 thread__find_map_fb(thread, sample->cpumode, sample->addr, al);