summaryrefslogtreecommitdiffstats
path: root/usr.bin/kdump/kdump.c
Commit message (Collapse)AuthorAgeFilesLines
* Respect decimal flag when dumping USER type records.phk2004-03-251-1/+4
|
* First pass at attempted debrucification:peter2003-12-081-2/+2
| | | | | | | | | | - sort the -E switch into the right place. - add previously missing -p pid in usage (from the last few commits). - add -E to usage. - consistently use trfile in the man page. I knew I shouldn't have touched the man page. If I commit to a man page, it just makes people suspicious. :-)
* Add a -E (elapsed time) flag to kdump. This is like -T, except it ispeter2003-12-071-1/+9
| | | | | | relative to start of the dump. Approved by: re (scottl)
* Two enhancements for kdump.peter2003-06-031-21/+95
| | | | | | 1) add a "-p pid", which is rather useful for selecting a single pid in a combined trace file (eg: with ktrace -i). 2) display binary genio data in a more precise format.
* Add a default case that just outputs a new line for the case of anjhb2003-03-131-0/+3
| | | | unknown header type.
* Teach kdump(8) to handle events marked with KTR_DROP. If a record hasjhb2003-03-131-0/+12
| | | | | | | | | | | | | | KTR_DROP set in its header, then we output an extra line to stdout to indicate that events were dropped between the previous record and this record. It is a bit trickier because we need to always notify the user if events are dropped even if KTR_DROP is set on a record of a type that we aren't interested in since kdump(8) doesn't know if the dropped events were of the types that the user has requested. To avoid outputting multiple events dropped notices in between actual event logs, a state variable is set whenever a drop is logged and cleared whenever an actual record is output. Requested by: phk
* Improve WARNS situation for kdump:dwmalone2002-07-281-45/+58
| | | | | | | | | | | | | 1) Define _KERNEL while including sys/time.h to get some function prototypes. 2) Add prototypes and ANSIify definitions. 3) Constness changes. 4) Remove register keyword. 5) Actually return a sensible value from main. 6) Make fread_tail take a void * instead of a char *. 7) Avoid a signedness warning by casting to a size_t. Should be safe enough 'cos we also check for nonnegativity. 8) Be extra chummy with sigset_t rather than passing a struct to printf and pretending it is an int.
* Consistently use FBSDIDobrien2002-06-301-2/+2
|
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"peter1999-12-291-2/+2
| | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Decode new ptrace requests PT_GETDBREGS and PT_SETDBREGS.bde1999-07-171-1/+9
|
* Decode all currently supported values of the ptrace `request' arg.bde1999-06-261-3/+20
|
* Syscall arguments are now properly aligned. Print them, and syscall returndt1999-06-161-16/+16
| | | | values, as longs, instead of int.
* FIx the output of long command names.jmz1999-05-211-2/+2
| | | | | PR: bin/10027 Submitted by: Arne Henrik Juul <arnej@math.ntnu.no>
* Use err(3). Correct incomplete man page.charnier1997-07-161-34/+21
|
* Spelling correction (`1 bytes' is now printed `1 byte')charnier1997-05-221-2/+3
| | | | | PR: bin/3376 Submitted by: me
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Fix arg parsing. kdump used to allow a single argument, which itfenner1996-11-181-3/+1
| | | | silently ignored.
* Remove length field from utrace entries.phk1996-09-221-6/+6
|
* For now we just hexdump the stuff in USER records.phk1996-09-191-1/+18
|
* Add setlocale LC_CTYPEache1995-10-261-0/+3
|
* Remove trailing whitespace.rgrimes1995-05-301-1/+1
|
* Absolute path to /sys again...phk1994-11-211-1/+1
|
* move #include of <sys/errno.h> so that #defining KERNEL actually has an effect,csgr1994-08-221-3/+4
| | | | | | and then also add a declaration of ernno as an extern int, because we lose that due to having KERNEL defined while we include errno.h. Reviewed by: Geoff.
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+437
OpenPOWER on IntegriCloud