nixCraft Linux Sys Admin Blog |
| ktrace - FreeBSD / Mac OS X Process Tracing and Reporting Tool Posted: 16 Apr 2008 05:31 PM CDT Under Linux you can use strace or valgrind tool for reporting and finding a bug. However, under *BSD / Mac OS X you need to use ktrace as replacement for strace tool. kreace runs on the following platforms: The ktrace utility enables kernel trace logging for the specified processes. Kernel trace data is logged to the file ktrace.out. The kernel operations that are traced include system calls, namei translations, sig nal processing, and I/O. Once tracing is enabled on a process, trace data will be logged until either the process exits or the trace point is cleared. A traced process can generate enormous amounts of log data quickly; It is strongly suggested that users memorize how to disable tracing before attempting to trace a process. To trace all kernel operations for process id # 2546, enter:
Run the command called myapp and track only system calls, enter: truss: trace system callsFreeBSD has another tool called truss. It traces the system calls called by the specified process or program. Output is to the specified output file, or standard error by default. strace under FreeBSDYou can install strace under FreeBSD and other *BSD like oses. Further readings:
Continue reading rest of the How to report / Find a bug under Linux series. Contents
Related Posts:
© ktrace - FreeBSD / Mac OS X Process Tracing and Reporting Tool - nixCraft - Support nixCraft when you shop at amazon. Thanks! |
| andLinux - Run Windows and Linux Without Virtualization Posted: 16 Apr 2008 04:35 PM CDT If you cannot get rid of Windows due to application software compatibility issues, try andLinux.
=> Run Windows and Linux without virtualization Related Posts:© andLinux - Run Windows and Linux Without Virtualization - nixCraft - Support nixCraft when you shop at amazon. Thanks! |
| Sun touts big plans for OpenSolaris as first release nears Posted: 16 Apr 2008 04:22 PM CDT Sun is planning to release OpenSolaris soon with better package management, GNU userland tools and fast release cycle just like Fedora or Ubuntu Linux. Sun's Ian Murdock gave a presentation about OpenSolaris at LugRadio Live this past weekend. He explained how OpenSolaris reflects Sun's changing platform strategy and also discussed some of the technical attributes that differentiate OpenSolaris from Linux.
Few suggestion...
=> Sun touts big plans for OpenSolaris as first release nears Related Posts:
© Sun touts big plans for OpenSolaris as first release nears - nixCraft - Support nixCraft when you shop at amazon. Thanks! |
| FreeBSD Mount /proc File System Command Posted: 16 Apr 2008 06:07 PM CDT Q. Few commands under FreeBSD depends upon procfs (process file system). FreeBSD does not mount it by default. How do I mount /proc (procfs) from a shell prompt? A. Yes few commands will not work, as procfs has to be mounted. The process file system, or procfs, implements a view of the system process table [...] Answer to "FreeBSD Mount /proc File System Command" Copyright © nixCraft. All Rights Reserved. Support nixCraft when you shop at amazon. Thanks! |
| You are subscribed to email updates from nixCraft Linux Sys Admin Blog To stop receiving these emails, you may unsubscribe now. | Email Delivery powered by FeedBurner |
| Inbox too full? | |
| If you prefer to unsubscribe via postal mail, write to: nixCraft Linux Sys Admin Blog, c/o FeedBurner, 20 W Kinzie, 9th Floor, Chicago IL USA 60610 | |
No comments:
Post a Comment