@balaton
Regarding pref profiling, I don't know if you meant something like this:
1) I start Qemu on isolated core 14.
taskset -c 14 qemu-system-ppc \
-machine pegasos2 \
-m 2G \
-kernel bboot -initrd Kickstart.zip \
-rtc base=localtime \
-drive if=none,id=DH0,file=amigahdd-System.img,format=raw -device ide-hd,drive=DH0 \
-drive if=none,id=DH1,file=amigahdd-Work.img,format=raw -device ide-hd,drive=DH1 \
-device rtl8139,netdev=ETH0 -netdev user,id=ETH0 \
-device vfio-pci,host=04:00.0,bus=pci.0,x-vga=on \
-device vfio-pci,host=04:00.1,bus=pci.0 \
-device bochs-display \
-vga none \
-serial stdio \
-d guest_errors,unimp
2) I started GfxBench2D on AOS4 guest
3) Started perf mem using:
sudo perf mem record --cpu=14
4) GfxBench2D reaches test 17 of 54. And here I stopped the perf mem process.
5) Converted perf.data to perf.data.txt using:
sudo perf script > perf.data.txt
A small sample of the produced (7mb) file is:
qemu-system-ppc 3084 [014] 307.311576: 26865 cpu_atom/mem-stores/P: ffffffffa5467150 sched_clock+0x10 ([kernel.kallsyms])
qemu-system-ppc 3081 [014] 307.315621: 21426 cpu_atom/mem-stores/P: 7b8c764a1ab2 pthread_mutex_unlock@@GLIBC_2.2.5+0x52 (/usr/lib/x86_64-linux-gnu/libc.so.6)
qemu-system-ppc 3084 [014] 307.315886: 21426 cpu_atom/mem-stores/P: 7b8c2ccff74b [unknown] (/tmp/perf-3081.map)
qemu-system-ppc 3081 [014] 307.317646: 19949 cpu_atom/mem-stores/P: 7b8c76c9c7c6 [unknown] (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.0)
qemu-system-ppc 3084 [014] 307.320145: 16060 cpu_atom/mem-stores/P: 5d4271f5dab4 dcbz_common.isra.0+0x64 (/usr/local/bin/qemu-system-ppc)
qemu-system-ppc 3081 [014] 307.321686: 14512 cpu_atom/mem-stores/P: ffffffffa596f342 signalfd_poll+0x72 ([kernel.kallsyms])
qemu-system-ppc 3084 [014] 307.323710: 12180 cpu_atom/mem-stores/P: ffffffffa5405134 __switch_to_asm+0x34 ([kernel.kallsyms])
qemu-system-ppc 3084 [014] 307.324404: 12180 cpu_atom/mem-stores/P: ffffffffa5584328 __update_load_avg_se+0xd8 ([kernel.kallsyms])
qemu-system-ppc 3084 [014] 307.325995: 10274 cpu_atom/mem-stores/P: 5d427205d200 do_ld4_mmu+0x0 (/usr/local/bin/qemu-system-ppc)
qemu-system-ppc 3081 [014] 307.327769: 8506 cpu_atom/mem-stores/P: ffffffffa62bbb8b ____sys_recvmsg+0x6b ([kernel.kallsyms])
qemu-system-ppc 3084 [014] 307.329555: 7106 cpu_atom/mem-stores/P: 7b8c76589420 __memset_avx2_unaligned_erms+0x20 (/usr/lib/x86_64-linux-gnu/libc.so.6)
qemu-system-ppc 3081 [014] 307.329797: 6343 cpu_atom/mem-stores/P: 7b8c6f6c484c [unknown] (/usr/lib/x86_64-linux-gnu/libdbus-1.so.3.32.4)
qemu-system-ppc 3084 [014] 307.330404: 6370 cpu_atom/mem-stores/P: ffffffffa6626584 sched_clock_noinstr+0x4 ([kernel.kallsyms])
qemu-system-ppc 3081 [014] 307.331819: 5641 cpu_atom/mem-stores/P: 5d42720147d7 flatview_read+0x87 (/usr/local/bin/qemu-system-ppc)
qemu-system-ppc 3081 [014] 307.331830: 5062 cpu_atom/mem-stores/P: ffffffffa5469f08 os_xsave+0x38 ([kernel.kallsyms])
qemu-system-ppc 3081 [014] 307.332287: 19857 cpu_atom/mem-stores/P: ffffffffa5467150 sched_clock+0x10 ([kernel.kallsyms])
qemu-system-ppc 3081 [014] 307.332341: 18734 cpu_atom/mem-stores/P: ffffffffa58f9f25 fput+0x5 ([kernel.kallsyms])
qemu-system-ppc 3084 [014] 307.333967: 25054 cpu_atom/mem-stores/P: 5d427205c136 probe_access_internal+0xf6 (/usr/local/bin/qemu-system-ppc)
qemu-system-ppc 3081 [014] 307.337424: 18004 cpu_atom/mem-stores/P: ffffffffa5919988 do_sys_poll+0x48 ([kernel.kallsyms])
qemu-system-ppc 3084 [014] 307.338404: 18004 cpu_atom/mem-stores/P: ffffffffa55710d3 update_cfs_group+0x3 ([kernel.kallsyms])
qemu-system-ppc 3084 [014] 307.341940: 13674 cpu_atom/mem-stores/P: ffffffffa54d6520 switch_mm_irqs_off+0x10 ([kernel.kallsyms])
qemu-system-ppc 3084 [014] 307.343822: 12427 cpu_atom/mem-stores/P: 5d427205f82e probe_access+0x1e (/usr/local/bin/qemu-system-ppc)
qemu-system-ppc 3084 [014] 307.344404: 11081 cpu_atom/mem-stores/P: ffffffffa556a7b5 update_load_avg+0x675 ([kernel.kallsyms])
qemu-system-ppc 3081 [014] 307.346003: 9473 cpu_atom/mem-stores/P: ffffffffa591977a do_poll.constprop.0+0x20a ([kernel.kallsyms])
qemu-system-ppc 3081 [014] 307.348020: 7881 cpu_atom/mem-stores/P: 7b8c76c9d21e [unknown] (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.0)
qemu-system-ppc 3084 [014] 307.348221: 7881 cpu_atom/mem-stores/P: 7b8c2f04f62d [unknown] (/tmp/perf-3081.map)
qemu-system-ppc 3081 [014] 307.350048: 7580 cpu_atom/mem-stores/P: 5d42720147a2 flatview_read+0x52 (/usr/local/bin/qemu-system-ppc)
qemu-system-ppc 3084 [014] 307.350300: 6763 cpu_atom/mem-stores/P: 5d427205c070 probe_access_internal+0x30 (/usr/local/bin/qemu-system-ppc)
qemu-system-ppc 3081 [014] 307.352070: 6385 cpu_atom/mem-stores/P: ffffffffa55f5a95 syscall_exit_to_user_mode_prepare+0x5 ([kernel.kallsyms])
qemu-system-ppc 3081 [014] 307.352082: 5701 cpu_atom/mem-stores/P: ffffffffa5571a08 dequeue_entity+0x128 ([kernel.kallsyms])
qemu-system-ppc 3081 [014] 307.353412: 18304 cpu_atom/mem-stores/P: 5d4272229db4 timerlist_deadline_ns+0x4 (/usr/local/bin/qemu-system-ppc)
qemu-system-ppc 3081 [014] 307.354102: 16447 cpu_atom/mem-stores/P: 7b8c75436fb0 [unknown] (/usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0)
qemu-system-ppc 3081 [014] 307.356132: 14063 cpu_atom/mem-stores/P: ffffffffa5860eba rmqueue+0x81a ([kernel.kallsyms])
qemu-system-ppc 3081 [014] 307.358157: 12767 cpu_atom/mem-stores/P: ffffffffa5971665 eventfd_poll+0x5 ([kernel.kallsyms])
qemu-system-ppc 3081 [014] 307.360178: 11627 cpu_atom/mem-stores/P: ffffffffa5467150 sched_clock+0x10 ([kernel.kallsyms])
qemu-system-ppc 3081 [014] 307.362201: 10631 cpu_atom/mem-stores/P: ffffffffa6642225 _raw_spin_unlock_irqrestore+0x5 ([kernel.kallsyms])
qemu-system-ppc 3084 [014] 307.363669: 9760 cpu_atom/mem-stores/P: 7b8c2f04f471 [unknown] (/tmp/perf-3081.map)
qemu-system-ppc 3081 [014] 307.364237: 8749 cpu_atom/mem-stores/P: ffffffffa5971665 eventfd_poll+0x5 ([kernel.kallsyms])
qemu-system-ppc 3081 [014] 307.366253: 7584 cpu_atom/mem-stores/P: ffffffffa5eddd01 tty_poll+0x31 ([kernel.kallsyms])
qemu-system-ppc 3081 [014] 307.366266: 7584 cpu_atom/mem-stores/P: ffffffffa557717c pick_next_task_fair+0x8c ([kernel.kallsyms])
qemu-system-ppc 3081 [014] 307.368281: 21293 cpu_atom/mem-stores/P: ffffffffa5919678 do_poll.constprop.0+0x108 ([kernel.kallsyms])
qemu-system-ppc 3084 [014] 307.369762: 19089 cpu_atom/mem-stores/P: 5d4272011bc3 address_space_translate_for_iotlb+0x23 (/usr/local/bin/qemu-system-ppc)
qemu-system-ppc 3081 [014] 307.372333: 15775 cpu_atom/mem-stores/P: ffffffffa5ee3f70 n_tty_poll+0x10 ([kernel.kallsyms])
qemu-system-ppc 3081 [014] 307.374364: 14261 cpu_atom/mem-stores/P: 5d42722230ab qemu_lockcnt_cmpxchg_or_wait+0x22b (/usr/local/bin/qemu-system-ppc)
qemu-system-ppc 3081 [014] 307.376388: 12932 cpu_atom/mem-stores/P: ffffffffa591977d do_poll.constprop.0+0x20d ([kernel.kallsyms])
qemu-system-ppc 3081 [014] 307.377412: 11781 cpu_atom/mem-stores/P: 7b8c76c9a7db [unknown] (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.0)
qemu-system-ppc 3081 [014] 307.379434: 9792 cpu_atom/mem-stores/P: ffffffffa58f9f25 fput+0x5 ([kernel.kallsyms])
qemu-system-ppc 3084 [014] 307.379951: 9792 cpu_atom/mem-stores/P: 5d427205c136 probe_access_internal+0xf6 (/usr/local/bin/qemu-system-ppc)
qemu-system-ppc 3081 [014] 307.381470: 8484 cpu_atom/mem-stores/P: ffffffffa662a1c8 ct_kernel_exit_state+0x8 ([kernel.kallsyms])
qemu-system-ppc 3081 [014] 307.381613: 7599 cpu_atom/mem-stores/P: 7b8c764a0138 pthread_mutex_lock@@GLIBC_2.2.5+0x158 (/usr/lib/x86_64-linux-gnu/libc.so.6)
qemu-system-ppc 3084 [014] 307.381648: 8308 cpu_atom/mem-stores/P: 7b8c764a0031 pthread_mutex_lock@@GLIBC_2.2.5+0x51 (/usr/lib/x86_64-linux-gnu/libc.so.6)
qemu-system-ppc 3081 [014] 307.381662: 14821 cpu_atom/mem-stores/P: 5d42722230ab qemu_lockcnt_cmpxchg_or_wait+0x22b (/usr/local/bin/qemu-system-ppc)
qemu-system-ppc 3081 [014] 307.383489: 40886 cpu_atom/mem-stores/P: 7b8c76c93b24 g_source_ref+0x4 (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.0)
qemu-system-ppc 3081 [014] 307.387538: 29160 cpu_atom/mem-stores/P: ffffffffa5971665 eventfd_poll+0x5 ([kernel.kallsyms])
qemu-system-ppc 3084 [014] 307.391589: 23192 cpu_atom/mem-stores/P: ffffffffa555cb2e sched_core_idle_cpu+0xe ([kernel.kallsyms])
If this is quite the process, here is the full output:
https://file.io/5Algg1ZdFo53