summaryrefslogtreecommitdiffstats
path: root/usr.bin/ktrdump
Commit message (Collapse)AuthorAgeFilesLines
* Don't dump entries that were modified during the time the KTR buffer was beingneel2014-03-141-3/+11
| | | | | | | | copied to userspace. Failing to do this would result in entries at the bottom of the ktrdump output to be more recent than entries at the top. With this change the timestamps are monotonically decreasing going from the top to the bottom of the ktrdump output.
* Fix an issue with ktrdump(8) where it would not print all entries in theneel2014-03-141-3/+7
| | | | | | | | | | KTR buffer. This happens when 'i' tries to wrap around from 0 to 'entries - 1'. Since 'i' is a signed integer the modulo operation actually returns a negative number. Fix this by computing the next index to use "by hand" instead of relying on the modulo operator.
* Print the ktr(4) format line that caused a failure.glebius2014-01-171-1/+1
| | | | Sponsored by: Nginx, Inc.
* - Implement run-time expansion of the KTR buffer via sysctl.jeff2012-11-151-2/+4
| | | | | | | | | | - Implement a function to ensure that all preempted threads have switched back out at least once. Use this to make sure there are no stale references to the old ktr_buf or the lock profiling buffers before updating them. Reviewed by: marius (sparc64 parts), attilio (earlier patch) Sponsored by: EMC / Isilon Storage Division
* Catch up with r238925. ktr_entries may not be a power of 2.np2012-10-301-2/+2
|
* Add -H flag to print thread id.dchagin2011-01-262-3/+15
|
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-0/+2
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Remove unnecessary opt* definations.delphij2009-02-211-3/+0
|
* Skip format flags, when parsing ktr_desc.glebius2006-01-121-1/+7
|
* Really fix the relative timestamp bug. It was only incorrect for the ALQnjl2005-12-091-1/+2
| | | | | | | | case. It seems entries are in reverse order when read from the kernel memory but in the right order when read from a file (i.e. ALQ). Handle both cases. MFC after: 1 day
* Fix -r flag to actually work. "now" comes after "then", not vice versa.njl2005-12-061-1/+1
| | | | MFC after: 1 day
* Markup and wording fixes.ru2005-06-141-1/+1
| | | | Approved by: re (blanket)
* Append a newline character to the usage string.csjp2005-06-051-1/+1
| | | | MFC after: 3 days
* Sync program's usage() with manpage's SYNOPSIS.ru2005-05-211-2/+4
|
* Document the '-i' option which allows the user to specify a ktr eventshmp2005-03-081-0/+5
| | | | log file.
* Don't use an uninitialised variable when reading from a ktr alq file.julian2004-09-271-1/+1
|
* mdoc(7) fixes.ru2004-07-071-2/+2
|
* Add a "-r" flag to ktrdump(1) to print relative timestamps when usedrwatson2004-05-222-6/+22
| | | | | | | | with "-t" rather than absolute timestamps. This allows the reader to get a better sense of latency between events, such as time to schedule an interrupt thread from time the interrupt occurred. Assert a copyright on ktrdump.c since I seem to be modifying it more than I thought.
* Add a quiet mode to ktrdump(1): if the "-q" flag is used, don't printrwatson2004-05-212-21/+30
| | | | | the pretty text header on top of the output. Simplifies feeding the results of tracing into a script for mechanical processing.
* When the 'f' flag is passed to ktrdump(1), use 40 characters for therwatson2004-05-211-1/+1
| | | | | | "file and line" field consistently; previously, a 32-character field length was used for the table header, which resulted in the header not lining up with the table.
* Remove an unused variable.dwmalone2004-02-151-1/+0
|
* Use strlcpy() instead of strcpy() to not overflow static buffers.kris2002-10-061-2/+6
|
* - Add the -i option to read in a saved ktr file output by KTR_ALQ.jeff2002-09-221-13/+41
|
* The .Nm utilitycharnier2002-07-141-3/+3
|
* Added missing DPADD detected by ``make checkdpadd''.ru2002-06-061-0/+1
|
* mdoc(7) police: fixed typo, minor markup nits.ru2002-05-301-5/+4
|
* Add a man page.jake2002-04-022-1/+83
| | | | Submitted by: davidc
* 1. Add missing include of stdint.h.jake2002-04-021-2/+3
| | | | | | 2. Fix reversed arguments to strcpy. Noticed by: davidc (2)
* ktrdump is a utility to dump the ktr trace buffer from userland. It canjake2002-04-012-0/+243
also be run on a core dump.
OpenPOWER on IntegriCloud