summaryrefslogtreecommitdiffstats
path: root/usr.bin/kdump
Commit message (Collapse)AuthorAgeFilesLines
* Add 2-clause BSD license.netchild2011-06-171-0/+23
| | | | | | Approved by: David Kirchner <dpk@dpk.net> (initial author) Requested by: Otto Moerbeek <otto@drijf.net> MFC after: 1 week
* Fix regex for ptraceopname().dchagin2011-06-061-1/+1
| | | | | | PR: bin/157663 Submitted by: jason wright <jason@thought.net> MFC after: 10 days
* kdump: Show code for signals where the default action was taken.jilles2011-04-171-1/+1
| | | | | | | This information is available as of kernel r220740. Trace files from older kernels will always have 0. MFC after: 1 week
* Teach kdump to decode linux syscalls names too.dchagin2011-03-013-19/+138
| | | | | | | | Fix bug introduced in my previous commit: the kernel always dump native signal numbers, so no need to check the ABI in ktrpsig(). Suggested by: jhb MFC after: 1 Month.
* Update manual page to reflect latest changes of ABI description support.dchagin2011-02-251-1/+3
| | | | MFC after: 1 Month.
* Teach kdump to understand sv_flags records in the trace files.dchagin2011-02-251-16/+123
| | | | MFC after: 1 Month.
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-112-8/+0
| | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson
* Decode IPC_CREAT and IPC_EXCL for semget(2).delphij2010-12-021-0/+2
| | | | | | PR: bin/152781 Submitted by: Anton Yuzhaninov <citrin citrin ru> MFC after: 2 weeks
* Correct the abbreviations for general I/O and signal traces.jhb2010-11-011-3/+3
| | | | | | PR: docs/151854 Submitted by: Stephen Veiss stephen of brokenbottle net MFC after: 3 days
* Fix regex for some socket- and acl-related syscall values.netchild2010-10-061-2/+2
| | | | | | Submitted by: Mikhail <hidden.node@gmail.com> PR: 149295 MFC-after: 2 weeks
* Fix indenting of the previous commit.rpaulo2010-09-161-4/+4
|
* When generating functions to print the arguments of system calls withrpaulo2010-09-161-0/+5
| | | | | | | | | | | | | bitwise parameters (e.g. mmap), print the syscall parameter value first. The resulting output looks like the %b specifier of printf(9). Before: mmap(0,0x8000,PROT_READ|PROT_WRITE,... After: mmap(0,0x8000,0x3<PROT_READ|PROT_WRITE>,... Submitted by: Norberto Lopes <nlopes.ml at gmail.com> Idea from: freebsd-arch/2006-April/005116.html
* Change all our own code to use st_*tim instead of st_*timespec.ed2010-03-281-16/+16
| | | | Also remove some local patches to diff(1) which are now unneeded.
* The kdump data stream is an unaligned data stream for stat andimp2010-02-181-3/+9
| | | | | | | | | | sockaddr structures. As such, we have top copy the data structure into a local buffer before we can reference it, otherwise we have unaligned references (these are fixed up automatically on some CPUs, but not on others). We do this unconditionally to make the code easier to read and understand. Submitted by: Grzegorz Bernacki
* - Cast intptr_t, pid_t and time_t values to intmax_t and use %jd withjh2010-02-061-16/+19
| | | | | | | | | printf. - Cast the system call return value to long and use %ld in a printf in ktrsysret(). PR: bin/123774 MFC after: 2 weeks
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-0/+2
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Update malloc utrace structure parsing to reflect the change (r199265)cperciva2009-11-141-11/+8
| | | | | | | | in how malloc_init is logged from (0, 0, 0) to (-1, 0, 0). While we're here, simplify the logic. Reviewed by: jhb (earlier version)
* Use a safety belt for cases where corrupted narg can be passed to theattilio2009-11-071-1/+1
| | | | | | | | | | | ktrsyscall(). print_number() does decrement the number of arguments, leading to infinite loops for negative values. Reported by: Patrick Lamaiziere <patpr at davenulle dot org>, Jonathan Pascal <jkpyvxmzsa at mailinator dot com> Submitted by: jh PR: bin/120055, kern/119564 MFC: 1 week
* Remove no longer needed #include after removing the legacybz2009-07-181-1/+0
| | | | | | | vimage API in r195741. Reviewed by: rwatson Approved by: re (kib)
* Unbreak buildworld.zec2009-05-311-0/+1
| | | | (not waiting for an approval from mentor (julian) due to emergency)
* Delete the old USB stack. The new stack has settled in and has all thethompsa2009-05-271-4/+1
| | | | drivers/functionality and then some.
* Fix kdump build when building it by hand.ed2009-05-251-1/+1
| | | | | | | | | I don't entirely like this approach, but it will only be temporarily, namely until we get rid of COMPAT_43TTY. I do want <sys/ioctl_compat.h> to cause a compiler error when included, because it's just there for binary compatibility. Reported by: Andrzej Tobola <ato iem pw edu pl>
* Add support for old TTY ioctls to kdump.ed2009-05-091-0/+1
| | | | | | | At first I allowed ioctl_compat.h to be included, but it just returned an empty file. I had to do this, to keep kdump happy. I really want to raise a compiler error when including this header, so now it will just throw an error if you don't set COMPAT_43TTY.
* Add two missing include files and prototype for sockfamilyname()delphij2009-03-201-0/+3
| | | | which is generated by mksubr.
* Add a new type of KTRACE record for sysctl(3) invocations. It uses thejhb2009-03-112-0/+5
| | | | | | | | internal sysctl_sysctl_name() handler to map the MIB array to a string name and logs this name in the trace log. This can be useful to see exactly which sysctls a thread is invoking. MFC after: 1 month
* Install the old usb headers under /usr/include/legacy/dev/usb as they arethompsa2009-02-241-1/+4
| | | | | | | | needed by the hal port. This will be removed before 8.0. Add an exclusion to kdump as some structs will be redefined. Requested by: marcus
* Remove netatm from HEAD as it is not MPSAFE and relies on the now removedrwatson2008-05-252-7/+0
| | | | | | | | | | | | | | | | | | | NET_NEEDS_GIANT. netatm has been disconnected from the build for ten months in HEAD/RELENG_7. Specifics: - netatm include files - netatm command line management tools - libatm - ATM parts in rescue and sysinstall - sample configuration files and documents - kernel support as a module or in NOTES - netgraph wrapper nodes for netatm - ctags data for netatm. - netatm-specific device drivers. MFC after: 3 weeks Reviewed by: bz Discussed with: bms, bz, harti
* Spell -t option's argument by name.ru2008-04-022-3/+3
|
* - Remove ksethrcmdname.jeff2008-03-123-9/+0
|
* This patch adds a new ktrace(2) record type, KTR_STRUCT, whose payloaddes2008-02-233-7/+247
| | | | | | | | | | | | | | | | | | | | | | | consists of the null-terminated name and the contents of any structure you wish to record. A new ktrstruct() function constructs and emits a KTR_STRUCT record. It is accompanied by convenience macros for struct stat and struct sockaddr. In kdump(1), KTR_STRUCT records are handled by a dispatcher function that runs stringent sanity checks on its contents before handing it over to individual decoding funtions for each type of structure. Currently supported structures are struct stat and struct sockaddr for the AF_INET, AF_INET6 and AF_UNIX families; support for AF_APPLETALK and AF_IPX is present but disabled, as I am unable to test it properly. Since 's' was already taken, the letter 't' is used by ktrace(1) to enable KTR_STRUCT trace points, and in kdump(1) to enable their decoding. Derived from patches by Andrew Li <andrew2.li@citi.com>. PR: kern/117836 MFC after: 3 weeks
* Revert CLEANDEPFILES commit per ru@'s request; it does not really solvedes2008-02-051-2/+1
| | | | the problem. The correct fix will follow.
* Normally, when a header file is removed from the build (as i4b headersdes2008-02-031-1/+2
| | | | | | | | | | | | | | | | | | | | were recently), a simple 'make cleandepend; make depend' is sufficient to keep the tree buildable after a cvs update when doing incremental builds. However, kdump and truss use a script which searches for header files that define ioctls, and generates C code that includes them. This script will usually not need updating when a header file is removed, so the normal dependency mechanism will not realize that it needs to be re-run. One is therefore left with code that references dead files but will only be removed by a full 'make clean', which defeats the purpose of incremental builds. To work around this, modify the cleandepend target in bsd.dep.mk to also remove any files listed in a new variable named CLEANDEPFILES, and modify kdump's and truss's Makefiles accordingly. MFC after: 2 weeks
* These are files are shell scripts; give smart editors a chance to figuredes2008-02-032-8/+12
| | | | | | it out by adding the usual shebang. MFC after: 2 weeks
* Only use sockoptname() to parse socket option names for SOL_SOCKETjhb2008-01-071-4/+6
| | | | | | | requests. MFC after: 3 days Reported by: Michiel Boland michiel boland.org
* Add several missing comma's in the fancy syscall parsing case beforejhb2007-12-061-0/+12
| | | | | | some arguments that are parsed (e.g., semctl command names). MFC after: 3 days
* 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)
OpenPOWER on IntegriCloud