如何将Ftrace生成的ASCII跟踪转换为.dat One?
我有一个名为跟踪
的ASCII跟踪,我想将其转换为.dat
,以便用kernelshark
进行分析(我不能更改工具,例如traceCompass
,我被限制在kernelshark上)。
trace-cmd
前端的这两个工具与我需要的类似:
Trace-CMD-REPORT-在ASCII中显示由Trace-CMD记录创建的跟踪
,实际上我需要相反。
我知道trace-cmd提取
从现有跟踪生成.dat
文件,但是它通过重新阅读内核ringbuffer(存储跟踪信息)和不是来自ASCII痕迹。
I have a ASCII trace named trace
and I'd like to convert it to a .dat
in order to analyze it with kernelshark
(I cannot change tool such as TraceCompass
, I am constrained to kernelshark).
These two tools of trace-cmd
frontend are somehow similar to what I need:
trace-cmd-report - show in ASCII a trace created by trace-cmd record
Actually, I need the opposite.
I know that trace-cmd extract
generates a .dat
file from an existing trace, but it does it by re-reading the kernel ringbuffer (where tracing info are stored) and not from a ASCII trace.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
tldr;没有一个自动化工具可以做到这一点。
您需要(i)掌握
trace.dat
文件的语法和(ii)编写自己的二进制解析器,该解析器读取.DAT数据并将其转换为ASCII格式。tldr; there is not an automated tool to do it.
You need to (i) mastering the syntax of a
trace.dat
file and (ii) writing your own binary parser that reads the .dat data and convert them into ASCII format.