summaryrefslogtreecommitdiff
path: root/sys/dev/kcov.c
AgeCommit message (Expand)Author
2023-07-29Read curcpu once in kcov code hot paths.Anton Lindqvist
2022-01-19Remove temporary verbose logging.Anton Lindqvist
2022-01-12Extend the verbose logging.Anton Lindqvist
2022-01-11Add temporary verbose logging when remote coverage fails to attach.Anton Lindqvist
2022-01-11In revision 1.43 of kcov.c, the redundant conditional of checking forAnton Lindqvist
2021-12-29Do not allow send/receive of kcov descriptors as the file descriptor canAnton Lindqvist
2021-12-28The initial kd_lookup() in kcovopen() is redundant as kcov is a cloningAnton Lindqvist
2021-12-27Yet another errno correction.Anton Lindqvist
2021-12-21errno overhaul, getting rid of some ambiguity. In the hopes of trackingAnton Lindqvist
2021-12-19Reduce the overhead of all trace routines by returning as early asAnton Lindqvist
2021-12-18Reduce the overhead of the trace compare routines by checking if kcov isAnton Lindqvist
2021-07-05rename kd_put() -> kd_copy()anton
2021-07-05rename kd_put() -> kd_copy()anton
2020-10-10Clear the kcov device for the current thread before freeing the sameanton
2020-10-04Remove outdated comment.anton
2020-10-03Collect coverage from interrupts. Currently limited to remote sectionsanton
2020-09-26Make kd_claim() accept an explicit argument representing the number ofanton
2020-09-26Read curproc once in kcov_remote_enter() and kcov_remote_leave().anton
2020-09-26KCOV_BUF_MAX_NMEMB is defined under _KERNEL in sys/kcov.h but only usedanton
2020-09-26Fix typo in comment.anton
2020-09-25Remove work around kcov_remote_leave() that no longer is needed sinceanton
2020-08-30add missing wakeup for the unlikely dying caseanton
2020-08-30use unique wait messages with msleep_nsec()anton
2020-08-29Before clearing the kcov descriptor associated with a thread make sureanton
2020-08-29Prepare to extend the scope of the kcov remote mutex by renaming it toanton
2020-08-28free the correct object when a remote subsystem already is presentanton
2020-08-14When detaching common remote coverage, do not clear any fields. Instead,anton
2020-08-01Add support for remote coverage to kcov. Remote coverage is collectedanton
2020-07-31Make writes to the coverage buffer MP-safe using atomic operations.anton
2020-06-07Turn anonymous state enum into preprocessor defines, paves the way foranton
2020-05-25Add a comment explaining the interaction between kcovclose() andanton
2020-05-17Prevent kcov from collecting coverage after the kernel has panicked.anton
2020-05-16remove unused debug statementsanton
2020-05-16In preparation for stopping coverage collection once the kernel hasanton
2019-05-19During fuzzing, one or many fuzzing processes are often stuck waiting onanton
2019-05-14armv7 and arm64 also have ci_idepthJonathan Gray
2019-01-20Add support for a new kcov trace mode called KCOV_MODE_TRACE_CMP whereanton
2019-01-20Rework conditional for clarity, no functional change.anton
2019-01-19backout previous; syzkaller did not cope well with this changeanton
2019-01-16Deny mmap() on enabled kcov fds. Sometimes syzkaller manages to duplicate ananton
2019-01-03Favor ENOTTY for unknown ioctl commands.anton
2018-12-27Make KIOENABLE accept a mode argument, currently limited to KCOV_MODE_TRACE_PC.anton
2018-12-27Separate kcov descriptor state and trace mode as a first step towards supportinganton
2018-12-25In the kcov ioctl(KIOSETBUFSIZE) path, malloc() can sleep. Double check thatanton
2018-12-12Make kcov MP-safe. Calling the injected tracing functionanton
2018-08-27Rename struct kd -> kcov_dev. The terse name was initially fine since it wasn'tanton
2018-08-25Change kcov semantics, kernel code coverage tracing is now enabled on a peranton
2018-08-21Rework kcov kernel config. Instead of treating kcov as both an option and aanton
2018-08-19Add kcov(4), a kernel code coverage tracing driver. It's used in conjunctionanton