In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Qemu has its own Trace framework and supports multiple debug/trace backends including: nop, dtrace, ftrace, log, simple, ust, which can help us analyze problems in Qemu. For an introduction to these backend, you can see this link: http://repo.or.cz/w/qemu/stefanha.git/blob_plain/refs/heads/tracing:/docs/tracing.txt, if the existing trace point does not meet your needs, it also describes how to add a new trace point. This article focuses on the use of a backend:Simple trace embedded in Qemu, which can be used without installing any other software.
1) enable trace backend is required when compiling qemu
. / configure-- enable-trace-backends=simple
2) add the event of the trace you want
$cat / tmp/events
Virtio_blk_req_complete
Virtio_blk_handle_write
3) start the virtual machine
-trace events=/tmp/events,file=trace.bin
Among them, add "- trace events=/tmp/events,file=trace.bin" to the normally started qemu program, where / tmp/events is the event to be tracked, and trace.bin is the file generated by trace, which cannot be read directly, but through the tool.
4) get the trace result
Simpletrace.py trace-events trace.bin
5) some modules also implement their own pretty-print tools to make it easier to view the results. For example, if you trace the module of 9p, you can check it through the following tools.
Analyse-9p-simpletrace.py trace-events trace.bin
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.