Lines Matching refs:cpumode
533 struct map *thread__find_map(struct thread *thread, u8 cpumode, u64 addr,
543 al->cpumode = cpumode;
551 if (cpumode == PERF_RECORD_MISC_KERNEL && perf_host) {
555 } else if (cpumode == PERF_RECORD_MISC_USER && perf_host) {
557 } else if (cpumode == PERF_RECORD_MISC_GUEST_KERNEL && perf_guest) {
561 } else if (cpumode == PERF_RECORD_MISC_GUEST_USER && perf_guest) {
567 if ((cpumode == PERF_RECORD_MISC_GUEST_USER ||
568 cpumode == PERF_RECORD_MISC_GUEST_KERNEL) &&
571 if ((cpumode == PERF_RECORD_MISC_USER ||
572 cpumode == PERF_RECORD_MISC_KERNEL) &&
594 * For branch stacks or branch samples, the sample cpumode might not be correct
598 struct map *thread__find_map_fb(struct thread *thread, u8 cpumode, u64 addr,
601 struct map *map = thread__find_map(thread, cpumode, addr, al);
603 u8 addr_cpumode = machine__addr_cpumode(machine, cpumode, addr);
605 if (map || addr_cpumode == cpumode)
611 struct symbol *thread__find_symbol(struct thread *thread, u8 cpumode,
615 if (thread__find_map(thread, cpumode, addr, al))
620 struct symbol *thread__find_symbol_fb(struct thread *thread, u8 cpumode,
624 if (thread__find_map_fb(thread, cpumode, addr, al))
643 thread__find_map(thread, sample->cpumode, sample->ip, al);
737 thread__find_map_fb(thread, sample->cpumode, sample->addr, al);