summaryrefslogtreecommitdiff
path: root/usr.bin/kdump
AgeCommit message (Collapse)Author
2013-09-09Rename the 'pid' global to eliminate compiler warnings about shadowingPhilip Guenther
ok otto@
2013-08-22Split out from kdump.c the ktrstruct.c bits into ktrstruct.cPhilip Guenther
Reduce the #includes to take advantage of that. ok millert@ otto@
2013-07-16Tighten the pattern for matching ioctl definitions in header files andPhilip Guenther
recognize the PTMGET ioctl() ok millert@ (earlier version ok otto@)
2013-07-04add some missing prototypes; ok guenther@Otto Moerbeek
2013-07-03For consistency, move the functions that aren't generated at build-timePhilip Guenther
from mksubr to kdump.c ok otto@ millert@
2013-07-03Use WAIT_* for the first argument to wait4(), and otherwise treat it (andPhilip Guenther
the first argument to kill) as signed 32bit ints. ok millert@ otto@
2013-07-01Tweak regexp so that RUSAGE_CHILDREN will be matched and displayedPhilip Guenther
2013-06-17Add support for the _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME options,Philip Guenther
including CLOCK_{PROCESS,THREAD}_CPUTIME_ID constants and {clock,pthread}_getcpuclockid() functions. Worked out at t2k13 with help from tedu@ and matthew@ and testing by aja@ ok matthew@
2013-06-01Userland bits for utrace record handling; from otto@Miod Vallat
2013-04-23simple large ino_t handlingTheo de Raadt
2013-04-16handle large time_t variables; ok guentherTheo de Raadt
2013-04-15Remove CTL_USER hierarchy from sysctl()Philip Guenther
(Use sysconf() or confstr() instead) ok miod@ millert@
2013-03-15Delete the sequencer(4) driver, since its not used any longer. DiffAlexandre Ratchov
mostly from armani. ok miod, mpi, jsg and help from sthen
2012-12-25Report macro names for the second argument to shutdown(), getrusage(),Philip Guenthe
pathconf(), and fpathconf(), and for poll()'s INFTIM. When open()'s flag arg doesn't include O_CREAT, don't show the third argument unless th e-n option is given. Ditto for fcntl()'s F_GETFD and F_GETFL ops. Show sysctl()'s KERN_PROC_KTHREAD as "kthread". ok otto@
2012-12-05Explicitly include sys/resource.h for RLIM_INF, etc.Todd C. Miller
2012-07-21Make kdump recognize the __MAP_NOREPLACE flag.Matthew Dempsky
ok deraadt
2012-07-11Report ptrace(PT_{GET,SET}XMMREGS) by namePhilip Guenthe
ok otto@
2012-07-09Print the fd_set used by select in kdump.Claudio Jeker
OK guenther@ and deraadt@
2012-07-08Handle the O_ACCMODE bits correctly, so that O_RDONLY is displayedPhilip Guenthe
even when other flag bits are set ok otto@
2012-06-29sigpending() returns a sigset just like sigprocmask(), so decode it the samePhilip Guenthe
ok matthew@ otto@
2012-06-21Add dumping of struct __tfork done by the revised __tfork syscallPhilip Guenthe
2012-06-20Handle PT_GET_THREAD_*Philip Guenthe
ok otto@ kettenis@
2012-06-20CLOCK_* moved from sys/time.h to sys/_time.hPhilip Guenthe
ok otto@ kettenis@
2012-04-12remove rfork(); ok guenther miodTheo de Raadt
2012-04-11guenther and kettenis say THREAD_PID_OFFSET shouldn't be subtractedMike Belopuhov
2012-04-11add -H to usage();Jason McIntyre
2012-04-10Add a start record to the ktrace and use a special magic string "KTR"Mike Belopuhov
to identify ktrace files. kdump(1) will now refuse to operate on trace data without the start record and as a bonus will print only PID, unless an -H flag is specified to print PID/TID pairs. Initial diff, input from and ok deraadt, guenther.
2012-03-31err(1, NULL) can drive people insane, so please avoid it.Theo de Raadt
ok guenther
2012-03-19Add tracing and dumping of "pointer to struct" syscall arguments forPhilip Guenthe
structs timespec, timeval, sigaction, and rlimit. ok otto@ jsing@
2012-02-20- add more ptrace() opsPhilip Guenthe
- be robust against a ktrace file the contains a record with ktr_len==SIZE_MAX, instead of reallocating its buffer to zero size - format the clockid_t argument to clock_*() and __thrsleep() as CLOCK_* - format the sigset_t argument to sigprocmask() and __thrsigdivert(), the return from sigprocmask(), and the mask reported for PSIG records as a bitset of SIG* values, except that if most the bits are set then invert it and prefix with '~' - show the next level of the kern.proc sysctl - __tfork() creates procs, so do the mappidtoemul() handling - refactor ktrstat()'s time printing bits and fix a whitespace glitch in its output - reduce stack usage in ktrstruct() - a value of zero is not an error for mode bits (S_*), atflag bits (AT_*), wait options (W*), or shmat flags (SHM_*) ok otto@
2011-10-06mark ccd(4) deprecated in a few more placesTheo de Raadt
2011-10-06ccd goes to the atticTheo de Raadt
discussed with jsing and millert
2011-09-19teach kdump about "siginfo-style" signal sub-codes, and the (currently)Theo de Raadt
limited subset of information the kernel supplies. ok miod pirofti
2011-07-28Resolve sysctl numbers, original diff from nicm@, man page bits fromOtto Moerbeek
guenther@; ok guenther@ millert@
2011-07-19Add fancy kdump support for the openat(2) system calls.Matthew Dempsky
ok otto@
2011-07-17handle files produced by ktrace -a better by making a distinctionOtto Moerbeek
between default and current emulation; ok guenther@
2011-07-17since we're treating native emuls different (more fancy) thanOtto Moerbeek
non-native we should do a better job of tracking the emul corresponding to a pid; ok guenther@; also tested by pirofti@
2011-07-10Make -m 0 work as expected.Otto Moerbeek
2011-07-09mention new struct trace point letterOtto Moerbeek
2011-07-09print the name of an unknown struct, it has been verified to be sane;Otto Moerbeek
prodded by tedu@
2011-07-09remove more atalk bitsTheo de Raadt
2011-07-08add -r to SYNOPSIS;Jason McIntyre
2011-07-08Support sending struct info to kdump. So far for struct stat andOtto Moerbeek
struct sockaddress; mostly from freebsd. ok deraadt@ tedu@ nicm@
2011-07-07Don't crash on non-native emuls; ok guenther@Otto Moerbeek
2011-07-04remove compat_svr4Ted Unangst
2011-07-04Big restructuring of the main switch making it much more readable.Otto Moerbeek
Also, handle offset_t (long long) args and padding in a consistent manner. ok deraadt@
2011-06-25DESTDIR handling does not belong here. This is built live.Theo de Raadt
ok otto
2011-06-23Don't check dev/ramdisk.h for ioctl(2) commands as it doesn't existMatthew Dempsky
anymore. Noticed by and ok claudio@
2011-06-20more fancy kdump output, mostly from FreeBSD; ok deraadt@ tedu@Otto Moerbeek
2011-06-16Prototypes of functions generated by mksubr.Otto Moerbeek