by jesse

what is the equivalent to strace on openBSD?

openBSD uses ktrace and kdump instead of strace. ktrace monitors the process and writes its output to a file, ktrace.out by default. kdump interprets the data from ktrace into a human readable format. one of the args to ktrace can be a string telling it what to log, this is specified by -t, syscalls are specified by 'c'. for example: to monitor the syscalls made by hybserv i would do `ktrace -t c ./hybserv &`; then to view that output `kdump`. ktrace keeps monitoring untill the proccess stops, or you tell it to stop monitoring. to stop it monitoring all your proccess you do `ktrace -C`. you might want to delete ktrace.out, because it can use lots of disc space.

 


 
Read more of   The Yak's Frequently Questioned Answers   (mod.2008-06-12)

434.   How can I get around registering your real email with a given service? (or what's a good way to get a feed for a throwaway email?)   [jake/2006-06-02]
334.   How can you stop neutrinos?   [strick/2004-07-19]
331.   how do i convert my gaim buddy list to a centericq buddy list?   [jesse/2002-10-16]
321.   what is jesse's first rule of backpacking?   [jesse/2002-08-13]
265.   Who is Brad   [brad/2002-07-16]
248.   what font does jesse use for coding?   [jesse/2001-06-09] ( robey/2001-06-26 )
241.   What the hell does [U:a:S:b:h] mean?   [mennonite/2001-06-05]
230.   What is a good book to get started with Python?   [rupe/2001-05-30]
191.   What did Jon Postel (IANA)'s obituary look like?   [rupe/2001-03-06] ( strick/2001-03-11 )
178.   Why isn't my PCS email working on my Cingular/PB Wireless phone?   [rupe/2001-02-12]
155.   Where can I find lyrics to IRC songs?   [rupe/2000-12-29]
121.   What time is it?   [rupe/2000-09-18] ( josh/2001-04-03 strick/2001-03-10 )
99.   Can I legally use electronic countermeasures on my vehicle in California?   [rupe/2000-05-23]
79.   Where can I find information on the QA process used to validate space shuttle software?   [rupe/2000-05-19]
76.   How can I run my 486 25 at 247 mhz?   [jj/2000-04-16]
51.   I'm playing with dialpad.com -- What's the USGS earthquake info phone #?   [strick/2000-02-06]
45.   Do I have JAVASCRIPT on?   [strick/2000-02-03]
25.   What does CLEC stand for in the telco business?   [simon/2000-01-22] ( jesse/2000-11-22 )