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.2010-02-10)

421.   What is a Brosef?   [jake/2005-02-18]
289.   How do I install a CPAN module in Perl?   [rupe/2001-11-21]
283.   What is the beautiful font used in the movie "Bicentennial Man" ?   [rupe/2001-11-09]
264.   What started in 1984?   [strick/2001-08-10] ( macki/2001-09-04 robey/2001-08-22 )
255.   why is the text on some website(such as kernel.org) unreadable in konqueror at the default font size?   [jesse/2001-07-09]
254.   how do i setup my orinoco wirelss card with linux 2.4.x?   [jesse/2001-07-03]
246.   why am i getting errors with when reflashing my TINI from a linux box?   [jesse/2001-06-09]
230.   What is a good book to get started with Python?   [rupe/2001-05-30]
178.   Why isn't my PCS email working on my Cingular/PB Wireless phone?   [rupe/2001-02-12]
138.   How can I become an asshole in five easy steps?   [chota/2000-10-22]
124.   How do I make common modifications to my Gnu Emacs .emacs file?   [rupe/2000-09-26]
118.   Where can I find out the cost of giving a sasquatch a funeral?   [rupe/2000-09-14]
104.   which pacbell pcs store in the bay area has the best prices and selection?   [jesse/2000-06-18]
95.   What do the * and ** and *** mean by a FQA number?   [strick/2000-05-14]
82.   Can Mice Fly ?   [philbert2k/2000-04-27]
29.   Where can I find out about the DVD hack?   [strick/2000-02-06]