LWN.net Logo

Announcing a new utility: 'trace'

Announcing a new utility: 'trace'

Posted Nov 20, 2010 17:01 UTC (Sat) by kleptog (subscriber, #1183)
In reply to: Announcing a new utility: 'trace' by tglx
Parent article: Announcing a new utility: 'trace'

Anything that brings something like strace but better is good. However, if you do decide to do argument decoding I strongly suggest looking at the source for strace. It contains scripts for dozens of OSes and architechtures for extracting syscall, ioctl and signal information. Along with code to print it out.

It's probably a good idea to at least glance at it once in a while to make sure the impedance mismatch doesn't get too great, so that when you do want it it won't be much work.

(The PORTING document of strace suggests that you should be able to create a new event loop and you'll have a basic working version pretty quick.)


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds