intel / haxm

Intel® Hardware Accelerated Execution Manager (Intel® HAXM)
BSD 3-Clause "New" or "Revised" License
3.23k stars 877 forks source link

Could haxm adopt TraceEvents interface for hax_log? #336

Open bryantclcqq opened 3 years ago

bryantclcqq commented 3 years ago

Now hax_log use vDbgPrintExWithPrefix to output log info, which needs to be captured with third-party tool. Is it possible to adopt TraceEvents interface to write hax log info into Windows eventvwr?

wcwang commented 3 years ago

Thanks for your suggestion. Currently HAXM is based on WDM (Windows Driver Model) framework. Does TraceEvents need the support of the drivers based on the KMDF (Kernel-Mode Driver Framework)? As I know, TraceEvents is more suitable for printing a few key events into Windows Event Viewer. Moreover, currently hax_log() is mainly for debugging purpose, and then quantities of logs may be output at different levels.