aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/kdump
Commit message (Collapse)AuthorAgeFilesLines
* Update kdump manual page with information on the dump format.George V. Neville-Neil2005-01-281-1/+62
| | | | | | | | | | Add a table with the different types of operations traced. Reviewed by: Ruslan Ermilov Approved by: Robert Watson (mentor) Notes: svn path=/head/; revision=140933
* Place a function prototype correctly.Ruslan Ermilov2004-09-191-1/+1
| | | | | | | Submitted by: Divacky Roman Notes: svn path=/head/; revision=135466
* Commit userland part of pf version 3.5 from OpenBSD (OPENBSD_3_5_BASE).Max Laier2004-06-161-0/+1
| | | | Notes: svn path=/head/; revision=130617
* Bump document date on behalf of the -E option.Ruslan Ermilov2004-05-181-1/+1
| | | | Notes: svn path=/head/; revision=129405
* Respect decimal flag when dumping USER type records.Poul-Henning Kamp2004-03-251-1/+4
| | | | Notes: svn path=/head/; revision=127402
* Use the -H option instead of the deprecated -follow predicate.Dag-Erling Smørgrav2004-02-251-1/+1
| | | | Notes: svn path=/head/; revision=126244
* First pass at attempted debrucification:Peter Wemm2003-12-082-7/+7
| | | | | | | | | | | | | - 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. :-) Notes: svn path=/head/; revision=123306
* Add a -E (elapsed time) flag to kdump. This is like -T, except it isPeter Wemm2003-12-072-2/+12
| | | | | | | | | relative to start of the dump. Approved by: re (scottl) Notes: svn path=/head/; revision=123187
* Two enhancements for kdump.Peter Wemm2003-06-032-21/+101
| | | | | | | | | 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. Notes: svn path=/head/; revision=115759
* Add a default case that just outputs a new line for the case of anJohn Baldwin2003-03-131-0/+3
| | | | | | | unknown header type. Notes: svn path=/head/; revision=112203
* Teach kdump(8) to handle events marked with KTR_DROP. If a record hasJohn Baldwin2003-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 Notes: svn path=/head/; revision=112201
* Kill references to netns in comment about how it conflicted with netipx soPeter Wemm2003-03-051-2/+0
| | | | | | | it was ignored all this time. Notes: svn path=/head/; revision=111922
* Backed out revs 1.32-1.33. The problem has been fixed better byBruce Evans2002-09-161-2/+0
| | | | | | | | | depolluting <netinet/if_gre.h> in the !_KERNEL case. Reviewed by: sobomax Notes: svn path=/head/; revision=103393
* Also add #include <netinet/in_systm.h> before <neinet/ip.h> to fix theMaxim Sobolev2002-09-071-0/+1
| | | | | | | | | world. Submitted by: Brooks Davis <brooks@one-eyed-alien.net> Notes: svn path=/head/; revision=103069
* Add #include <netinet/ip.h> in attempt to fix the world.Maxim Sobolev2002-09-071-0/+1
| | | | Notes: svn path=/head/; revision=103063
* Improve WARNS situation for kdump:David Malone2002-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. Notes: svn path=/head/; revision=100824
* Dependencies are delimited by space not tab.Ruslan Ermilov2002-07-231-2/+2
| | | | Notes: svn path=/head/; revision=100559
* Consistently use FBSDIDDavid E. O'Brien2002-06-301-2/+2
| | | | Notes: svn path=/head/; revision=99112
* Better warnings fixes. Use more sane argument types instead of bogus castsMark Murray2002-06-241-3/+3
| | | | | | | Submitted by: bde Notes: svn path=/head/; revision=98767
* Better fix for style.Mark Murray2002-06-211-6/+6
| | | | | | | Suggested by: ru (but modified a bit by markm) Notes: svn path=/head/; revision=98557
* Fix warnings generated elsewhere.Mark Murray2002-06-211-1/+1
| | | | Notes: svn path=/head/; revision=98554
* Style tidy-up.Mark Murray2002-06-211-2/+4
| | | | Notes: svn path=/head/; revision=98553
* I now don't seem to be able to reproduce the -DNOCLEAN buildworldRuslan Ermilov2002-04-111-4/+0
| | | | | | | | | | | | | breakage with ioctl.c. The .depend file should track dependencies just fine, and the worst we can have is to miss new ioctls. But I still think it's a good idea to have -DNOCLEAN build produce the same ioctl.c as it would without -DNOCLEAN. Prodded for a long time by: bde Notes: svn path=/head/; revision=94432
* Const the code.David Malone2002-04-011-1/+3
| | | | Notes: svn path=/head/; revision=93522
* Back out revision 1.13 (addition of ipfilter includes). A properRuslan Ermilov2002-03-251-6/+0
| | | | | | | | fix for the relevant world breakage was later committed in revision 1.20, and this now breaks -DNO_IPFILTER world. Notes: svn path=/head/; revision=93160
* Really fix this work to work. While rev 1.24 did allow awk to run w/oDavid E. O'Brien2001-11-011-3/+3
| | | | | | | complaining; the resulting output was useless. Notes: svn path=/head/; revision=85796
* Utilize the property of 'echo' in that it removes \n from its input.David E. O'Brien2001-11-011-1/+1
| | | | Notes: svn path=/head/; revision=85794
* Remove whitespace at EOL.Dima Dorfman2001-07-151-2/+2
| | | | Notes: svn path=/head/; revision=79755
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79535
* Backout rev. 1.22 as the change that caused problems was also backed out.Ruslan Ermilov2001-05-241-1/+1
| | | | Notes: svn path=/head/; revision=77118
* Work around the side effect of src/include/Makefile,v 1.137 changes.Ruslan Ermilov2001-05-211-1/+1
| | | | | | | (The proper fix is to add missing #include directives.) Notes: svn path=/head/; revision=76936
* Execute this script in a "C" locale environment.Ruslan Ermilov2001-04-061-0/+2
| | | | | | | | | | Currently, cs_CZ.ISO_8859-2 locale's collation sequence is broken, and this caused grep(1) to skip some include files. Reported by: Michal Mertl <mime@traveller.cz> Notes: svn path=/head/; revision=75261
* Traverse ${DESTDIR}/usr/include in lexographical order.Ruslan Ermilov2001-03-271-1/+1
| | | | | | | This should fix problems reported recently on -current. Notes: svn path=/head/; revision=74864
* Rewrite of the CAM error recovery code.Kenneth D. Merry2001-03-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of the major changes include: - The SCSI error handling portion of cam_periph_error() has been broken out into a number of subfunctions to better modularize the code that handles the hierarchy of SCSI errors. As a result, the code is now much easier to read. - String handling and error printing has been significantly revamped. We now use sbufs to do string formatting instead of using printfs (for the kernel) and snprintf/strncat (for userland) as before. There is a new catchall error printing routine, cam_error_print() and its string-based counterpart, cam_error_string() that allow the kernel and userland applications to pass in a CCB and have errors printed out properly, whether or not they're SCSI errors. Among other things, this helped eliminate a fair amount of duplicate code in camcontrol. We now print out more information than before, including the CAM status and SCSI status and the error recovery action taken to remedy the problem. - sbufs are now available in userland, via libsbuf. This change was necessary since most of the error printing code is shared between libcam and the kernel. - A new transfer settings interface is included in this checkin. This code is #ifdef'ed out, and is primarily intended to aid discussion with HBA driver authors on the final form the interface should take. There is example code in the ahc(4) driver that implements the HBA driver side of the new interface. The new transfer settings code won't be enabled until we're ready to switch all HBA drivers over to the new interface. src/Makefile.inc1, lib/Makefile: Add libsbuf. It must be built before libcam, since libcam uses sbuf routines. libcam/Makefile: libcam now depends on libsbuf. libsbuf/Makefile: Add a makefile for libsbuf. This pulls in the sbuf sources from sys/kern. bsd.libnames.mk: Add LIBSBUF. camcontrol/Makefile: Add -lsbuf. Since camcontrol is statically linked, we can't depend on the dynamic linker to pull in libsbuf. camcontrol.c: Use cam_error_print() instead of checking for CAM_SCSI_STATUS_ERROR on every failed CCB. sbuf.9: Change the prototypes for sbuf_cat() and sbuf_cpy() so that the source string is now a const char *. This is more in line wth the standard system string functions, and helps eliminate warnings when dealing with a const source buffer. Fix a typo. cam.c: Add description strings for the various CAM error status values, as well as routines to look up those strings. Add new cam_error_string() and cam_error_print() routines for userland and the kernel. cam.h: Add a new CAM flag, CAM_RETRY_SELTO. Add enumerated types for the various options available with cam_error_print() and cam_error_string(). cam_ccb.h: Add new transfer negotiation structures/types. Change inq_len in the ccb_getdev structure to be "reserved". This field has never been filled in, and will be removed when we next bump the CAM version. cam_debug.h: Fix typo. cam_periph.c: Modularize cam_periph_error(). The SCSI error handling part of cam_periph_error() is now in camperiphscsistatuserror() and camperiphscsisenseerror(). In cam_periph_lock(), increase the reference count on the periph while we wait for our lock attempt to succeed so that the periph won't go away while we're sleeping. cam_xpt.c: Add new transfer negotiation code. (ifdefed out) Add a new function, xpt_path_string(). This is a string/sbuf analog to xpt_print_path(). scsi_all.c: Revamp string handing and error printing code. We now use sbufs for much of the string formatting code. More of that code is shared between userland the kernel. scsi_all.h: Get rid of SS_TURSTART, it wasn't terribly useful in the first place. Add a new error action, SS_REQSENSE. (Send a request sense and then retry the command.) This is useful when the controller hasn't performed autosense for some reason. Change the default actions around a bit. scsi_cd.c, scsi_da.c, scsi_pt.c, scsi_ses.c: SF_RETRY_SELTO -> CAM_RETRY_SELTO. Selection timeouts shouldn't be covered by a sense flag. scsi_pass.[ch]: SF_RETRY_SELTO -> CAM_RETRY_SELTO. Get rid of the last vestiges of a read/write interface. libkern/bsearch.c, sys/libkern.h, conf/files: Add bsearch.c, which is needed for some of the new table lookup routines. aic7xxx_freebsd.c: Define AHC_NEW_TRAN_SETTINGS if CAM_NEW_TRAN_CODE is defined. sbuf.h, subr_sbuf.c: Add the appropriate #ifdefs so sbufs can compile and run in userland. Change sbuf_printf() to use vsnprintf() instead of kvprintf(), which is only available in the kernel. Change the source string for sbuf_cpy() and sbuf_cat() to be a const char *. Add __BEGIN_DECLS and __END_DECLS around function prototypes since they're now exported to userland. kdump/mkioctls: Include stdio.h before cam.h since cam.h now includes a function with a FILE * argument. Submitted by: gibbs (mostly) Reviewed by: jdp, marcel (libsbuf makefile changes) Reviewed by: des (sbuf changes) Reviewed by: ken Notes: svn path=/head/; revision=74840
* Fix ioctl.c creation to deal with the depend case more properly.Jordan K. Hubbard2000-09-141-2/+6
| | | | | | | Submitted by: Ruslan Ermilov <ru@sunbay.com> Notes: svn path=/head/; revision=65848
* remove .PHONY to avoid gratuitous rebuild of ioctl.c each time.Jordan K. Hubbard2000-09-141-1/+1
| | | | | | | Approved by: sef Notes: svn path=/head/; revision=65829
* Unbreak world build by adding the necessary <net/ethernet.h> include.Ruslan Ermilov2000-08-021-0/+1
| | | | | | | Submitted by: Nickolay Dudorov <nnd@wint.itfs.nsk.su> Notes: svn path=/head/; revision=64121
* Make auto-generated ioctl.c to be always considered out of dateRuslan Ermilov2000-08-011-1/+1
| | | | | | | | | since it could potentially depend on any ${DESTDIR}/usr/include preprocessor file. This fixes the broken -DNOCLEAN world build I experienced yesterday. Notes: svn path=/head/; revision=64102
* Fix an off-by-nine error when building a list of includes.Ruslan Ermilov2000-08-011-1/+1
| | | | Notes: svn path=/head/; revision=64099
* more pre-requisite for new ipv6 ioctlsJun-ichiro itojun Hagino2000-07-041-0/+3
| | | | Notes: svn path=/head/; revision=62585
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-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. Notes: svn path=/head/; revision=55206
* sys/dkbad.h is no more.Poul-Henning Kamp1999-12-081-1/+0
| | | | Notes: svn path=/head/; revision=54335
* Avoid hardcoding any paths and variables. The include directory mustMarcel Moolenaar1999-12-032-8/+19
| | | | | | | | | | | | | now be specified on the command line. Accept a '-s' option which controls whether a switch-statement is to be used instead of a series of if-statements. Replace cpp with gcc -E. Discussed with: bde Notes: svn path=/head/; revision=54081
* Make sure DESTDIR is set in the environment of mkioctls. This fixesMarcel Moolenaar1999-12-021-1/+2
| | | | | | | | | | the breakage people have encountered at certain times (for example when the altq_*.h files were removed). $FreeBSD$ tag added. Notes: svn path=/head/; revision=54029
* Unbreak build world by readding the necessary ipfilter includes.Guido van Rooij1999-11-241-0/+6
| | | | Notes: svn path=/head/; revision=53669
* ioctlname() is actually passed a register_t.Doug Rabson1999-11-101-1/+1
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=53079
* Fix a boatload of warnings in the generated code on the alpha.Doug Rabson1999-11-091-1/+1
| | | | Notes: svn path=/head/; revision=53069
* Ack, ip_mroute.h is not an ipfilter include. :-/Peter Wemm1999-10-111-0/+1
| | | | | | | Submitted by: Mike Heffner <spock@techfour.net> Notes: svn path=/head/; revision=52130
* Don't #include ipfilter includes that aren't there anymore.Peter Wemm1999-10-101-7/+0
| | | | Notes: svn path=/head/; revision=52099
* Remove the inclusion of device.h. It's no longer there.Nick Hibma1999-10-061-1/+2
| | | | Notes: svn path=/head/; revision=51960