summaryrefslogtreecommitdiffstats
path: root/usr.bin/kdump/kdump_subr.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate the -r option and always do sysctl OID, username, groupname,guenther2014-12-151-2/+2
| | | | | | | 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@
* Convert syscall argument handling from a giant switch to a giant table.guenther2014-12-081-2/+4
| | | | | | | | | | 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@
* Add dumping of struct dqblk done by quotactl(2)guenther2014-10-131-1/+2
| | | | ok millert@
* Add display of the flags to pipe2, dup3, and accept4, display ofguenther2014-09-171-1/+3
| | | | | | | | 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@
* Recognize itimer and ktrace facility names to {get,set}itimer() and ktrace()guenther2013-12-211-1/+3
| | | | ok otto@
* add some missing prototypes; ok guenther@otto2013-07-041-1/+8
|
* For consistency, move the functions that aren't generated at build-timeguenther2013-07-031-9/+18
| | | | | | from mksubr to kdump.c ok otto@ millert@
* Add support for the _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME options,guenther2013-06-171-1/+2
| | | | | | | | 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@
* Report macro names for the second argument to shutdown(), getrusage(),guenther2012-12-251-2/+4
| | | | | | | | | 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@
* remove rfork(); ok guenther miodderaadt2012-04-121-2/+1
|
* Add tracing and dumping of "pointer to struct" syscall arguments forguenther2012-03-191-1/+2
| | | | | | structs timespec, timeval, sigaction, and rlimit. ok otto@ jsing@
* - add more ptrace() opsguenther2012-02-201-2/+4
| | | | | | | | | | | | | | | | | | | - 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@
* Add fancy kdump support for the openat(2) system calls.matthew2011-07-191-1/+2
| | | | ok otto@
* Support sending struct info to kdump. So far for struct stat andotto2011-07-081-1/+2
| | | | struct sockaddress; mostly from freebsd. ok deraadt@ tedu@ nicm@
* Big restructuring of the main switch making it much more readable.otto2011-07-041-4/+6
| | | | | Also, handle offset_t (long long) args and padding in a consistent manner. ok deraadt@
* Prototypes of functions generated by mksubr.otto2011-06-161-0/+65