home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / linux / 7052 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.2 KB

  1. Path: sparky!uunet!mcsun!uknet!root44!hrc63!mrcu!ajh
  2. From: ajh@uk.co.gec-mrc (Andrew Haylett)
  3. Newsgroups: comp.os.linux
  4. Subject: Would a trace(1) facility be useful?
  5. Message-ID: <1866@oberon>
  6. Date: 30 Jul 92 09:25:24 GMT
  7. Organization: GEC-Marconi Research Centre, Great Baddow, UK
  8. Lines: 17
  9. X-Newsreader: Tin 1.1 PL4
  10.  
  11. I've made substantial use in the past of Sun's trace(1) facility for tracing
  12. systems calls and arguments from user code. Admittedly, it is more essential in
  13. a binary-only system, but such a facility could still be useful and interesting
  14. for Linux.
  15.  
  16. To implement this would probably be fairly tricky, and I'm not up to it. We
  17. have a fairly complete ptrace(2), but I think it would need to support the
  18. PTRACE_SYSCALL function to trap on system calls. The PD 'strace' package by
  19. Paul Kranenburg could form a starting point for a trace implementation, though
  20. it was written for Suns and would probably have to be disembowelled. There may
  21. be simpler code lying around.
  22.  
  23. And whether any of this is POSIX, or just a Sun-ism, I don't know at all. Any
  24. comments?
  25. -- 
  26. Andrew Haylett       | Inet: ajh@gec-mrc.co.uk   | Fax: +44 245 75244
  27. GEC-Marconi Research | Tel: +44 245 73331 x.3283 | Telex: 995016 GECRES G
  28.