Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]stackplz目前没有看到可以获取函数返回值的功能,是否可以支持? #64

Open
wanix1988 opened this issue Nov 16, 2024 · 1 comment

Comments

@wanix1988
Copy link

使用stackplz -n com.xxx.yyy -s malloc[int],free[ptr] --stack -o tmp.log抓取系统调用时,可以实时获取函数参数,但是不能同时获取返回值,这样malloc返回的指针就不能跟free的参数匹配上,stackplz是否可以支持将参数和返回值同时打印出来?

@SeeFlowerX

@SeeFlowerX
Copy link
Owner

  1. 没有名为malloc和free的系统调用
  2. -w/--point 是 uprobe hook,如果你要返回值,可以指定具体的偏移去获取malloc;或者自己写代码,用uretprobe实现
  3. 你可以通过配置文件的形式去控制你需要的效果,但是我还是建议直接自己写脚本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants