summaryrefslogtreecommitdiffstats
path: root/usr.bin/kdump
Commit message (Collapse)AuthorAgeFilesLines
* o Fix some printf(3) format nits in my patch I submitted to kib@.maxim2006-07-121-2/+2
| | | | Submitted by: ru
* Remove slipped in spaces.kib2006-07-121-3/+3
| | | | | Pointed out by: maxim Approved by: pjd (mentor)
* Check that the signal number is in range.kib2006-07-121-1/+4
| | | | | | Submitted by: maxim MFC after: 1 week Approved by: pjd (mentor)
* Check that the signal number is in range.kib2006-07-121-1/+4
| | | | | | Submitted by: Michiel Boland <michiel boland org> MFC after: 1 week Approved by: pjd (mentor)
* Add audit.h to mkioctls inclusion list: audit pipe ioctls need accessrwatson2006-06-051-0/+1
| | | | | | | to the audit types. Submitted by: wsalamon Obtained from: TrustedBSD Project
* Change kdump to print more useful information, i.e. it changes fromnetchild2006-05-204-16/+847
| | | | | | | | | | | | | | | | | | 32229 telnet CALL mmap(0,0x8000,0x3,0x1002,0xffffffff,0,0,0) 32229 telnet CALL open(0x2807bc28,0,0x1b6) 32229 telnet CALL socket(0x2,0x2,0) to 32229 telnet CALL mmap(0,0x8000,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,0xffffffff,0,0,0) 32229 telnet CALL open(0x2807bc28,O_RDONLY,<unused>0x1b6) 32229 telnet CALL socket(PF_INET,SOCK_DGRAM,0) David wanted to implement the suggestions which came up at the review from arch@ too, but real life rejected this proposal. So I commit what we already got and let another volunteer pick the remaining work from the ideas list. Submitted by: "David Kirchner" <dpk@dpk.net> Suggested by: FreeBSD ideas list page Reviewed by: arch
* -mdoc sweep.ru2005-11-181-4/+4
|
* Add "-s" argument to kdump to suppress the display of I/O data.rwatson2005-11-122-4/+11
| | | | MFC after: 1 week
* Add a "-H" argument to kdump, which causes kdump to print an additionalrwatson2005-11-012-6/+33
| | | | | | | | | | | | | | field holding the threadid. This is more useful for libthr than libpthread, but still quite useful in libpthread as it can be used to process interlaced records from multiple threads over the course of a system call. Detect old ktr_buffer values using the heuristic "if it's negative, then it must not be a valid threadid". This may leave something to be desired. MFC after: 1 month Reviewed by: davidxu
* Update kdump manual page with information on the dump format.gnn2005-01-281-1/+62
| | | | | | | Add a table with the different types of operations traced. Reviewed by: Ruslan Ermilov Approved by: Robert Watson (mentor)
* Place a function prototype correctly.ru2004-09-191-1/+1
| | | | Submitted by: Divacky Roman
* Commit userland part of pf version 3.5 from OpenBSD (OPENBSD_3_5_BASE).mlaier2004-06-161-0/+1
|
* Bump document date on behalf of the -E option.ru2004-05-181-1/+1
|
* Respect decimal flag when dumping USER type records.phk2004-03-251-1/+4
|
* Use the -H option instead of the deprecated -follow predicate.des2004-02-251-1/+1
|
* First pass at attempted debrucification:peter2003-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. :-)
* Add a -E (elapsed time) flag to kdump. This is like -T, except it ispeter2003-12-072-2/+12
| | | | | | relative to start of the dump. Approved by: re (scottl)
* Two enhancements for kdump.peter2003-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.
* 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
* Kill references to netns in comment about how it conflicted with netipx sopeter2003-03-051-2/+0
| | | | it was ignored all this time.
* Backed out revs 1.32-1.33. The problem has been fixed better bybde2002-09-161-2/+0
| | | | | | depolluting <netinet/if_gre.h> in the !_KERNEL case. Reviewed by: sobomax
* Also add #include <netinet/in_systm.h> before <neinet/ip.h> to fix thesobomax2002-09-071-0/+1
| | | | | | world. Submitted by: Brooks Davis <brooks@one-eyed-alien.net>
* Add #include <netinet/ip.h> in attempt to fix the world.sobomax2002-09-071-0/+1
|
* 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.
* Dependencies are delimited by space not tab.ru2002-07-231-2/+2
|
* Consistently use FBSDIDobrien2002-06-301-2/+2
|
* Better warnings fixes. Use more sane argument types instead of bogus castsmarkm2002-06-241-3/+3
| | | | Submitted by: bde
* Better fix for style.markm2002-06-211-6/+6
| | | | Suggested by: ru (but modified a bit by markm)
* Fix warnings generated elsewhere.markm2002-06-211-1/+1
|
* Style tidy-up.markm2002-06-211-2/+4
|
* I now don't seem to be able to reproduce the -DNOCLEAN buildworldru2002-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
* Const the code.dwmalone2002-04-011-1/+3
|
* Back out revision 1.13 (addition of ipfilter includes). A properru2002-03-251-6/+0
| | | | | fix for the relevant world breakage was later committed in revision 1.20, and this now breaks -DNO_IPFILTER world.
* Really fix this work to work. While rev 1.24 did allow awk to run w/oobrien2001-11-011-3/+3
| | | | complaining; the resulting output was useless.
* Utilize the property of 'echo' in that it removes \n from its input.obrien2001-11-011-1/+1
|
* Remove whitespace at EOL.dd2001-07-151-2/+2
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Backout rev. 1.22 as the change that caused problems was also backed out.ru2001-05-241-1/+1
|
* Work around the side effect of src/include/Makefile,v 1.137 changes.ru2001-05-211-1/+1
| | | | (The proper fix is to add missing #include directives.)
* Execute this script in a "C" locale environment.ru2001-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>
* Traverse ${DESTDIR}/usr/include in lexographical order.ru2001-03-271-1/+1
| | | | This should fix problems reported recently on -current.
* Rewrite of the CAM error recovery code.ken2001-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
* Fix ioctl.c creation to deal with the depend case more properly.jkh2000-09-141-2/+6
| | | | Submitted by: Ruslan Ermilov <ru@sunbay.com>
* remove .PHONY to avoid gratuitous rebuild of ioctl.c each time.jkh2000-09-141-1/+1
| | | | Approved by: sef
* Unbreak world build by adding the necessary <net/ethernet.h> include.ru2000-08-021-0/+1
| | | | Submitted by: Nickolay Dudorov <nnd@wint.itfs.nsk.su>
* Make auto-generated ioctl.c to be always considered out of dateru2000-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.
* Fix an off-by-nine error when building a list of includes.ru2000-08-011-1/+1
|
* more pre-requisite for new ipv6 ioctlsitojun2000-07-041-0/+3
|
* 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.
OpenPOWER on IntegriCloud