OpenBSD CVS

CVS log for src/usr.bin/kdump/ktrstruct.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.31 / (download) - annotate - [select for diffs], Thu Dec 29 01:36:36 2022 UTC (16 months, 2 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.30: +16 -1 lines
Diff to previous 1.30 (colored)

Add ktrace struct tracepoints for siginfo_t to the kernel side of
waitid(2) and __thrsigdivert(2) and teach kdump(1) to handle them.
Also report more from the siginfo_t inside PSIG tracepoints.

ok mpi@

Revision 1.30 / (download) - annotate - [select for diffs], Thu Sep 8 16:04:31 2022 UTC (20 months, 1 week ago) by mbuhl
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.29: +20 -1 lines
Diff to previous 1.29 (colored)

Support the sendmmsg and recvmmsg system calls.
Input guenther@
OK bluhm@

Revision 1.29 / (download) - annotate - [select for diffs], Mon Dec 21 07:47:37 2020 UTC (3 years, 4 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.28: +7 -4 lines
Diff to previous 1.28 (colored)

Show scope id when set; ok florian@

Revision 1.28 / (download) - annotate - [select for diffs], Sat Nov 17 20:46:12 2018 UTC (5 years, 6 months ago) by claudio
Branch: MAIN
CVS Tags: 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.27: +4 -2 lines
Diff to previous 1.27 (colored)

Be more careful when dumping cmsghdr struct. In the SCM_RIGHTS case an
extra check for a truncated cmsghdr needs to be done since the embeded
lenght may be longer than the supplied buffer (MSG_CTRUNC case).
OK deraadt@

Revision 1.27 / (download) - annotate - [select for diffs], Thu Nov 8 18:35:56 2018 UTC (5 years, 6 months ago) by otto
Branch: MAIN
Changes since 1.26: +16 -7 lines
Diff to previous 1.26 (colored)

Peldge and unveil can have struct data size 0. While there, fix "fds"
handler; ok guenther@

Revision 1.26 / (download) - annotate - [select for diffs], Mon Nov 5 17:05:50 2018 UTC (5 years, 6 months ago) by anton
Branch: MAIN
Changes since 1.25: +20 -1 lines
Diff to previous 1.25 (colored)

trace struct flock; ok visa@

Revision 1.25 / (download) - annotate - [select for diffs], Fri Jul 13 09:25:23 2018 UTC (5 years, 10 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.24: +5 -1 lines
Diff to previous 1.24 (colored)

Unveiling unveil(2).
This brings unveil into the tree, disabled by default - Currently
this will return EPERM on all attempts to use it until we are
fully certain it is ready for people to start using, but this
now allows for others to do more tweaking and experimentation.

Still needs to send the unveil's across forks and execs before
fully enabling.

Many thanks to robert@ and deraadt@ for extensive testing.
ok deraadt@

Revision 1.24 / (download) - annotate - [select for diffs], Tue Dec 12 01:12:34 2017 UTC (6 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.23: +6 -6 lines
Diff to previous 1.23 (colored)

pledge()'s 2nd argument becomes char *execpromises, which becomes the
pledge for a new execve image immediately upon start.  Also introduces
"error" which makes violations return -1 ENOSYS instead of killing the
program ("error" may not be handed to a setuid/setgid program, which
may be missing/ignoring syscall return values and would continue with
inconsistant state)
Discussion with many
florian has used this to improve the strictness of a daemon

Revision 1.23 / (download) - annotate - [select for diffs], Sat Oct 8 02:16:43 2016 UTC (7 years, 7 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.22: +19 -1 lines
Diff to previous 1.22 (colored)

Add ktracing of the fds returned by pipe() and socketpair()

ok deraadt@

Revision 1.22 / (download) - annotate - [select for diffs], Fri Aug 26 08:52:19 2016 UTC (7 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.21: +2 -1 lines
Diff to previous 1.21 (colored)

Pull in <sys/select.h> for fd_set

ok deraadt@

Revision 1.21 / (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_0_BASE, OPENBSD_6_0
Changes since 1.20: +26 -1 lines
Diff to previous 1.20 (colored)

ktrace support for pollfd[] arrays
ok guenther

Revision 1.20 / (download) - annotate - [select for diffs], Tue Jun 7 01:34:39 2016 UTC (7 years, 11 months ago) by tedu
Branch: MAIN
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored)

add a hack to avoid printing the long string format for times in the 70s.
this is usually a result of a timestamp which hasn't been identified as
"relative" and decoding them to precise dates long in the past is a
distraction. (eagerly awaiting a cleaner, better diff to do the same.)

Revision 1.19 / (download) - annotate - [select for diffs], Sun May 22 23:02:28 2016 UTC (7 years, 11 months ago) by guenther
Branch: MAIN
Changes since 1.18: +9 -3 lines
Diff to previous 1.18 (colored)

On hppa, function pointer comparison can require dereferencing them.
kdump can't do that for a sigaction sa_handler pointer from the trace,
so cast to void* to suppress it.

ok deraadt@

Revision 1.18 / (download) - annotate - [select for diffs], Thu Mar 24 05:05:42 2016 UTC (8 years, 1 month ago) by guenther
Branch: MAIN
Changes since 1.17: +25 -24 lines
Diff to previous 1.17 (colored)

Display NAMI records and AF_UNIX socket paths with vis, using
VIS_CSTYLE | VIS_DQ | VIS_TAB | VIS_NL; add the latter three flags
to the existing vis encoding of exec argv/environ and pledge
requests/paths.
Delete local variables left unused when showbuf() and showbufc() were split

ok otto@ millert@

Revision 1.17 / (download) - annotate - [select for diffs], Sat Mar 5 19:46:55 2016 UTC (8 years, 2 months ago) by guenther
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Make the fd_set* passed to FD_ISSET() non-const: the non-macro version is
stricter (per POSIX, dang it)

Revision 1.16 / (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.15: +15 -42 lines
Diff to previous 1.15 (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.15 / (download) - annotate - [select for diffs], Wed Jan 6 17:52:18 2016 UTC (8 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.14: +41 -2 lines
Diff to previous 1.14 (colored)

print more info about kevent

Revision 1.14 / (download) - annotate - [select for diffs], Fri Dec 25 02:11:47 2015 UTC (8 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.13: +23 -1 lines
Diff to previous 1.13 (colored)

very basic kevent printing

Revision 1.13 / (download) - annotate - [select for diffs], Sun Oct 18 05:03:22 2015 UTC (8 years, 7 months ago) by guenther
Branch: MAIN
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

Use offsetof() instead of adding the sizes of the preceeding struct members

ok millert@

Revision 1.12 / (download) - annotate - [select for diffs], Fri Oct 9 01:37:08 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.11: +7 -7 lines
Diff to previous 1.11 (colored)

Change all tame callers to namechange to pledge(2).

Revision 1.11 / (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.10: +9 -1 lines
Diff to previous 1.10 (colored)

Add ktracing of tame()'s arguments' values

"every tool helps" deraadt@

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jul 28 05:50:41 2015 UTC (8 years, 9 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.9: +100 -1 lines
Diff to previous 1.9 (colored)

Add ktracing of structs iovec, msghdr, and cmsghdr for {,p}{read,write}v(),
sendmsg(), and recvmsg().  For cmsghdr, the len, level, and type are always
shown, and for SOL_SOCKET,SCM_RIGHTS the fd numbers being passed are shown.

ok millert@ deraadt@

Revision 1.9 / (download) - annotate - [select for diffs], Tue Dec 16 03:19:23 2014 UTC (9 years, 5 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.8: +6 -3 lines
Diff to previous 1.8 (colored)

Don't display formatted time if localtime() fails.
Avoids a crash in strftime() found with the afl fuzzer.
ok guenther@

Revision 1.8 / (download) - annotate - [select for diffs], Mon Dec 15 01:48:54 2014 UTC (9 years, 5 months ago) by guenther
Branch: MAIN
Changes since 1.7: +55 -36 lines
Diff to previous 1.7 (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.7 / (download) - annotate - [select for diffs], Thu Nov 20 18:44:10 2014 UTC (9 years, 6 months ago) by krw
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Be more POSIXy by using blksize_t (a.k.a. int32) for st_blksize, rather than the current uint32_t.

ok guenther@ deraadt@

Revision 1.6 / (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.5: +23 -1 lines
Diff to previous 1.5 (colored)

Add dumping of struct dqblk done by quotactl(2)

ok millert@

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jul 11 21:49:13 2014 UTC (9 years, 10 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.4: +1 -3 lines
Diff to previous 1.4 (colored)

remove (commented) bluetooth reference

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jun 22 23:50:45 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.3: +21 -9 lines
Diff to previous 1.3 (colored)

Negative time{spec,val}s with non-zero subsecond parts require extra
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

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jan 24 04:26:51 2014 UTC (10 years, 3 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.2: +33 -3 lines
Diff to previous 1.2 (colored)

exit1() needs to do a final aggregation of the thread's [us]ticks
and runtime to the process totals.  Also, add ktracing of struct
rusage in wait4() and getrusage().

problem pointed out by tedu@
ok deraadt@

Revision 1.2 / (download) - annotate - [select for diffs], Mon Sep 9 05:10:32 2013 UTC (10 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.1: +10 -4 lines
Diff to previous 1.1 (colored)

Recognize the UTIME_OMIT and UTIME_NOW values when printing timespecs

ok otto@

Revision 1.1 / (download) - annotate - [select for diffs], Thu Aug 22 02:02:33 2013 UTC (10 years, 8 months ago) by guenther
Branch: MAIN

Split out from kdump.c the ktrstruct.c bits into ktrstruct.c
Reduce the #includes to take advantage of that.

ok millert@ otto@

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.