summaryrefslogtreecommitdiff
path: root/usr.bin/kdump
AgeCommit message (Collapse)Author
2014-09-17Add display of the flags to pipe2, dup3, and accept4, display ofPhilip Guenther
MSG_CMSG_CLOEXEC in recvmsg, and display of SOCK_{CLOEXEC,NONBLOCK} in socket and socketpair. Do _not_ display the O_ACCMODE bits in the arg to fcntl(F_SETFD) ok miod@
2014-08-20Remove userland bits related to the crypto(4) interface; ok deraadtMike Belopuhov
2014-08-18Add fancy printing of ktrace()'s ops argumentPhilip Guenther
mquery() has the exact same argument layout as mmap(), so share the case Fix a couple brace placement glitches
2014-08-17Use %#o instead of %#x for mode_tPhilip Guenther
2014-08-17Display symbolicly the mode argument of mkdir, mkfifo, mknod, and umaskPhilip Guenther
2014-07-11remove (commented) bluetooth referenceTed Unangst
2014-07-11Grok the new /dev/klog LIOCSFD ioctl associated with sendsyslog(2)Theo de Raadt
ok matthew guenther miod tedu
2014-07-02properly process minherit(2) flags; ok guenther@ matthew@Otto Moerbeek
2014-06-27Cleanup support for legacy mmap flagsMatthew Dempsky
Move all legacy MAP_FOO values behind #ifndef _KERNEL and redefine them to either be aliases for existing flags (e.g., MAP_COPY -> MAP_PRIVATE) or 0. Also, add MAP_OLDFOO defines (behind #ifndef _KERNEL) so the kernel and kdump can remain compatible with current OpenBSD binaries. ok deraadt
2014-06-22Negative time{spec,val}s with non-zero subsecond parts require extraPhilip Guenther
handling. E.g., a timeval of { -1, 1 } is -0.999999, as the subsecond part is always positive. Also, update the list of sockaddr_* types that we might add support for
2014-03-18<sys/agpio.h> is gone; pointed out by Benoit Lecocq.Mark Kettenis
2014-01-24exit1() needs to do a final aggregation of the thread's [us]ticksPhilip Guenther
and runtime to the process totals. Also, add ktracing of struct rusage in wait4() and getrusage(). problem pointed out by tedu@ ok deraadt@
2013-12-21Recognize itimer and ktrace facility names to {get,set}itimer() and ktrace()Philip Guenther
ok otto@
2013-12-21Refer to the kernel headers consistently via ../../sys, even for mkioctlPhilip Guenther
and mksubr ok otto@
2013-12-134.3BSD tty compatibility and the associated ioctls are goneChristian Weisgerber
2013-11-22Teach kdump(1) about USB, VIDIOC and generic DRM ioctls.Martin Pieuchot
ok deraadt@, guenther@
2013-09-09Recognize the UTIME_OMIT and UTIME_NOW values when printing timespecsPhilip Guenther
ok otto@
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