summaryrefslogtreecommitdiff
path: root/sys/kern/kern_ktrace.c
AgeCommit message (Expand)Author
2023-12-15provide the pieces for ktrace/kdump to observe pinsyscall violations.Theo de Raadt
2023-12-12remove support for syscall(2) -- the "indirection system call" becauseTheo de Raadt
2023-05-11mi_syscall() can add the KTRC_CODE_SYSCALL flag to the syscall code.Alexander Bluhm
2023-02-16Like other ktrace functions make ktruser() callable without kernel lockClaudio Jeker
2023-02-09Delay setting the timestamp in the ktrace header until we've grabbedPhilip Guenther
2022-12-05zap a pile of dangling tabsTheo de Raadt
2022-08-14remove unneeded includes in sys/kernJonathan Gray
2022-07-20the _pad_ system calls from 2021/12/23 can go awayTheo de Raadt
2022-02-22Start using new _MAXCOMLEN (a proper string expanded to 24 bytesTheo de Raadt
2021-12-23Roll the syscalls that have an off_t argument to remove the explicit padding.Philip Guenther
2020-09-13Grep the KERNEL_LOCK in ktrpsig() before calling ktrwrite(). AnotherClaudio Jeker
2020-04-03Take an explicit write reference when associating a thread with a ktraceVisa Hankala
2020-03-23Check the outcome of ktrstart() and skip tracing if the trace fileVisa Hankala
2020-03-21Stop tracing if vget(9) fails.Martin Pieuchot
2019-10-06Fix vn_open to require an op of 0, and 0 or KERNELPATH only as flags.Bob Beck
2018-08-05Decouple unveil from the pledge flags, by adding dedicated unveil flagsBob Beck
2018-06-20Grab and/or assert for the KERNEL_LOCK() in in ktrace & pledge.Martin Pieuchot
2018-05-27Drop unnecessary `p' parameter from vget(9).Visa Hankala
2018-04-28Clean up the parameters of VOP_LOCK() and VOP_UNLOCK(). It is alwaysVisa Hankala
2018-02-19Remove almost unused `flags' argument of suser().Martin Pieuchot
2017-12-30Don't pull in <sys/file.h> just to get fcntl.hPhilip Guenther
2017-11-28Delete fktrace(2). The consequences of it were not thought throughPhilip Guenther
2017-08-12add a fktrace syscall that takes a file descriptor instead of a name.Ted Unangst
2017-02-14Convert most of the manual checks for CPU hogging to sched_pause().Martin Pieuchot
2017-01-21p_comm is the process's command and isn't per thread, so move it fromPhilip Guenther
2016-11-07Split PID from TID, giving processes a PID unrelated to the TID of theirPhilip Guenther
2016-03-19Remove the unused flags argument from VOP_UNLOCK().natano
2016-03-06No more compat emulations, so remove ktrace EMUL records and the baggagePhilip Guenther
2015-12-06Change kernel internal pledge variables to 64bit (to prepare for moreTheo de Raadt
2015-12-05remove stale lint annotationsTed Unangst
2015-11-11ktrace vnodes do not need to be opened with FREAD, as they areTheo de Raadt
2015-11-02move the pledgenote annotation from `struct proc' to `struct nameidata'Sebastien Marie
2015-10-28Though sys_ktrace is not yet pledge allowed, prepare by settingTheo de Raadt
2015-10-25Fold "malloc" into "stdio" and -- recognizing that no program so far hasTheo de Raadt
2015-10-09Rename tame() to pledge(). This fairly interface has evolved to be moreTheo de Raadt
2015-10-02Add ktracing of argv and envp to execve(2), with envp not traced by defaultPhilip Guenther
2015-09-13Rename __sysctl syscall to just sysctl, as the userland wrapper is no longerPhilip Guenther
2015-09-07Delete ktracing of context switches: it's unused, and not particularly useful,Philip Guenther
2015-08-22Move to tame(int flags, char *paths[]) API/ABI.Theo de Raadt
2015-08-01Fix free() of uninitialized variable introduced in previous commit.Philip Guenther
2015-07-19Make KTR_SYSRET records variables variables sized, leaving out thePhilip Guenther
2014-12-29Explicitely include <uvm/uvm_extern.h> in order to build on variable page sizeMiod Vallat
2014-12-16primary change: move uvm_vnode out of vnode, keeping only a pointer.Ted Unangst
2014-12-10convert bcopy to memcpy. ok millertTed Unangst
2014-10-26Now that threads hold their own reference to their ucreds, sys_ktrace()Philip Guenther
2014-07-13KERNEL_ASSERT_LOCKED(9): Assertion for kernel lock (Rev. 3)Masao Uebayashi
2014-07-13pass the size to free in some of the obvious casesTed Unangst
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
2014-07-08decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.hTheo de Raadt
2014-03-30Eliminates struct pcred by moving the real and saved ugids intoPhilip Guenther