如何将Ftrace生成的ASCII跟踪转换为.dat One?

发布于 2025-02-04 15:51:32 字数 408 浏览 3 评论 0原文

我有一个名为跟踪的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

暗喜 2025-02-11 15:51:32

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文