-
Notifications
You must be signed in to change notification settings - Fork 726
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
update(driver): renameat2 support #1654
Conversation
Please hold with merge, I still need to do some additional testing. |
* Support the renameat2 syscall * Flags transformer for renameat2 flags Example output: 287009 18:42:37.921613466 6 mv (37734) > renameat2 287010 18:42:37.921655483 6 mv (37734) < renameat2 res=0 olddirfd=-100(AT_FDCWD) oldpath=oldname newdirfd=-100(AT_FDCWD) newpath=newname flags=1(RENAME_NOREPLACE) Signed-off-by: Lorenzo Fontana <fontanalorenz@gmail.com>
21660c5
to
496d1da
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a suggestion Lore
Signed-off-by: Lorenzo Fontana <fontanalorenz@gmail.com> Co-authored-by: Leo Di Donato <leodidonato@gmail.com>
respective tables Signed-off-by: Lorenzo Fontana <fontanalorenz@gmail.com>
This also works very well with the BPF probe now
|
This is ready for merge! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
👏 |
Example output:
In case anyone needs to test this on a system that has the
renameat2
syscall but hasn't glibc support.Then use it
Here is a simple chisel for the renameat2 syscall.
Notes for the reviewer
We are still keeping
syscall_get_arguments_deprecated
in our code base so that we are compatible with older kernels. Internally, it gets conveniently converted tosyscall_get_arguments
- look hereFixes #1603
Signed-off-by: Lorenzo Fontana fontanalorenz@gmail.com