OpenBSD CVS

CVS log for src/usr.bin/kdump/kdump_subr.h


[BACK] Up to [local] / src / usr.bin / kdump

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.23 / (download) - annotate - [select for diffs], Mon Dec 19 22:55:12 2022 UTC (16 months, 4 weeks ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.22: +2 -1 lines
Diff to previous 1.22 (colored)

Improve reporting of waitid(2)'s idtype/id and options arguments
Add mimmutable(2) to report like munmap(2)

Revision 1.22 / (download) - annotate - [select for diffs], Mon Nov 5 17:05:50 2018 UTC (5 years, 6 months ago) by anton
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.21: +2 -1 lines
Diff to previous 1.21 (colored)

trace struct flock; ok visa@

Revision 1.21 / (download) - annotate - [select for diffs], Fri Apr 28 13:53:05 2017 UTC (7 years ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

Display futex(2) operations and arguments.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Jun 7 06:12:37 2016 UTC (7 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored)

ktrace support for pollfd[] arrays
ok guenther

Revision 1.19 / (download) - annotate - [select for diffs], Tue Mar 22 16:45:07 2016 UTC (8 years, 1 month ago) by guenther
Branch: MAIN
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (colored)

Format the flags argument to sendsyslog()

ok deraadt@ bluhm@

Revision 1.18 / (download) - annotate - [select for diffs], Thu Jan 14 05:27:42 2016 UTC (8 years, 4 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.17: +4 -1 lines
Diff to previous 1.17 (colored)

Display struct event more like other structs: show all members and use cpp
define names.  Use the mksubr infrastructure for EVFILT_*,
EV_*, and (with some kludging) NOTE_* values.  If EV_ERROR is set,
include the errno string for the data member.

Also, do MSG_* parsing on the msg_flags member of struct msghdr.

ok millert@

Revision 1.17 / (download) - annotate - [select for diffs], Sat Oct 3 23:52:30 2015 UTC (8 years, 7 months ago) by guenther
Branch: MAIN
Changes since 1.16: +2 -3 lines
Diff to previous 1.16 (colored)

Add ktracing of tame()'s arguments' values

"every tool helps" deraadt@

Revision 1.16 / (download) - annotate - [select for diffs], Mon Dec 15 01:48:54 2014 UTC (9 years, 5 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

Eliminate the -r option and always do sysctl OID, username, groupname,
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@

Revision 1.15 / (download) - annotate - [select for diffs], Mon Dec 8 21:23:44 2014 UTC (9 years, 5 months ago) by guenther
Branch: MAIN
Changes since 1.14: +4 -2 lines
Diff to previous 1.14 (colored)

Convert syscall argument handling from a giant switch to a giant table.
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@

Revision 1.14 / (download) - annotate - [select for diffs], Mon Oct 13 03:46:33 2014 UTC (9 years, 7 months ago) by guenther
Branch: MAIN
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

Add dumping of struct dqblk done by quotactl(2)

ok millert@

Revision 1.13 / (download) - annotate - [select for diffs], Wed Sep 17 19:12:55 2014 UTC (9 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.12: +3 -1 lines
Diff to previous 1.12 (colored)

Add display of the flags to pipe2, dup3, and accept4, display of
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@

Revision 1.12 / (download) - annotate - [select for diffs], Sat Dec 21 07:32:35 2013 UTC (10 years, 5 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.11: +3 -1 lines
Diff to previous 1.11 (colored)

Recognize itimer and ktrace facility names to {get,set}itimer() and ktrace()

ok otto@

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jul 4 08:29:34 2013 UTC (10 years, 10 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.10: +8 -1 lines
Diff to previous 1.10 (colored)

add some missing prototypes; ok guenther@

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jul 3 23:04:34 2013 UTC (10 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.9: +18 -9 lines
Diff to previous 1.9 (colored)

For consistency, move the functions that aren't generated at build-time
from mksubr to kdump.c

ok otto@ millert@

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jun 17 19:11:54 2013 UTC (10 years, 11 months ago) by guenther
Branch: MAIN
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (colored)

Add support for the _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME options,
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@

Revision 1.8 / (download) - annotate - [select for diffs], Tue Dec 25 09:35:51 2012 UTC (11 years, 4 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.7: +4 -2 lines
Diff to previous 1.7 (colored)

Report macro names for the second argument to shutdown(), getrusage(),
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@

Revision 1.7 / (download) - annotate - [select for diffs], Thu Apr 12 12:33:04 2012 UTC (12 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.6: +1 -2 lines
Diff to previous 1.6 (colored)

remove rfork(); ok guenther miod

Revision 1.6 / (download) - annotate - [select for diffs], Mon Mar 19 09:05:39 2012 UTC (12 years, 2 months ago) by guenther
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

Add tracing and dumping of "pointer to struct" syscall arguments for
structs timespec, timeval, sigaction, and rlimit.

ok otto@ jsing@

Revision 1.5 / (download) - annotate - [select for diffs], Mon Feb 20 21:04:35 2012 UTC (12 years, 3 months ago) by guenther
Branch: MAIN
Changes since 1.4: +4 -2 lines
Diff to previous 1.4 (colored)

- add more ptrace() ops
- 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@

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jul 19 18:20:12 2011 UTC (12 years, 10 months ago) by matthew
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

Add fancy kdump support for the openat(2) system calls.

ok otto@

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jul 8 19:29:44 2011 UTC (12 years, 10 months ago) by otto
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

Support sending struct info to kdump. So far for struct stat and
struct sockaddress; mostly from freebsd. ok deraadt@ tedu@ nicm@

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jul 4 06:44:52 2011 UTC (12 years, 10 months ago) by otto
Branch: MAIN
Changes since 1.1: +6 -4 lines
Diff to previous 1.1 (colored)

Big restructuring of the main switch making it much more readable.
Also, handle offset_t (long long) args and padding in a consistent manner.
ok deraadt@

Revision 1.1 / (download) - annotate - [select for diffs], Thu Jun 16 17:14:53 2011 UTC (12 years, 11 months ago) by otto
Branch: MAIN

Prototypes of functions generated by mksubr.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.