summaryrefslogtreecommitdiff
path: root/usr.bin/kdump
AgeCommit message (Collapse)Author
2004-01-12- add a new flags field to the emulation vector, with one user so farmrg
EMUL_FLAG_NETBSD32. set EMUL_FLAG_NETBSD32 in any 32 bit on 64 bit kernel emulation layers. - if EMUL_FLAG_NETBSD32 is set, calculate the proper argument count. (XXX: this should use register32_t, but that's not visible to all builders of kdump...) now netbsd32_ioctl(2) actually reports sane values, and other arguments are mostly correctly printed (there are still some signed extension issues with 32 bit numbers being displayed as "0xffffffff8xxxxxxx".)
2003-11-24Fix cross-build problem on sparc caused by a cast size_t -> intmanu
2003-11-24Enable tracing of out of line data sent with Mach messagesmanu
2003-11-18For Mach messages, always display the message Id in decimal. The informationmanu
is indeed in the message, but in hex. It's a bit inconvenient.
2003-11-18Stop core dump if an ioctl trace has fewer than expected arguments.dsl
- Check names of system calls (for special treatment) because emulations might use different numbers. - Report an error if arguments to -p or -m non-numeric. - Just take last of -x and -Xvalue, stop -X0x80000000 being valid (core dumps). - Keep 'last used' emulation_ctx at top of list, create on lookup (usually EMUL anyway), delete when exit called (doesn't return). - Slightly improve hack to get correct system call name in execve return when emulation has changed. - Rename global variables 'current'/'previous' to 'cur_emul'/'prev_emul'. (TODO: save system call type (and maybe an argument) per pid so GIO trace format can depend on the actual system call.) Fixes part of PR sparc64/23473 - but system call arguments will still not be displayed correctly.
2003-11-16New sentence, new line; add comma in enumeration.wiz
2003-11-16Following mycroft's comment, restore -x to its original behavior: withoutmanu
an argument. Introduce -Xsize to do the job. -x is equivalent to -X1 Of course -x and -Xsize are mutually exclusive.
2003-11-16Validate the numeric argument to -x, support -x1|2|4|8|16.dsl
Produce sensible output on little-endian systems.
2003-11-16Bump date for previous. New sentence, new line.wiz
2003-11-16Add an argument to the -x flag to choose between byte per byte displaymanu
and word per word display in hex dumps. -x1 gives you byte per byte, -x4 word per word, and -x defaults to -x1
2003-11-16Re-add the static root conditionnal that was removed by mistake.manu
2003-11-15kdump now displays Mach services names itself, including a table ofmanu
id/names in sys/compat/mach/mach_services_names.c Remove ports and flags displays, the information is already in the message.
2003-11-13Look for siginfo in the correct place - otherwise kdump is rebuilt all the time.dsl
2003-11-13Use envariable AWKmatt
2003-10-21Rework how MAKEVERBOSE operates:lukem
* Don't bother prefixing commands with a line of ${_MKCMD}\ and instead rely upon "make -s". This is less intrusive on all the Makefiles than the former. Idea from David Laight. * Rename the variables use to print messages. The scheme now is: _MKMSG_FOO Run _MKMSG 'foo' _MKTARGET_FOO Run _MKMSG_FOO ${.TARGET} From discussion with Alistair Crooks.
2003-10-19KNF:christos
- ansify - no breaks after returns - statics where needed - no exit after errx
2003-10-19support MAKEVERBOSE and use ${HOST_SH}lukem
2003-09-20Fix printf botchmatt
2003-09-20improve formatting in the non-siginfo case, by printing the code. This ischristos
for compatibility with the old ktrace files.
2003-09-19Print siginfo_t information when available.christos
2003-08-27* Make it a little easier to add new "ioctl defns are in these files".thorpej
* Add the ability to decode the cryptodev ioctls.
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-07-17Grok KTR_EXEC_ENV and KTR_EXEC_ARG.dsl
Make ktrace -c default to removing all trace points (not just the default ones). Make kdump default to dumping everything in the trace file. Add 'A' (all) and '-' (remove following) to valid -t arguments. Dump data block of UNKNOWN trace points in hex + ascii. Make first time output with -R 0 (instead of time since epoch). Use svis() instead of vis() to get " escaped (as \") (needs fixed libc) Correctly pass unsigned values to svis() Update man pages.
2003-07-13Change back to print hex bytes. The 'word' print was completely brokendsl
on little endian systems. It is also much easier to read misaligned words in a straight byte hexdump. Cut offset to 3 hex digits so that it fixs in 80 columns and still leaves a tab at the start of 'continuation' lines. The ktrace buffer is limited to 4k, so 3 digits is ample.
2003-07-13On some ports, pointer differences are not ints, so do a casthe
before using such a result as a field width.
2003-07-12Make hexdump output fix in 80 char-wide terminalmanu
2003-07-12Use the same code to display hexdump of GIO and MMSG (Mach Messages).manu
While we are there, display offsets in the hexdump, it can be useful. Remove size display in Mach Messages as user processes don't always fill it correctly.
2003-07-11Add -x to usage output.wiz
2003-07-11Bump date for -x addition.wiz
2003-07-11Add a '-x' option to display GIO data blocks in hex and ascii (instead ofdsl
vis(3) format). Maybe there could be a heuristic to decide whether the data is printable...
2003-06-29Back out previous.fvdl
2003-06-29Since a caddr_t is (mis-)used as the lwp-id, cast it to intptr_t and usemartin
apropriate format string.
2003-06-28add appropriate hack to display ktr_buf as the lwpid if -L is supplied ondarrenr
the command line.
2003-06-24Add sys/sockio.h to needed includes for SIOCGIFASYNCMAP.mjl
2003-05-15Print rval[1] if non-zero and present in the trace entry.dsl
To get both fd numbers for pipe().
2003-04-18Don't invoke the grep for cleandir and obj targets. Suggested bychristos
Juergen Hannken-Illjes
2003-04-13PR/21117: Robert Elz: Makefile-ioctl.c mishandles dependencieschristos
2003-02-25.Nm does not need a dummy argument ("") before punctuation orwiz
for correct formatting of the SYNOPSIS any longer.
2003-01-30Make "-m0" print no data, so that we agree better with the man page.atatat
2002-12-09Added support for dumping mach messages in ktrace/kdump. While we aremanu
there, KNFify a few functions.
2002-11-29Sync usage with man page (and actual options).wiz
2002-11-29Bump date for -N; sort options.wiz
2002-11-28signame(): if sig == 0, return name " 0", so that the result would bejdolecek
printed as: CALL kill(0x1e4, SIG 0) rathern than previous CALL kill(0x1e4, SIG*unknown 0*)
2002-11-27Add -N which inhibits translation of system calls numbers into names.atatat
2002-11-15Now properly display Mach trapsmanu
2002-10-29Added support for COMPAT_MACHmanu
2002-09-28Bump date for .Op Ar file addition.wiz
2002-09-27Allow passing of the ktrace file as the last argument without a -f.atatat
2002-09-19use NETBSDSRCDIR as appropriatelukem
2002-09-18remove extra $ from previous commitlha