Raspberry PI 中的 Linux KProbe
我正在尝试在 Raspberry pi 上使用 kprobes,并尝试使用寄存器 struct pt_regs 在 k_probe 的后处理程序中存储获取文件结构。我似乎无法弄清楚从哪个寄存器中获取它。在 x86 中它是 axe,所以使用下面的方法可以。
struct file *file = (struct file *)regs->ax;
请帮帮我。
I am trying to use kprobes on Raspberry pi and and trying to store get the file struct from in the post handler of k_probe using the register struct pt_regs. I can't seem to figure out what register to fetch it from. In x86 it's ax so using below works.
struct file *file = (struct file *)regs->ax;
Please help me out.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论