4 ms·
Write a toy strace and gdb
- p4bl0 10y agoAwesome introductory example of `ptrace`. Thanks for sharing.
- jdamato 10y agoThanks for this! I recently wrote a deep dive in to both strace [1] and Linux system calls [2] which may be interesting to folks reading this great article. [1]: https://blog.packagecloud.io/eng/2016/02/29/how-does-strace-work/ https://blog.packagecloud.io/eng/2016/02/29/how-does-strace-... [2]: https://blog.packagecloud.io/eng/2016/04/05/the-definitive-guide-to-linux-system-calls/ https://blog.packagecloud.io/eng/2016/04/05/the-definitive-g...
- javierhonduco 10y agoGlad you liked it! I didn't know about those two blog posts, they are gold! Thanks a lot :)
- scrame 10y agoI'm just partway through the syscalls post, but these are really well done! you've got a knack for technical explanations.
- solarengineer 10y agoYou may also want to see how Paul Fox is implementing Dtrace for Linux [0] [0] https://github.com/dtrace4linux/linux https://github.com/dtrace4linux/linux
- wyldfire 10y agopython-ptrace [1] is a good place to start if you're playing around. [1] http://python-ptrace.readthedocs.io/en/latest/ http://python-ptrace.readthedocs.io/en/latest/