rr-debugger / rr

Record and Replay Framework
http://rr-project.org/
Other
9.08k stars 578 forks source link

Add support for the `init_module` x64 syscall? #2607

Open agentzh opened 4 years ago

agentzh commented 4 years ago

Hi, the rr team

I've tried to record systemtap's staprun utility with rr on x86_64, but immediately ran into the lack of support for the init_module syscall:

https://gist.github.com/agentzh/d49d4ab3e77fc324685dc16179c98ea3

Any chance to get it supported? Many thanks!

agentzh commented 4 years ago

BTW, I'm using the latest git master branch as of this writing (commit e89f84c77a).

rocallahan commented 4 years ago

I think we'd take a PR to just switch it to EmulatedSyscall in syscalls.py assuming that works for you.

agentzh commented 4 years ago

@rocallahan Thanks for your quick reply! We'll give it shot. Thanks.