Lines Matching refs:cpumode
598 struct map *thread__find_map(struct thread *thread, u8 cpumode, u64 addr,
611 al->cpumode = cpumode;
617 if (cpumode == PERF_RECORD_MISC_KERNEL && perf_host) {
621 } else if (cpumode == PERF_RECORD_MISC_USER && perf_host) {
623 } else if (cpumode == PERF_RECORD_MISC_GUEST_KERNEL && perf_guest) {
627 } else if (cpumode == PERF_RECORD_MISC_GUEST_USER && perf_guest) {
632 if ((cpumode == PERF_RECORD_MISC_GUEST_USER ||
633 cpumode == PERF_RECORD_MISC_GUEST_KERNEL) &&
636 if ((cpumode == PERF_RECORD_MISC_USER ||
637 cpumode == PERF_RECORD_MISC_KERNEL) &&
659 * For branch stacks or branch samples, the sample cpumode might not be correct
663 struct map *thread__find_map_fb(struct thread *thread, u8 cpumode, u64 addr,
666 struct map *map = thread__find_map(thread, cpumode, addr, al);
668 u8 addr_cpumode = machine__addr_cpumode(machine, cpumode, addr);
670 if (map || addr_cpumode == cpumode)
676 struct symbol *thread__find_symbol(struct thread *thread, u8 cpumode,
680 if (thread__find_map(thread, cpumode, addr, al))
685 struct symbol *thread__find_symbol_fb(struct thread *thread, u8 cpumode,
689 if (thread__find_map_fb(thread, cpumode, addr, al))
725 thread__find_map(thread, sample->cpumode, sample->ip, al);
822 thread__find_map_fb(thread, sample->cpumode, sample->addr, al);