summaryrefslogtreecommitdiff
path: root/usr.bin/kdump
AgeCommit message (Collapse)Author
2024-07-26Trace struct itimervalPhilip Guenther
ok deraadt@ claudio@
2024-06-29remove unused varsJonathan Gray
2024-05-18Add pathconfat(2): pathconf(2) but with at-fd and flags arguments,Philip Guenther
the latter supporting the ability to get timestamp resolution of symlinks. ok deraadt@ millert@
2024-03-29SYS_msyscall will go away soon. kdump does not need a special handlerTheo de Raadt
for it. ok tb
2023-12-15provide the pieces for ktrace/kdump to observe pinsyscall violations.Theo de Raadt
(not used yet, because the pinsyscall changes are still being worked on) ok kettenis
2023-12-12remove support for syscall(2) -- the "indirection system call" becauseTheo de Raadt
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
2023-11-20Include <dev/efi/efiio.h> to pretty print EFIIOC_* ioctlsKlemens Nanni
No base usage yet, only efivar(1) from sysutils/efivar. OK guenther
2023-11-20Sort includes, <scsi/scsi_all.h> before <dev/*>Klemens Nanni
For/OK guenther
2023-11-09Add [-P progam] to filter dumps by basenameKlemens Nanni
[-p pid] requires knowing the PIDs beforehand, sieving through big dumps by argv[0] strings is more ergonomic. OK deraadt
2023-09-30list tracepoints directly in kdump.1 instead of pointing to ktrace.1Christian Weisgerber
Also add a note to the respective section in kdump.1, ktrace.1, and ltrace.1 to keep in sync with each other; suggested by schwarze@. ok deraadt@ schwarze@
2023-08-21Make kdump show kqueue1(2) flags.Visa Hankala
OK guenther@
2023-08-13kevent: Add precision and abstimer flags for EVFILT_TIMERVisa Hankala
Add timer precision flags NOTE_SECONDS, NOTE_MSECONDS, NOTE_USECONDS and NOTE_NSECONDS for EVFILT_TIMER. Also, add an initial implementation of NOTE_ABSTIME timers. Similar kevent(2) flags exist on FreeBSD, NetBSD and XNU. Initial diff by and OK aisha@ OK mpi@
2023-04-17fix a macro and tweak punctuation;Jason McIntyre
2023-04-16Add a -u label option to print selected utrace records, used by upcomingOtto Moerbeek
malloc (leak) dump fucntion. ok semarie@
2023-02-17KTRC_CODE__SYSCALL is never set anymore, because __syscall() is gone.Theo de Raadt
2023-01-16we spent far too long debugging a weird go library problem (incorrectTheo de Raadt
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
2023-01-07Add argument and return support for {get,set}thrname()Philip Guenther
2022-12-29Add ktrace struct tracepoints for siginfo_t to the kernel side ofPhilip Guenther
waitid(2) and __thrsigdivert(2) and teach kdump(1) to handle them. Also report more from the siginfo_t inside PSIG tracepoints. ok mpi@
2022-12-20Add argument support for msyscall, pledge, unveil, __realpath,Philip Guenther
ypconnect, and __tmpfd. Reorder several other syscalls to match the order in syscalls.master ok deraadt@
2022-12-19Improve reporting of waitid(2)'s idtype/id and options argumentsPhilip Guenther
Add mimmutable(2) to report like munmap(2)
2022-09-08Support the sendmmsg and recvmmsg system calls.Moritz Buhl
Input guenther@ OK bluhm@
2022-07-30we mention interim BSD releases so change some 4.4BSD use to 4.3BSD-RenoJonathan Gray
ok jmc@ schwarze@
2022-07-20the _pad_ system calls from 2021/12/23 can go awayTheo de Raadt
ok guenther
2022-02-22MAXCOMLEN is no longer needed in these programs, so remove the annotationTheo de Raadt
from sys/param.h include lines, or remove the include lines entirely if it this was the least requirement. ok millert
2022-02-22Since ktr_comm is now a string, we do not need MAXCOMLEN to limit printf.Theo de Raadt
And thus, sys/param.h is not needed either. ok millert
2022-02-22repair sys/param.h namespace listTheo de Raadt
2022-02-22need a local nitems() definitionTheo de Raadt
2021-12-23Roll the syscalls that have an off_t argument to remove the explicit padding.Philip Guenther
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@
2021-09-17sys/param.h is only needed for MAXCOMLEN, but a few header filesTheo de Raadt
which must be manually included in userland were missing
2021-09-17the ioctl table generation does not require sys/param.hTheo de Raadt
2021-07-12Change the error reporting pattern throughout the tree when unveilBob Beck
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@
2020-12-21Show scope id when set; ok florian@Otto Moerbeek
2020-06-22plug the wireguard ioctls in.David Gwynne
2020-04-05Do not assume futex(2) is always returning an errno value.Martin Pieuchot
In the case of FUTEX_WAKE a number of woken threads is returned. ok guenther@
2020-04-05Declare pledgenames[] as const.Visa Hankala
OK deraadt@
2020-01-18kdump(1): give timestamp types real names; ok schwarze@cheloha
2019-11-27use _PATH_PROTOCOLS from netdb.h insteadTheo de Raadt
2019-11-26kdump reads /etc/protocols to translate proto numbers into names; ok sthen@ ↵Otto Moerbeek
gilles@
2019-05-15improve wrong markup and poor wording regarding the -t argumentIngo Schwarze
that was spotted by deraadt@; OK deraadt@ jmc@
2019-04-14path to i915_drm.h has changedJonathan Gray
2019-01-11mincore() is a relic from the past, exposing physical machine informationTheo de Raadt
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
2018-12-12allow reading from stdin with -f -.Ted Unangst
ok kn
2018-11-17Be more careful when dumping cmsghdr struct. In the SCM_RIGHTS case anClaudio Jeker
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@
2018-11-08Peldge and unveil can have struct data size 0. While there, fix "fds"Otto Moerbeek
handler; ok guenther@
2018-11-05trace struct flock; ok visa@anton
2018-10-21futex(2) returns an errno value to decodePhilip Guenther
ok otto@
2018-08-29recognize kcov ioctl commands; ok deraadt@ mpi@ visa@anton
2018-08-11the only fs access kdump(1) needs is to the tracefile which by default isRicardo Mestre
ktrace.out unless argument -f is used. We can just unveil(2) that file with read permissions before the pledge(2) call. OK deraadt@
2018-07-13Unveiling unveil(2).Bob Beck
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@
2018-02-14Zero as (un)mount flag is valid; ok millert@Otto Moerbeek