trace: Make trace point code patching thread/smp safe
Also, move platform dependent fast dispatch to platform arch code tree(s) The patching code is a bit more complex than would seem immediately (or even factually) neccesary. However, depending on cpu, there might be issues with trying to code patch across cache lines (unaligned). To be safe, we do it with the old 16-bit jmp + write + finish dance. [avi: fix up build.mk] Signed-off-by:Calle Wilund <calle@cloudius-systems.com> Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
Showing
- arch/aarch64/arch-trace.cc 18 additions, 0 deletionsarch/aarch64/arch-trace.cc
- arch/aarch64/arch-trace.hh 23 additions, 0 deletionsarch/aarch64/arch-trace.hh
- arch/x64/arch-trace.cc 121 additions, 0 deletionsarch/x64/arch-trace.cc
- arch/x64/arch-trace.hh 32 additions, 0 deletionsarch/x64/arch-trace.hh
- arch/x64/cpuid.cc 1 addition, 0 deletionsarch/x64/cpuid.cc
- arch/x64/cpuid.hh 1 addition, 0 deletionsarch/x64/cpuid.hh
- build.mk 2 additions, 0 deletionsbuild.mk
- core/trace.cc 2 additions, 12 deletionscore/trace.cc
- include/osv/trace.hh 7 additions, 15 deletionsinclude/osv/trace.hh
Loading
Please register or sign in to comment