summaryrefslogtreecommitdiff
path: root/usr.bin/kdump
AgeCommit message (Collapse)Author
2014-12-16Don't display formatted time if localtime() fails.Jonathan Gray
Avoids a crash in strftime() found with the afl fuzzer. ok guenther@
2014-12-15remove -r from usage();Jason McIntyre
2014-12-15Eliminate the -r option and always do sysctl OID, username, groupname,Philip Guenther
and ctime presentation, but combined with the numeric form ala 0<"root">. Do username and groupname presentation on syscall arguments and retvals. ok millert@ otto@
2014-12-11Make quotactlcmd formatting consistent with othersPhilip Guenther
Fix some indentation in the generated .c file
2014-12-09Add some additional sanity checks to kdump.Jonathan Gray
Fixes a variety of crashes found with the afl fuzzer. ok miod@ on an earlier version.
2014-12-08Convert syscall argument handling from a giant switch to a giant table.Philip Guenther
While at it, use formatters for fds, counts, ids of all types, and "small buffer sizes" that always show them in decimal, while paths, pointers, and "big buffer sizes" get formatters that always show them in hex. The -d option only affects args when the -n option is used or for unknown syscalls, as well as syscall return values, and unrecognized ioctls. ok otto@ millert@
2014-11-20Be more POSIXy by using blksize_t (a.k.a. int32) for st_blksize, rather than ↵Kenneth R Westerback
the current uint32_t. ok guenther@ deraadt@
2014-10-13Add dumping of struct dqblk done by quotactl(2)Philip Guenther
ok millert@
2014-10-08userland reallocarray audit.Doug Hogan
Replace malloc() and realloc() calls that may have integer overflow in the multiplication of the arguments with reallocarray(). ok deraadt@
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