Up to [local] / src / usr.bin / kdump
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.163 / (download) - annotate - [select for diffs], Sat May 18 05:20:22 2024 UTC (3 weeks, 2 days ago) by guenther
Branch: MAIN
CVS Tags: HEAD
Changes since 1.162: +2 -1 lines
Diff to previous 1.162 (colored) to selected 1.88 (colored)
Add pathconfat(2): pathconf(2) but with at-fd and flags arguments, the latter supporting the ability to get timestamp resolution of symlinks. ok deraadt@ millert@
Revision 1.162 / (download) - annotate - [select for diffs], Fri Mar 29 07:53:32 2024 UTC (2 months, 1 week ago) by deraadt
Branch: MAIN
Changes since 1.161: +1 -2 lines
Diff to previous 1.161 (colored) to selected 1.88 (colored)
SYS_msyscall will go away soon. kdump does not need a special handler for it. ok tb
Revision 1.161 / (download) - annotate - [select for diffs], Fri Dec 15 15:12:08 2023 UTC (5 months, 3 weeks ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5
Changes since 1.160: +29 -1 lines
Diff to previous 1.160 (colored) to selected 1.88 (colored)
provide the pieces for ktrace/kdump to observe pinsyscall violations. (not used yet, because the pinsyscall changes are still being worked on) ok kettenis
Revision 1.160 / (download) - annotate - [select for diffs], Tue Dec 12 15:30:55 2023 UTC (5 months, 4 weeks ago) by deraadt
Branch: MAIN
Changes since 1.159: +2 -4 lines
Diff to previous 1.159 (colored) to selected 1.88 (colored)
remove support for syscall(2) -- the "indirection system call" because it is a dangerous alternative entry point for all system calls, and thus incompatible with the precision system call entry point scheme we are heading towards. This has been a 3-year mission: First perl needed a code-generated wrapper to fake syscall(2) as a giant switch table, then all the ports were cleaned with relatively minor fixes, except for "go". "go" required two fixes -- 1) a framework issue with old library versions, and 2) like perl, a fake syscall(2) wrapper to handle ioctl(2) and sysctl(2) because "syscall(SYS_ioctl" occurs all over the place in the "go" ecosystem because the "go developers" are plan9-loving unix-hating folk who tried to build an ecosystem without allowing "ioctl". ok kettenis, jsing, afresh1, sthen
Revision 1.159 / (download) - annotate - [select for diffs], Thu Nov 9 15:43:28 2023 UTC (7 months ago) by kn
Branch: MAIN
Changes since 1.158: +11 -4 lines
Diff to previous 1.158 (colored) to selected 1.88 (colored)
Add [-P progam] to filter dumps by basename [-p pid] requires knowing the PIDs beforehand, sieving through big dumps by argv[0] strings is more ergonomic. OK deraadt
Revision 1.158 / (download) - annotate - [select for diffs], Mon Aug 21 01:37:56 2023 UTC (9 months, 2 weeks ago) by visa
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE,
OPENBSD_7_4
Changes since 1.157: +2 -1 lines
Diff to previous 1.157 (colored) to selected 1.88 (colored)
Make kdump show kqueue1(2) flags. OK guenther@
Revision 1.157 / (download) - annotate - [select for diffs], Sun Apr 16 19:42:40 2023 UTC (13 months, 3 weeks ago) by otto
Branch: MAIN
Changes since 1.156: +26 -10 lines
Diff to previous 1.156 (colored) to selected 1.88 (colored)
Add a -u label option to print selected utrace records, used by upcoming malloc (leak) dump fucntion. ok semarie@
Revision 1.156 / (download) - annotate - [select for diffs], Fri Feb 17 18:01:26 2023 UTC (15 months, 3 weeks ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE,
OPENBSD_7_3
Changes since 1.155: +1 -3 lines
Diff to previous 1.155 (colored) to selected 1.88 (colored)
KTRC_CODE__SYSCALL is never set anymore, because __syscall() is gone.
Revision 1.155 / (download) - annotate - [select for diffs], Mon Jan 16 05:32:05 2023 UTC (16 months, 3 weeks ago) by deraadt
Branch: MAIN
Changes since 1.154: +13 -8 lines
Diff to previous 1.154 (colored) to selected 1.88 (colored)
we spent far too long debugging a weird go library problem (incorrect arguments to mmap) because it was using syscall(2) and that callpath is invisible in ktrace. make it visible, it will now show "(via syscall)" and such. ok guenther
Revision 1.154 / (download) - annotate - [select for diffs], Sat Jan 7 05:26:40 2023 UTC (17 months ago) by guenther
Branch: MAIN
Changes since 1.153: +5 -1 lines
Diff to previous 1.153 (colored) to selected 1.88 (colored)
Add argument and return support for {get,set}thrname()
Revision 1.153 / (download) - annotate - [select for diffs], Thu Dec 29 01:36:36 2022 UTC (17 months, 1 week ago) by guenther
Branch: MAIN
Changes since 1.152: +51 -27 lines
Diff to previous 1.152 (colored) to selected 1.88 (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.152 / (download) - annotate - [select for diffs], Tue Dec 20 21:44:19 2022 UTC (17 months, 2 weeks ago) by guenther
Branch: MAIN
Changes since 1.151: +20 -14 lines
Diff to previous 1.151 (colored) to selected 1.88 (colored)
Add argument support for msyscall, pledge, unveil, __realpath, ypconnect, and __tmpfd. Reorder several other syscalls to match the order in syscalls.master ok deraadt@
Revision 1.151 / (download) - annotate - [select for diffs], Mon Dec 19 22:55:12 2022 UTC (17 months, 3 weeks ago) by guenther
Branch: MAIN
Changes since 1.150: +27 -1 lines
Diff to previous 1.150 (colored) to selected 1.88 (colored)
Improve reporting of waitid(2)'s idtype/id and options arguments Add mimmutable(2) to report like munmap(2)
Revision 1.150 / (download) - annotate - [select for diffs], Thu Sep 8 16:04:31 2022 UTC (21 months ago) by mbuhl
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE,
OPENBSD_7_2
Changes since 1.149: +3 -1 lines
Diff to previous 1.149 (colored) to selected 1.88 (colored)
Support the sendmmsg and recvmmsg system calls. Input guenther@ OK bluhm@
Revision 1.149 / (download) - annotate - [select for diffs], Wed Jul 20 05:56:36 2022 UTC (22 months, 3 weeks ago) by deraadt
Branch: MAIN
Changes since 1.148: +1 -21 lines
Diff to previous 1.148 (colored) to selected 1.88 (colored)
the _pad_ system calls from 2021/12/23 can go away ok guenther
Revision 1.148 / (download) - annotate - [select for diffs], Tue Feb 22 17:31:31 2022 UTC (2 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE,
OPENBSD_7_1
Changes since 1.147: +2 -3 lines
Diff to previous 1.147 (colored) to selected 1.88 (colored)
Since ktr_comm is now a string, we do not need MAXCOMLEN to limit printf. And thus, sys/param.h is not needed either. ok millert
Revision 1.147 / (download) - annotate - [select for diffs], Tue Feb 22 03:40:55 2022 UTC (2 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.146: +2 -2 lines
Diff to previous 1.146 (colored) to selected 1.88 (colored)
repair sys/param.h namespace list
Revision 1.146 / (download) - annotate - [select for diffs], Tue Feb 22 03:31:50 2022 UTC (2 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.145: +3 -1 lines
Diff to previous 1.145 (colored) to selected 1.88 (colored)
need a local nitems() definition
Revision 1.145 / (download) - annotate - [select for diffs], Thu Dec 23 18:50:32 2021 UTC (2 years, 5 months ago) by guenther
Branch: MAIN
Changes since 1.144: +54 -13 lines
Diff to previous 1.144 (colored) to selected 1.88 (colored)
Roll the syscalls that have an off_t argument to remove the explicit padding. Switch libc and ld.so to the generic stubs for these calls. WARNING: reboot to updated kernel before installing libc or ld.so! Time for a story... When gcc (back in 1.x days) first implemented long long, it didn't (always) pass 64bit arguments in 'aligned' registers/stack slots, with the result that argument offsets didn't match structure offsets. This affected the nine system calls that pass off_t arguments: ftruncate lseek mmap mquery pread preadv pwrite pwritev truncate To avoid having to do custom ASM wrappers for those, BSD put an explicit pad argument in so that the off_t argument would always start on a even slot and thus be naturally aligned. Thus those odd wrappers in lib/libc/sys/ that use __syscall() and pass an extra '0' argument. The ABIs for different CPUs eventually settled how things should be passed on each and gcc 2.x followed them. The only arch now where it helps is landisk, which needs to skip the last argument register if it would be the first half of a 64bit argument. So: add new syscalls without the pad argument and on landisk do that skipping directly in the syscall handler in the kernel. Keep compat support for the existing syscalls long enough for the transition. ok deraadt@
Revision 1.144 / (download) - annotate - [select for diffs], Mon Jul 12 15:09:19 2021 UTC (2 years, 10 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE,
OPENBSD_7_0
Changes since 1.143: +3 -3 lines
Diff to previous 1.143 (colored) to selected 1.88 (colored)
Change the error reporting pattern throughout the tree when unveil fails to report the path that the failure occured on. Suggested by deraadt@ after some tech discussion. Work done and verified by Ashton Fagg <ashton@fagg.id.au> ok deraadt@ semarie@ claudio@
Revision 1.143 / (download) - annotate - [select for diffs], Sun Apr 5 08:32:14 2020 UTC (4 years, 2 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7
Changes since 1.142: +1 -2 lines
Diff to previous 1.142 (colored) to selected 1.88 (colored)
Do not assume futex(2) is always returning an errno value. In the case of FUTEX_WAKE a number of woken threads is returned. ok guenther@
Revision 1.142 / (download) - annotate - [select for diffs], Sun Apr 5 07:31:45 2020 UTC (4 years, 2 months ago) by visa
Branch: MAIN
Changes since 1.141: +2 -2 lines
Diff to previous 1.141 (colored) to selected 1.88 (colored)
Declare pledgenames[] as const. OK deraadt@
Revision 1.141 / (download) - annotate - [select for diffs], Sat Jan 18 23:56:31 2020 UTC (4 years, 4 months ago) by cheloha
Branch: MAIN
Changes since 1.140: +20 -7 lines
Diff to previous 1.140 (colored) to selected 1.88 (colored)
kdump(1): give timestamp types real names; ok schwarze@
Revision 1.140 / (download) - annotate - [select for diffs], Wed Nov 27 16:50:21 2019 UTC (4 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.139: +2 -2 lines
Diff to previous 1.139 (colored) to selected 1.88 (colored)
use _PATH_PROTOCOLS from netdb.h instead
Revision 1.139 / (download) - annotate - [select for diffs], Tue Nov 26 09:43:49 2019 UTC (4 years, 6 months ago) by otto
Branch: MAIN
Changes since 1.138: +3 -1 lines
Diff to previous 1.138 (colored) to selected 1.88 (colored)
kdump reads /etc/protocols to translate proto numbers into names; ok sthen@ gilles@
Revision 1.138 / (download) - annotate - [select for diffs], Wed May 15 15:36:59 2019 UTC (5 years ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE,
OPENBSD_6_6
Changes since 1.137: +3 -4 lines
Diff to previous 1.137 (colored) to selected 1.88 (colored)
improve wrong markup and poor wording regarding the -t argument that was spotted by deraadt@; OK deraadt@ jmc@
Revision 1.137 / (download) - annotate - [select for diffs], Fri Jan 11 18:46:30 2019 UTC (5 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE,
OPENBSD_6_5
Changes since 1.136: +1 -2 lines
Diff to previous 1.136 (colored) to selected 1.88 (colored)
mincore() is a relic from the past, exposing physical machine information about shared resources which no program should see. only a few pieces of software use it, generally poorly thought out. they are being fixed, so mincore() can be deleted. ok guenther tedu jca sthen, others
Revision 1.136 / (download) - annotate - [select for diffs], Wed Dec 12 17:55:28 2018 UTC (5 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.135: +7 -5 lines
Diff to previous 1.135 (colored) to selected 1.88 (colored)
allow reading from stdin with -f -. ok kn
Revision 1.135 / (download) - annotate - [select for diffs], Sun Oct 21 19:56:26 2018 UTC (5 years, 7 months ago) by guenther
Branch: MAIN
Changes since 1.134: +2 -1 lines
Diff to previous 1.134 (colored) to selected 1.88 (colored)
futex(2) returns an errno value to decode ok otto@
Revision 1.134 / (download) - annotate - [select for diffs], Sat Aug 11 11:01:37 2018 UTC (5 years, 10 months ago) by mestre
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE,
OPENBSD_6_4
Changes since 1.133: +3 -1 lines
Diff to previous 1.133 (colored) to selected 1.88 (colored)
the only fs access kdump(1) needs is to the tracefile which by default is ktrace.out unless argument -f is used. We can just unveil(2) that file with read permissions before the pledge(2) call. OK deraadt@
Revision 1.133 / (download) - annotate - [select for diffs], Tue Nov 28 15:35:02 2017 UTC (6 years, 6 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE,
OPENBSD_6_3
Changes since 1.132: +1 -2 lines
Diff to previous 1.132 (colored) to selected 1.88 (colored)
Need to remove fktrace here too Noted by Andreas Kusalananda Kähäri (andreas.kahari(at)icm.uu.se)
Revision 1.132 / (download) - annotate - [select for diffs], Sat Oct 7 19:46:22 2017 UTC (6 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.131: +2 -1 lines
Diff to previous 1.131 (colored) to selected 1.88 (colored)
Format fktrace(2) arguments ok millert@
Revision 1.131 / (download) - annotate - [select for diffs], Sat Oct 7 19:43:21 2017 UTC (6 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.130: +6 -6 lines
Diff to previous 1.130 (colored) to selected 1.88 (colored)
Delete pointless casts from void* ok otto@ millert@
Revision 1.130 / (download) - annotate - [select for diffs], Fri Apr 28 13:53:05 2017 UTC (7 years, 1 month ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE,
OPENBSD_6_2
Changes since 1.129: +4 -1 lines
Diff to previous 1.129 (colored) to selected 1.88 (colored)
Display futex(2) operations and arguments.
Revision 1.129 / (download) - annotate - [select for diffs], Mon Jul 18 09:36:50 2016 UTC (7 years, 10 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE,
OPENBSD_6_1,
OPENBSD_6_0_BASE,
OPENBSD_6_0
Changes since 1.128: +3 -3 lines
Diff to previous 1.128 (colored) to selected 1.88 (colored)
Add 'p' trace point for KTRFAC_PLEDGE, as noted by Michal Mazurek <akfaew@jasminek.net> While here, fix handling of -t+ in ltrace.
Revision 1.128 / (download) - annotate - [select for diffs], Thu Jun 2 22:47:13 2016 UTC (8 years ago) by tedu
Branch: MAIN
Changes since 1.127: +9 -5 lines
Diff to previous 1.127 (colored) to selected 1.88 (colored)
allow printing timestamps relative to beginnging of trace, -RT. ok benno
Revision 1.127 / (download) - annotate - [select for diffs], Wed Mar 30 08:00:01 2016 UTC (8 years, 2 months ago) by guenther
Branch: MAIN
Changes since 1.126: +11 -4 lines
Diff to previous 1.126 (colored) to selected 1.88 (colored)
Handle error return by SYS_getlogin_r and SYS___thrsleep correct, and parse args of SYS_getlogin_r
Revision 1.126 / (download) - annotate - [select for diffs], Thu Mar 24 05:05:42 2016 UTC (8 years, 2 months ago) by guenther
Branch: MAIN
Changes since 1.125: +11 -12 lines
Diff to previous 1.125 (colored) to selected 1.88 (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.125 / (download) - annotate - [select for diffs], Tue Mar 22 16:45:07 2016 UTC (8 years, 2 months ago) by guenther
Branch: MAIN
Changes since 1.124: +4 -2 lines
Diff to previous 1.124 (colored) to selected 1.88 (colored)
Format the flags argument to sendsyslog() ok deraadt@ bluhm@
Revision 1.124 / (download) - annotate - [select for diffs], Mon Mar 21 00:04:03 2016 UTC (8 years, 2 months ago) by guenther
Branch: MAIN
Changes since 1.123: +2 -1 lines
Diff to previous 1.123 (colored) to selected 1.88 (colored)
Handle kbind()'s third argument correctly
Revision 1.123 / (download) - annotate - [select for diffs], Sun Mar 6 22:33:48 2016 UTC (8 years, 3 months ago) by guenther
Branch: MAIN
Changes since 1.122: +9 -1 lines
Diff to previous 1.122 (colored) to selected 1.88 (colored)
Improve display of unknown and KTR_START records request and ok naddy@
Revision 1.122 / (download) - annotate - [select for diffs], Sun Mar 6 20:25:27 2016 UTC (8 years, 3 months ago) by guenther
Branch: MAIN
Changes since 1.121: +15 -130 lines
Diff to previous 1.121 (colored) to selected 1.88 (colored)
No more compat emulations, so remove ktrace EMUL records and the baggage for generating and parsing them. ok mpi@ naddy@ millert@ deraadt@
Revision 1.121 / (download) - annotate - [select for diffs], Sun Feb 28 15:55:58 2016 UTC (8 years, 3 months ago) by naddy
Branch: MAIN
Changes since 1.120: +1 -6 lines
Diff to previous 1.120 (colored) to selected 1.88 (colored)
drop the support for Linux emulation; ok guenther@ visa@
Revision 1.120 / (download) - annotate - [select for diffs], Tue Nov 10 04:30:59 2015 UTC (8 years, 7 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.119: +2 -1 lines
Diff to previous 1.119 (colored) to selected 1.88 (colored)
Split the intra-thread functionality from kill(2) into its own syscall thrkill(2), rolling the kill(2) syscall number with the ABI change to avoid breaking binaries during during the transition. thrkill(2) includes a 'tcb' argument that eliminates the need for locking in pthread_kill() and simplifies pthread_cancel(). Switch __stack_smash_handler() to use thrkill(2) and explicitly unblock SIGABRT. Minor bump to both libc and libpthread: make sure you install a new kernel! ok semarie@
Revision 1.119 / (download) - annotate - [select for diffs], Wed Oct 28 16:03:06 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.118: +1 -3 lines
Diff to previous 1.118 (colored) to selected 1.88 (colored)
remove knowledge of dnssocket/dnsconnect
Revision 1.118 / (download) - annotate - [select for diffs], Mon Oct 26 11:17:52 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.117: +5 -3 lines
Diff to previous 1.117 (colored) to selected 1.88 (colored)
If the system call is entirely unpermitted, code will be 0, and there is no pledge to recommend.
Revision 1.117 / (download) - annotate - [select for diffs], Sun Oct 25 20:39:54 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.116: +36 -1 lines
Diff to previous 1.116 (colored) to selected 1.88 (colored)
Fold "malloc" into "stdio" and -- recognizing that no program so far has used less than "stdio" -- include all the "self" operations. Instead of different defines, use regular PLEDGE_* in the "p_pledgenote" variable (which indicates the operation subtype a system call is performing). Many checks before easier to understand. p_pledgenote can often be passed directly to ktrace, so that kdump says: 15565 test CALL pledge(0xa9a3f804c51,0) 15565 test STRU pledge request="stdio" 15565 test RET pledge 0 15565 test CALL open(0xa9a3f804c57,0x2<O_RDWR>) 15565 test NAMI "/tmp/testfile" 15565 test PLDG open, "wpath", errno 1 Operation not permitted with help from semarie, ok guenther
Revision 1.116 / (download) - annotate - [select for diffs], Sun Oct 18 01:32:05 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.115: +3 -1 lines
Diff to previous 1.115 (colored) to selected 1.88 (colored)
Describe dnssocket / dnsconnect arguments
Revision 1.115 / (download) - annotate - [select for diffs], Sat Oct 10 20:35:00 2015 UTC (8 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.114: +2 -2 lines
Diff to previous 1.114 (colored) to selected 1.88 (colored)
normalize a few more tame request orderings, to help review
Revision 1.114 / (download) - annotate - [select for diffs], Sat Oct 10 19:19:46 2015 UTC (8 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.113: +1 -4 lines
Diff to previous 1.113 (colored) to selected 1.88 (colored)
since kdump may getprotobynumber() late, do not drop "rpath". We could potentially modify pledge() to permit /etc/protocols (/etc/rpc? /etc/services? etc) without requiring a rpath attribute.. but where would we draw the line for what /etc files libc functions need? At present, we draw that line closer to the minimum. issue found by theo@math.ethz.ch
Revision 1.113 / (download) - annotate - [select for diffs], Fri Oct 9 01:37:08 2015 UTC (8 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.112: +5 -5 lines
Diff to previous 1.112 (colored) to selected 1.88 (colored)
Change all tame callers to namechange to pledge(2).
Revision 1.112 / (download) - annotate - [select for diffs], Tue Oct 6 03:27:25 2015 UTC (8 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.111: +5 -1 lines
Diff to previous 1.111 (colored) to selected 1.88 (colored)
tame "stdio getpw" discussed with guenther
Revision 1.111 / (download) - annotate - [select for diffs], Sat Oct 3 23:52:30 2015 UTC (8 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.110: +18 -22 lines
Diff to previous 1.110 (colored) to selected 1.88 (colored)
Add ktracing of tame()'s arguments' values "every tool helps" deraadt@
Revision 1.110 / (download) - annotate - [select for diffs], Sat Oct 3 21:47:40 2015 UTC (8 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.109: +3 -3 lines
Diff to previous 1.109 (colored) to selected 1.88 (colored)
option LFS is dead, but we missed option ACCOUNTING here
Revision 1.109 / (download) - annotate - [select for diffs], Sat Oct 3 09:12:39 2015 UTC (8 years, 8 months ago) by zhuk
Branch: MAIN
Changes since 1.108: +2 -2 lines
Diff to previous 1.108 (colored) to selected 1.88 (colored)
Fix wrong cast. This one should be an unsigned long in theory, but the formatter function argument we're printing from is already an int (being casted from register_t at the formatter call time). So lets fix one bug at a time. authoritative okay from guenther@
Revision 1.108 / (download) - annotate - [select for diffs], Sat Oct 3 05:15:36 2015 UTC (8 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.107: +4 -1 lines
Diff to previous 1.107 (colored) to selected 1.88 (colored)
tame "stdio getpw rpath" can be done quite early after the getopt. it might seem we can hoist the open above tame and then drop "rpath", but guenther found getprotobynumber can be called much later. ok guenther
Revision 1.107 / (download) - annotate - [select for diffs], Fri Oct 2 19:12:45 2015 UTC (8 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.106: +2 -2 lines
Diff to previous 1.106 (colored) to selected 1.88 (colored)
update the -t args list; ok guenther
Revision 1.106 / (download) - annotate - [select for diffs], Fri Oct 2 05:07:41 2015 UTC (8 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.105: +88 -38 lines
Diff to previous 1.105 (colored) to selected 1.88 (colored)
Add ktracing of argv and envp to execve(2), with envp not traced by default ok tedu@ deraadt@
Revision 1.105 / (download) - annotate - [select for diffs], Sun Sep 13 17:08:03 2015 UTC (8 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.104: +3 -3 lines
Diff to previous 1.104 (colored) to selected 1.88 (colored)
Rename __sysctl syscall to just sysctl, as the userland wrapper is no longer necessary ok deraadt@ jsing@
Revision 1.104 / (download) - annotate - [select for diffs], Mon Sep 7 15:38:45 2015 UTC (8 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.103: +1 -15 lines
Diff to previous 1.103 (colored) to selected 1.88 (colored)
Delete ktracing of context switches: it's unused, and not particularly useful, and doing VOP_WRITE() from inside tsleep/msleep makes the locking too complicated, making it harder to move forward on MP changes. ok deraadt@ kettenis@
Revision 1.103 / (download) - annotate - [select for diffs], Sun Jul 19 04:45:25 2015 UTC (8 years, 10 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8
Changes since 1.102: +29 -8 lines
Diff to previous 1.102 (colored) to selected 1.88 (colored)
Make KTR_SYSRET records variables variables sized, leaving out the retval on error, including a long long retval on successful lseek(), and including a register_t retval for other successes. This fixes lseek reporting on ILP32 archs. While here, reworking internal kern_ktrace.c bits to be able to pass two buffers to ktrwriteraw(), so we can avoid mallocing a buffer in some cases and so that KTR_GENIO logs are split at PAGE_SIZE, not PAGE_SIZE-sizeof(struct ktrgenio) ok miod@
Revision 1.102 / (download) - annotate - [select for diffs], Sun Jul 19 02:52:35 2015 UTC (8 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.101: +13 -11 lines
Diff to previous 1.101 (colored) to selected 1.88 (colored)
Figure out the tty width using TIOCGWINSZ early on. Will make tame(2) integration easier in the future.
Revision 1.101 / (download) - annotate - [select for diffs], Sat Apr 18 18:28:37 2015 UTC (9 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.100: +8 -3 lines
Diff to previous 1.100 (colored) to selected 1.88 (colored)
Convert many atoi() calls to strtonum(), adding range checks and failure handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert
Revision 1.100 / (download) - annotate - [select for diffs], Fri Apr 17 06:33:30 2015 UTC (9 years, 1 month ago) by guenther
Branch: MAIN
Changes since 1.99: +14 -8 lines
Diff to previous 1.99 (colored) to selected 1.88 (colored)
oops, started expecting sockoptlevelname() to handle two arguments but never actually did so. Fix that so that we stop losing the second argument to {get,set}sockopt(). Handling of levels other than SOL_SOCKET could be improved.
Revision 1.99 / (download) - annotate - [select for diffs], Fri Apr 17 06:14:36 2015 UTC (9 years, 1 month ago) by guenther
Branch: MAIN
Changes since 1.98: +3 -5 lines
Diff to previous 1.98 (colored) to selected 1.88 (colored)
The first argument to socket/socketpair is an address family, not a protocol family. (sysctl(3) is practically the only place where PF_* is correct)
Revision 1.98 / (download) - annotate - [select for diffs], Mon Jan 26 04:38:23 2015 UTC (9 years, 4 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE,
OPENBSD_5_7
Changes since 1.97: +2 -2 lines
Diff to previous 1.97 (colored) to selected 1.88 (colored)
Oops: symlinkat()'s 'atfd' argument is its second, not its first
Revision 1.97 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:09 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.96: +3 -2 lines
Diff to previous 1.96 (colored) to selected 1.88 (colored)
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
Revision 1.96 / (download) - annotate - [select for diffs], Sun Dec 28 11:11:01 2014 UTC (9 years, 5 months ago) by bluhm
Branch: MAIN
Changes since 1.95: +2 -1 lines
Diff to previous 1.95 (colored) to selected 1.88 (colored)
With revision 1.93 a space character got lost when printing the signal action. Print the space again. OK jsg@
Revision 1.95 / (download) - annotate - [select for diffs], Mon Dec 15 07:01:12 2014 UTC (9 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.94: +2 -2 lines
Diff to previous 1.94 (colored) to selected 1.88 (colored)
remove -r from usage();
Revision 1.94 / (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.93: +47 -33 lines
Diff to previous 1.93 (colored) to selected 1.88 (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.93 / (download) - annotate - [select for diffs], Tue Dec 9 00:46:43 2014 UTC (9 years, 6 months ago) by jsg
Branch: MAIN
Changes since 1.92: +20 -7 lines
Diff to previous 1.92 (colored) to selected 1.88 (colored)
Add some additional sanity checks to kdump. Fixes a variety of crashes found with the afl fuzzer. ok miod@ on an earlier version.
Revision 1.92 / (download) - annotate - [select for diffs], Mon Dec 8 21:23:44 2014 UTC (9 years, 6 months ago) by guenther
Branch: MAIN
Changes since 1.91: +583 -501 lines
Diff to previous 1.91 (colored) to selected 1.88 (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.91 / (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.90: +5 -1 lines
Diff to previous 1.90 (colored) to selected 1.88 (colored)
Add dumping of struct dqblk done by quotactl(2) ok millert@
Revision 1.90 / (download) - annotate - [select for diffs], Wed Oct 8 04:02:46 2014 UTC (9 years, 8 months ago) by doug
Branch: MAIN
Changes since 1.89: +2 -2 lines
Diff to previous 1.89 (colored) to selected 1.88 (colored)
userland reallocarray audit. Replace malloc() and realloc() calls that may have integer overflow in the multiplication of the arguments with reallocarray(). ok deraadt@
Revision 1.89 / (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.88: +17 -2 lines
Diff to previous 1.88 (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.88 / (download) - annotate - [selected], Mon Aug 18 03:29:53 2014 UTC (9 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.87: +37 -18 lines
Diff to previous 1.87 (colored)
Add fancy printing of ktrace()'s ops argument mquery() has the exact same argument layout as mmap(), so share the case Fix a couple brace placement glitches
Revision 1.87 / (download) - annotate - [select for diffs], Sun Aug 17 22:25:53 2014 UTC (9 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.86: +7 -1 lines
Diff to previous 1.86 (colored) to selected 1.88 (colored)
Display symbolicly the mode argument of mkdir, mkfifo, mknod, and umask
Revision 1.86 / (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.85: +11 -1 lines
Diff to previous 1.85 (colored) to selected 1.88 (colored)
Recognize itimer and ktrace facility names to {get,set}itimer() and ktrace() ok otto@
Revision 1.85 / (download) - annotate - [select for diffs], Mon Sep 9 05:08:26 2013 UTC (10 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.84: +4 -4 lines
Diff to previous 1.84 (colored) to selected 1.88 (colored)
Rename the 'pid' global to eliminate compiler warnings about shadowing ok otto@
Revision 1.84 / (download) - annotate - [select for diffs], Thu Aug 22 02:02:33 2013 UTC (10 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.83: +3 -336 lines
Diff to previous 1.83 (colored) to selected 1.88 (colored)
Split out from kdump.c the ktrstruct.c bits into ktrstruct.c Reduce the #includes to take advantage of that. ok millert@ otto@
Revision 1.83 / (download) - annotate - [select for diffs], Wed Jul 3 23:04:33 2013 UTC (10 years, 11 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE,
OPENBSD_5_4
Changes since 1.82: +166 -1 lines
Diff to previous 1.82 (colored) to selected 1.88 (colored)
For consistency, move the functions that aren't generated at build-time from mksubr to kdump.c ok otto@ millert@
Revision 1.82 / (download) - annotate - [select for diffs], Wed Jul 3 06:41:51 2013 UTC (10 years, 11 months ago) by guenther
Branch: MAIN
Changes since 1.81: +23 -3 lines
Diff to previous 1.81 (colored) to selected 1.88 (colored)
Use WAIT_* for the first argument to wait4(), and otherwise treat it (and the first argument to kill) as signed 32bit ints. ok millert@ otto@
Revision 1.81 / (download) - annotate - [select for diffs], Sat Jun 1 09:51:30 2013 UTC (11 years ago) by miod
Branch: MAIN
Changes since 1.80: +37 -16 lines
Diff to previous 1.80 (colored) to selected 1.88 (colored)
Userland bits for utrace record handling; from otto@
Revision 1.80 / (download) - annotate - [select for diffs], Tue Apr 23 20:03:05 2013 UTC (11 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.79: +4 -3 lines
Diff to previous 1.79 (colored) to selected 1.88 (colored)
simple large ino_t handling
Revision 1.79 / (download) - annotate - [select for diffs], Tue Apr 16 22:11:10 2013 UTC (11 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.78: +3 -2 lines
Diff to previous 1.78 (colored) to selected 1.88 (colored)
handle large time_t variables; ok guenther
Revision 1.78 / (download) - annotate - [select for diffs], Mon Apr 15 16:47:14 2013 UTC (11 years, 1 month ago) by guenther
Branch: MAIN
Changes since 1.77: +1 -5 lines
Diff to previous 1.77 (colored) to selected 1.88 (colored)
Remove CTL_USER hierarchy from sysctl() (Use sysconf() or confstr() instead) ok miod@ millert@
Revision 1.77 / (download) - annotate - [select for diffs], Tue Dec 25 09:35:51 2012 UTC (11 years, 5 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE,
OPENBSD_5_3
Changes since 1.76: +32 -1 lines
Diff to previous 1.76 (colored) to selected 1.88 (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.76 / (download) - annotate - [select for diffs], Wed Dec 5 12:54:15 2012 UTC (11 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.75: +2 -1 lines
Diff to previous 1.75 (colored) to selected 1.88 (colored)
Explicitly include sys/resource.h for RLIM_INF, etc.
Revision 1.75 / (download) - annotate - [select for diffs], Wed Jul 11 11:18:40 2012 UTC (11 years, 11 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE,
OPENBSD_5_2
Changes since 1.74: +11 -1 lines
Diff to previous 1.74 (colored) to selected 1.88 (colored)
Report ptrace(PT_{GET,SET}XMMREGS) by name ok otto@
Revision 1.74 / (download) - annotate - [select for diffs], Mon Jul 9 17:51:08 2012 UTC (11 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.73: +35 -1 lines
Diff to previous 1.73 (colored) to selected 1.88 (colored)
Print the fd_set used by select in kdump. OK guenther@ and deraadt@
Revision 1.73 / (download) - annotate - [select for diffs], Fri Jun 29 05:09:58 2012 UTC (11 years, 11 months ago) by guenther
Branch: MAIN
Changes since 1.72: +2 -1 lines
Diff to previous 1.72 (colored) to selected 1.88 (colored)
sigpending() returns a sigset just like sigprocmask(), so decode it the same ok matthew@ otto@
Revision 1.72 / (download) - annotate - [select for diffs], Thu Jun 21 06:55:58 2012 UTC (11 years, 11 months ago) by guenther
Branch: MAIN
Changes since 1.71: +15 -1 lines
Diff to previous 1.71 (colored) to selected 1.88 (colored)
Add dumping of struct __tfork done by the revised __tfork syscall
Revision 1.71 / (download) - annotate - [select for diffs], Wed Jun 20 07:31:33 2012 UTC (11 years, 11 months ago) by guenther
Branch: MAIN
Changes since 1.70: +2 -1 lines
Diff to previous 1.70 (colored) to selected 1.88 (colored)
Handle PT_GET_THREAD_* ok otto@ kettenis@
Revision 1.70 / (download) - annotate - [select for diffs], Thu Apr 12 12:33:04 2012 UTC (12 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.69: +1 -2 lines
Diff to previous 1.69 (colored) to selected 1.88 (colored)
remove rfork(); ok guenther miod
Revision 1.69 / (download) - annotate - [select for diffs], Wed Apr 11 13:55:26 2012 UTC (12 years, 2 months ago) by mikeb
Branch: MAIN
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored) to selected 1.88 (colored)
guenther and kettenis say THREAD_PID_OFFSET shouldn't be subtracted
Revision 1.68 / (download) - annotate - [select for diffs], Wed Apr 11 12:44:02 2012 UTC (12 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.67: +2 -2 lines
Diff to previous 1.67 (colored) to selected 1.88 (colored)
add -H to usage();
Revision 1.67 / (download) - annotate - [select for diffs], Tue Apr 10 20:39:37 2012 UTC (12 years, 2 months ago) by mikeb
Branch: MAIN
Changes since 1.66: +18 -9 lines
Diff to previous 1.66 (colored) to selected 1.88 (colored)
Add a start record to the ktrace and use a special magic string "KTR" 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.
Revision 1.66 / (download) - annotate - [select for diffs], Sat Mar 31 18:59:14 2012 UTC (12 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.65: +2 -2 lines
Diff to previous 1.65 (colored) to selected 1.88 (colored)
err(1, NULL) can drive people insane, so please avoid it. ok guenther
Revision 1.65 / (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.64: +92 -1 lines
Diff to previous 1.64 (colored) to selected 1.88 (colored)
Add tracing and dumping of "pointer to struct" syscall arguments for structs timespec, timeval, sigaction, and rlimit. ok otto@ jsing@
Revision 1.64 / (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.63: +94 -52 lines
Diff to previous 1.63 (colored) to selected 1.88 (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.63 / (download) - annotate - [select for diffs], Mon Sep 19 22:00:37 2011 UTC (12 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE,
OPENBSD_5_1
Changes since 1.62: +33 -3 lines
Diff to previous 1.62 (colored) to selected 1.88 (colored)
teach kdump about "siginfo-style" signal sub-codes, and the (currently) limited subset of information the kernel supplies. ok miod pirofti
Revision 1.62 / (download) - annotate - [select for diffs], Thu Jul 28 10:33:36 2011 UTC (12 years, 10 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE,
OPENBSD_5_0
Changes since 1.61: +127 -5 lines
Diff to previous 1.61 (colored) to selected 1.88 (colored)
Resolve sysctl numbers, original diff from nicm@, man page bits from guenther@; ok guenther@ millert@
Revision 1.61 / (download) - annotate - [select for diffs], Tue Jul 19 18:20:11 2011 UTC (12 years, 10 months ago) by matthew
Branch: MAIN
Changes since 1.60: +93 -2 lines
Diff to previous 1.60 (colored) to selected 1.88 (colored)
Add fancy kdump support for the openat(2) system calls. ok otto@
Revision 1.60 / (download) - annotate - [select for diffs], Sun Jul 17 07:49:34 2011 UTC (12 years, 10 months ago) by otto
Branch: MAIN
Changes since 1.59: +5 -3 lines
Diff to previous 1.59 (colored) to selected 1.88 (colored)
handle files produced by ktrace -a better by making a distinction between default and current emulation; ok guenther@
Revision 1.59 / (download) - annotate - [select for diffs], Sun Jul 17 06:55:25 2011 UTC (12 years, 10 months ago) by otto
Branch: MAIN
Changes since 1.58: +55 -3 lines
Diff to previous 1.58 (colored) to selected 1.88 (colored)
since we're treating native emuls different (more fancy) than non-native we should do a better job of tracking the emul corresponding to a pid; ok guenther@; also tested by pirofti@
Revision 1.58 / (download) - annotate - [select for diffs], Sun Jul 10 06:13:55 2011 UTC (12 years, 11 months ago) by otto
Branch: MAIN
Changes since 1.57: +5 -3 lines
Diff to previous 1.57 (colored) to selected 1.88 (colored)
Make -m 0 work as expected.
Revision 1.57 / (download) - annotate - [select for diffs], Sat Jul 9 07:22:05 2011 UTC (12 years, 11 months ago) by otto
Branch: MAIN
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored) to selected 1.88 (colored)
print the name of an unknown struct, it has been verified to be sane; prodded by tedu@
Revision 1.56 / (download) - annotate - [select for diffs], Sat Jul 9 04:01:30 2011 UTC (12 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.55: +1 -15 lines
Diff to previous 1.55 (colored) to selected 1.88 (colored)
remove more atalk bits
Revision 1.55 / (download) - annotate - [select for diffs], Fri Jul 8 19:29:44 2011 UTC (12 years, 11 months ago) by otto
Branch: MAIN
Changes since 1.54: +228 -4 lines
Diff to previous 1.54 (colored) to selected 1.88 (colored)
Support sending struct info to kdump. So far for struct stat and struct sockaddress; mostly from freebsd. ok deraadt@ tedu@ nicm@
Revision 1.54 / (download) - annotate - [select for diffs], Thu Jul 7 06:39:48 2011 UTC (12 years, 11 months ago) by otto
Branch: MAIN
Changes since 1.53: +5 -1 lines
Diff to previous 1.53 (colored) to selected 1.88 (colored)
Don't crash on non-native emuls; ok guenther@
Revision 1.53 / (download) - annotate - [select for diffs], Mon Jul 4 22:59:43 2011 UTC (12 years, 11 months ago) by tedu
Branch: MAIN
Changes since 1.52: +1 -4 lines
Diff to previous 1.52 (colored) to selected 1.88 (colored)
remove compat_svr4
Revision 1.52 / (download) - annotate - [select for diffs], Mon Jul 4 06:44:52 2011 UTC (12 years, 11 months ago) by otto
Branch: MAIN
Changes since 1.51: +349 -384 lines
Diff to previous 1.51 (colored) to selected 1.88 (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.51 / (download) - annotate - [select for diffs], Mon Jun 20 17:54:48 2011 UTC (12 years, 11 months ago) by otto
Branch: MAIN
Changes since 1.50: +311 -13 lines
Diff to previous 1.50 (colored) to selected 1.88 (colored)
more fancy kdump output, mostly from FreeBSD; ok deraadt@ tedu@
Revision 1.50 / (download) - annotate - [select for diffs], Thu Jun 2 16:19:13 2011 UTC (13 years ago) by deraadt
Branch: MAIN
Changes since 1.49: +6 -6 lines
Diff to previous 1.49 (colored) to selected 1.88 (colored)
Change ktr_retval to a register_t so that we can see the full 64-bits when neccesary. It is incredible this 64-bit bug has existed for this long. ok miod
Revision 1.49 / (download) - annotate - [select for diffs], Wed Apr 6 11:36:26 2011 UTC (13 years, 2 months ago) by miod
Branch: MAIN
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored) to selected 1.88 (colored)
Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0' for chars.
Revision 1.48 / (download) - annotate - [select for diffs], Tue Apr 5 15:24:32 2011 UTC (13 years, 2 months ago) by guenther
Branch: MAIN
Changes since 1.47: +1 -6 lines
Diff to previous 1.47 (colored) to selected 1.88 (colored)
Remove FREEBSD_COMPAT bits and obsolete RTHREAD define
Revision 1.47 / (download) - annotate - [select for diffs], Tue Jul 6 00:31:02 2010 UTC (13 years, 11 months ago) by oga
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE,
OPENBSD_4_9,
OPENBSD_4_8_BASE,
OPENBSD_4_8
Changes since 1.46: +1 -4 lines
Diff to previous 1.46 (colored) to selected 1.88 (colored)
make kdump build after COMPAT_BSDOS removal. Bad tedu, no cookie.
Revision 1.46 / (download) - annotate - [select for diffs], Fri Jul 2 20:00:54 2010 UTC (13 years, 11 months ago) by tedu
Branch: MAIN
Changes since 1.45: +1 -4 lines
Diff to previous 1.45 (colored) to selected 1.88 (colored)
remove userland bits of compat_sunos
Revision 1.45 / (download) - annotate - [select for diffs], Thu Jul 1 17:26:52 2010 UTC (13 years, 11 months ago) by tedu
Branch: MAIN
Changes since 1.44: +1 -4 lines
Diff to previous 1.44 (colored) to selected 1.88 (colored)
another day, another compat gets removed. today is ibcs2's turn
Revision 1.44 / (download) - annotate - [select for diffs], Wed Jun 30 20:46:51 2010 UTC (13 years, 11 months ago) by tedu
Branch: MAIN
Changes since 1.43: +1 -4 lines
Diff to previous 1.43 (colored) to selected 1.88 (colored)
remove compat_osf1. ok deraadt miod
Revision 1.43 / (download) - annotate - [select for diffs], Tue Jun 29 20:30:33 2010 UTC (13 years, 11 months ago) by guenther
Branch: MAIN
Changes since 1.42: +1 -10 lines
Diff to previous 1.42 (colored) to selected 1.88 (colored)
Remove COMPAT_HPUX. No one wanted to support it and its fewmets were blocking other cleanups ok miod@
Revision 1.42 / (download) - annotate - [select for diffs], Tue Jun 29 17:35:15 2010 UTC (13 years, 11 months ago) by tedu
Branch: MAIN
Changes since 1.41: +1 -4 lines
Diff to previous 1.41 (colored) to selected 1.88 (colored)
ultrix support going away, ok deraadt
Revision 1.41 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:39 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE,
OPENBSD_4_7
Changes since 1.40: +1 -14 lines
Diff to previous 1.40 (colored) to selected 1.88 (colored)
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
Revision 1.40 / (download) - annotate - [select for diffs], Wed Oct 21 15:08:23 2009 UTC (14 years, 7 months ago) by sobrado
Branch: MAIN
Changes since 1.39: +5 -4 lines
Diff to previous 1.39 (colored) to selected 1.88 (colored)
sort options; synchronize argument names with synopsis; split the usage's output in two lines to fit on standard displays. ok millert@
Revision 1.39 / (download) - annotate - [select for diffs], Tue May 29 02:01:03 2007 UTC (17 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE,
OPENBSD_4_6,
OPENBSD_4_5_BASE,
OPENBSD_4_5,
OPENBSD_4_4_BASE,
OPENBSD_4_4,
OPENBSD_4_3_BASE,
OPENBSD_4_3,
OPENBSD_4_2_BASE,
OPENBSD_4_2
Changes since 1.38: +2 -5 lines
Diff to previous 1.38 (colored) to selected 1.88 (colored)
more parts of netbsd compat that go away
Revision 1.38 / (download) - annotate - [select for diffs], Sat Mar 3 23:36:15 2007 UTC (17 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE,
OPENBSD_4_1
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored) to selected 1.88 (colored)
`l' before `n';
Revision 1.37 / (download) - annotate - [select for diffs], Wed May 17 02:12:17 2006 UTC (18 years ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE,
OPENBSD_4_0
Changes since 1.36: +21 -20 lines
Diff to previous 1.36 (colored) to selected 1.88 (colored)
use lots more size_t instead of int running around ok deraadt
Revision 1.36 / (download) - annotate - [select for diffs], Thu May 11 12:26:42 2006 UTC (18 years, 1 month ago) by jmc
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored) to selected 1.88 (colored)
- add -X and -x to SYNOPSIS - sort options - new sentence, new line - sync usage()
Revision 1.35 / (download) - annotate - [select for diffs], Thu May 11 07:24:03 2006 UTC (18 years, 1 month ago) by tedu
Branch: MAIN
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored) to selected 1.88 (colored)
cedric points out 0xff mask isn't needed with unsigned chars
Revision 1.34 / (download) - annotate - [select for diffs], Thu May 11 07:15:08 2006 UTC (18 years, 1 month ago) by tedu
Branch: MAIN
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored) to selected 1.88 (colored)
oops, missed a %ld should be %lu
Revision 1.33 / (download) - annotate - [select for diffs], Thu May 11 07:13:17 2006 UTC (18 years, 1 month ago) by tedu
Branch: MAIN
Changes since 1.32: +5 -4 lines
Diff to previous 1.32 (colored) to selected 1.88 (colored)
need ctype.h for isprint. %c expects an int argument, cast a u_long value so it gets it.
Revision 1.32 / (download) - annotate - [select for diffs], Thu May 11 06:52:04 2006 UTC (18 years, 1 month ago) by tedu
Branch: MAIN
Changes since 1.31: +5 -5 lines
Diff to previous 1.31 (colored) to selected 1.88 (colored)
C spells 'byte' as 'unsigned char'. signed chars are not healthy for isprint
Revision 1.31 / (download) - annotate - [select for diffs], Thu May 11 06:49:00 2006 UTC (18 years, 1 month ago) by tedu
Branch: MAIN
Changes since 1.30: +59 -9 lines
Diff to previous 1.30 (colored) to selected 1.88 (colored)
-x and -X options to print io output in hex. from cedric berger ok mickey
Revision 1.30 / (download) - annotate - [select for diffs], Sat Dec 31 20:56:37 2005 UTC (18 years, 5 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE,
OPENBSD_3_9
Changes since 1.29: +4 -2 lines
Diff to previous 1.29 (colored) to selected 1.88 (colored)
Grok rthreads system calls before Dale yiells after me.
Revision 1.29 / (download) - annotate - [select for diffs], Tue Dec 20 07:37:21 2005 UTC (18 years, 5 months ago) by miod
Branch: MAIN
Changes since 1.28: +2 -4 lines
Diff to previous 1.28 (colored) to selected 1.88 (colored)
No need to define UFS_EXTATTR anymore.
Revision 1.28 / (download) - annotate - [select for diffs], Sat Sep 10 21:06:21 2005 UTC (18 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE,
OPENBSD_3_8
Changes since 1.27: +5 -2 lines
Diff to previous 1.27 (colored) to selected 1.88 (colored)
for sysctl records, do not expect more than CTL_MAXNAME additional "faked" arguments; ok uwe espie
Revision 1.27 / (download) - annotate - [select for diffs], Thu Jun 2 17:32:02 2005 UTC (19 years ago) by mickey
Branch: MAIN
Changes since 1.26: +34 -17 lines
Diff to previous 1.26 (colored) to selected 1.88 (colored)
for sysctl syscall pass the mib[] back to kdump to parse; always print () on syscalls w/ void args even (deraadt version)
Revision 1.26 / (download) - annotate - [select for diffs], Fri Jul 9 23:51:40 2004 UTC (19 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE,
OPENBSD_3_7,
OPENBSD_3_6_BASE,
OPENBSD_3_6
Changes since 1.25: +8 -2 lines
Diff to previous 1.25 (colored) to selected 1.88 (colored)
#ifdef hpux only for m68k or hppa; this needs a revisit since this shows something flawed in the way that the emulation system calls are being handled
Revision 1.25 / (download) - annotate - [select for diffs], Fri Jul 9 21:52:21 2004 UTC (19 years, 11 months ago) by mickey
Branch: MAIN
Changes since 1.24: +23 -23 lines
Diff to previous 1.24 (colored) to selected 1.88 (colored)
better includes for syscalls from kernel
Revision 1.24 / (download) - annotate - [select for diffs], Thu Mar 4 20:39:27 2004 UTC (20 years, 3 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE,
OPENBSD_3_5
Changes since 1.23: +33 -4 lines
Diff to previous 1.23 (colored) to selected 1.88 (colored)
Better ptrace description, also fix an off-by-one spotted by otto ok otto@ tdeval@
Revision 1.23 / (download) - annotate - [select for diffs], Mon Oct 13 00:44:25 2003 UTC (20 years, 8 months ago) by tedu
Branch: MAIN
Changes since 1.22: +7 -4 lines
Diff to previous 1.22 (colored) to selected 1.88 (colored)
realloc stuff. ok deraadt@ jose@
Revision 1.22 / (download) - annotate - [select for diffs], Wed Jul 2 20:54:17 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE,
OPENBSD_3_4
Changes since 1.21: +3 -2 lines
Diff to previous 1.21 (colored) to selected 1.88 (colored)
ioctlname() proto
Revision 1.21 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:09 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.20: +3 -7 lines
Diff to previous 1.20 (colored) to selected 1.88 (colored)
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
Revision 1.20 / (download) - annotate - [select for diffs], Wed Feb 19 19:30:13 2003 UTC (21 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE,
OPENBSD_3_3
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored) to selected 1.88 (colored)
improve docs; raj@cerias.purdue.edu
Revision 1.19 / (download) - annotate - [select for diffs], Thu Oct 17 17:20:49 2002 UTC (21 years, 7 months ago) by mickey
Branch: MAIN
Changes since 1.18: +10 -4 lines
Diff to previous 1.18 (colored) to selected 1.88 (colored)
missing defines for syscalls and a better formatting in usage
Revision 1.18 / (download) - annotate - [select for diffs], Sat Jul 6 19:14:20 2002 UTC (21 years, 11 months ago) by nordin
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE,
OPENBSD_3_2
Changes since 1.17: +2 -4 lines
Diff to previous 1.17 (colored) to selected 1.88 (colored)
Remove kernel support for NTP. ok deraadt@ and tholo@
Revision 1.17 / (download) - annotate - [select for diffs], Sun Jun 23 20:01:25 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +39 -45 lines
Diff to previous 1.16 (colored) to selected 1.88 (colored)
add -p pid feature, and ansi at the same time; millert ok
Revision 1.16 / (download) - annotate - [select for diffs], Wed Jun 12 06:07:15 2002 UTC (22 years ago) by mpech
Branch: MAIN
Changes since 1.15: +4 -3 lines
Diff to previous 1.15 (colored) to selected 1.88 (colored)
a real pid_t cleanup. espie@ ok for make/, deraadt@ one extra eye, millert@ ok
Revision 1.15 / (download) - annotate - [select for diffs], Tue Mar 12 10:40:33 2002 UTC (22 years, 3 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE,
OPENBSD_3_1
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored) to selected 1.88 (colored)
Add PT_IO to ptrace ops.
Revision 1.14 / (download) - annotate - [select for diffs], Fri Feb 22 19:19:32 2002 UTC (22 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.13: +17 -5 lines
Diff to previous 1.13 (colored) to selected 1.88 (colored)
include a siginfo_t with ktrace PSIG information, so that kdump can print fault addresses and other information. (a small bug exists: in some signal delivery cases, two PSIG records may be inserted, because postsig() is unaware a PSIG record has already been placed. but this small bug can stay since the siginfo_t information helps us find and fix other bugs)
Revision 1.13 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:47 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.12: +13 -13 lines
Diff to previous 1.12 (colored) to selected 1.88 (colored)
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
Revision 1.12 / (download) - annotate - [select for diffs], Sat Aug 18 00:48:57 2001 UTC (22 years, 9 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE,
OPENBSD_3_0
Changes since 1.11: +48 -28 lines
Diff to previous 1.11 (colored) to selected 1.88 (colored)
Add lots of missing prototypes, constify a few things. Add explicit ints. Makes gcc much happier, less warnings.
Revision 1.11 / (download) - annotate - [select for diffs], Thu Jul 12 05:17:12 2001 UTC (22 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.10: +9 -2 lines
Diff to previous 1.10 (colored) to selected 1.88 (colored)
first pass at a -Wall cleanup
Revision 1.10 / (download) - annotate - [select for diffs], Sat Sep 25 19:35:47 1999 UTC (24 years, 8 months ago) by kstailey
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE,
OPENBSD_2_9,
OPENBSD_2_8_BASE,
OPENBSD_2_8,
OPENBSD_2_7_BASE,
OPENBSD_2_7,
OPENBSD_2_6_BASE,
OPENBSD_2_6
Changes since 1.9: +5 -2 lines
Diff to previous 1.9 (colored) to selected 1.88 (colored)
add processing of netbsd syscall emulation
Revision 1.9 / (download) - annotate - [select for diffs], Tue Nov 4 07:58:38 1997 UTC (26 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE,
OPENBSD_2_5,
OPENBSD_2_4_BASE,
OPENBSD_2_4,
OPENBSD_2_3_BASE,
OPENBSD_2_3
Changes since 1.8: +17 -11 lines
Diff to previous 1.8 (colored) to selected 1.88 (colored)
add more emulations; problem noted by khym@bga.com
Revision 1.8 / (download) - annotate - [select for diffs], Fri Feb 28 07:09:08 1997 UTC (27 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE,
OPENBSD_2_2,
OPENBSD_2_1_BASE,
OPENBSD_2_1
Changes since 1.7: +2 -3 lines
Diff to previous 1.7 (colored) to selected 1.88 (colored)
Only include sys/errno.h once.
Revision 1.7 / (download) - annotate - [select for diffs], Thu Feb 6 13:46:36 1997 UTC (27 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +16 -2 lines
Diff to previous 1.6 (colored) to selected 1.88 (colored)
make are of a whole number of missing system call names; interesting fix from ghelmer@freebsd.org
Revision 1.6 / (download) - annotate - [select for diffs], Thu Jan 30 08:16:45 1997 UTC (27 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored) to selected 1.88 (colored)
fix IOR/IOW/IOWR; cgd@netbsd.org
Revision 1.5 / (download) - annotate - [select for diffs], Tue Dec 10 15:42:38 1996 UTC (27 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +3 -6 lines
Diff to previous 1.4 (colored) to selected 1.88 (colored)
used to permit a single arg, which it ignored, now does usage(); fenner@freebsd
Revision 1.4 / (download) - annotate - [select for diffs], Wed Jun 26 05:34:43 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE,
OPENBSD_2_0
Changes since 1.3: +3 -1 lines
Diff to previous 1.3 (colored) to selected 1.88 (colored)
rcsid
Revision 1.3 / (download) - annotate - [select for diffs], Mon May 27 07:59:04 1996 UTC (28 years ago) by deraadt
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored) to selected 1.88 (colored)
native emul is now called "native"
Revision 1.2 / (download) - annotate - [select for diffs], Fri May 24 09:19:34 1996 UTC (28 years ago) by deraadt
Branch: MAIN
Changes since 1.1: +22 -9 lines
Diff to previous 1.1 (colored) to selected 1.88 (colored)
Decode unknown ioctl commands to _IO{R,W,}('c',x[,y]), instead of 0xabcdef00
Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:45:27 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.88 (colored)
initial import of NetBSD tree
Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:45:27 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN
Diff to selected 1.88 (colored)
Initial revision