summaryrefslogtreecommitdiffstats
path: root/usr.bin/kdump
Commit message (Collapse)AuthorAgeFilesLines
* Disconnect netatm from the build as it is not MPSAFE and relies onrwatson2007-07-141-4/+5
| | | | | | | | | | | | | | | | | | | | NET_NEEDS_GIANT, which will shortly be removed. This is done in a away that it may be easily reattached to the build before 7.1 if appropriate locking is added. Specifics: - Don't install netatm include files - Disconnect netatm command line management tools - Don't build libatm - Don't include ATM parts in rescue or sysinstall - Don't install sample configuration files and documents - Don't build kernel support as a module or in NOTES - Don't build netgraph wrapper nodes for netatm This removes the last remaining consumer of NET_NEEDS_GIANT. Reviewed by: harti Discussed with: bz, bms Approved by: re (kensmith)
* Fix alignment of context switch traces.jhb2007-07-101-1/+1
| | | | | MFC after: 1 week Approved by: re (rwatson: "I like simple patches.")
* kdump has knowledge of lseek() and mmap() arg decoding. Teach it aboutpeter2007-07-041-1/+25
| | | | | | the new mmap and lseek syscalls. Approved by: re (kensmith)
* Add prototype for generated ptraceopname function.emaste2007-04-091-0/+1
|
* Remove static ptrace_ops array and extract ptrace op names fromemaste2007-04-092-36/+4
| | | | sys/ptrace.h with mksubr.
* Add various utrace's for use with ktrace to the ELF runtime linker. Tojhb2007-01-091-0/+107
| | | | | | | | activate the traces, set the LD_UTRACE (or LD_32_UTRACE) environment variable. This also includes code in kdump(8) to parse the traces. Reviewed by: kan, jdp MFC after: 2 weeks
* Add code to parse the utrace(2) entries generated by malloc(3) in a morejhb2007-01-051-1/+30
| | | | | | | | human-readable format. Note that we report 'realloc(p, 0)' as 'free(p)' since both cases are encoded the same way and 'free()' is more common than a realloc() to 0. MFC after: 1 week
* Add sockipprotoname() function. Decode the third parameter (protocol)rodrigc2007-01-043-1/+14
| | | | | | | | | | | of a socket() call with sockipprotoname() if the first parameter (domain) is PF_INET or PF_INET6. Old parsing behavior before this change: ping6 CALL socket(PF_INET6,SOCK_RAW,0x3a) New behavior after this change: ping6 CALL socket(PF_INET6,SOCK_RAW,IPPROTO_ICMPV6)
* Generate sockdomainname() function with auto_if_type() insteadrodrigc2007-01-041-1/+1
| | | | | | | | | | | of auto_or_type. The old parsing code would incorrectly decode a socket() call in the ping6 program as: CALL socket(PF_PUP|PF_ECMA|PF_APPLETALK|PF_COIP|PF_SIP,SOCK_DGRAM,0) The new parsing code decodes the same socket() call as: CALL socket(PF_INET6,SOCK_DGRAM,0)
* Add auto_if_type() function, which is similar to auto_switch_type().rodrigc2007-01-041-0/+30
| | | | | | | | However, auto_if_type() uses if/else statements in C instead of a single switch statement, when mapping an integer value to a #define. For certain cases where multiple #define constants alias to a single integer value, auto_if_type() makes things easier to parse than auto_switch_type().
* The second argument (type) to socket(2) is an enum, not a bitmask, so parserodrigc2006-12-221-1/+1
| | | | | | | | | | | | | it as an enum. If an SCTP SOCK_SEQPACKET socket was opened, kdump would display this wrong output: socket(PF_INET,SOCK_STREAM|SOCK_RDM|SOCK_SEQPACKET,0x84) instead of this correct output: socket(PF_INET,SOCK_SEQPACKET,0x84) MFC after: 2 weeks
* o optname, the third {set,get}sockopt(2) argument, is an enum, not a bitmap.maxim2006-09-181-1/+1
| | | | | | | Treat it accordingly. PR: bin/101642 MFC after: 3 weeks
* 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
|
OpenPOWER on IntegriCloud