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

trace.py: fix syscall parameter rewriting on x64 #2138

Merged
merged 1 commit into from
Jan 14, 2019

Conversation

boat0
Copy link
Contributor

@boat0 boat0 commented Jan 13, 2019

On x64 from kernel v4.17 onwards, an indirect table is used to
rewrite syscall parameters in trace.py. However, it only works
for arg1. For arg[2-6], the results are wrong. This patch fixes
that.

Fixes: 2da3426 ("generate indirect parameter assignment if arch uses syscall wrapper (#1816)")
Signed-off-by: Xiaozhou Liu [email protected]

On x64 from kernel v4.17 onwards, a indirect table is used to
rewrite syscall parameters in trace.py. However, it only works
for arg1. This patch fixes it for arg2-arg6 too.

Fixes: 2da3426 ("generate indirect parameter assignment if arch uses syscall wrapper (iovisor#1816)")
Signed-off-by: Xiaozhou Liu <[email protected]>
@yonghong-song
Copy link
Collaborator

[buildbot, test this please]

@yonghong-song
Copy link
Collaborator

Thanks for the fix!

@yonghong-song yonghong-song merged commit 25a0ef3 into iovisor:master Jan 14, 2019
@boat0 boat0 deleted the fix-trace.py branch January 14, 2019 14:14
palexster pushed a commit to palexster/bcc that referenced this pull request Jul 7, 2019
On x64 from kernel v4.17 onwards, a indirect table is used to
rewrite syscall parameters in trace.py. However, it only works
for arg1. This patch fixes it for arg2-arg6 too.

Fixes: 2da3426 ("generate indirect parameter assignment if arch uses syscall wrapper (iovisor#1816)")
Signed-off-by: Xiaozhou Liu <[email protected]>
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

Successfully merging this pull request may close these issues.

None yet

2 participants