aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/kcov.h
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-10-19 13:54:31 +0300
committerCem Keylan <cem@ckyln.com>2020-10-19 13:54:31 +0300
commit317043010879767bc6a3bef6cbec0c5f300d1ce0 (patch)
tree4bb7c8cd59acb28c4c21eea06cb653f7b82d5aeb /sys/sys/kcov.h
parent54d853eaccae1f4f2e04ae70d79e34cfef86bf67 (diff)
downloadotools-317043010879767bc6a3bef6cbec0c5f300d1ce0.tar.gz
sys: update to 6.8
Diffstat (limited to 'sys/sys/kcov.h')
-rw-r--r--sys/sys/kcov.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/sys/sys/kcov.h b/sys/sys/kcov.h
index 717a5e8..a499953 100644
--- a/sys/sys/kcov.h
+++ b/sys/sys/kcov.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: kcov.h,v 1.4 2019/01/20 09:57:23 anton Exp $ */
+/* $OpenBSD: kcov.h,v 1.7 2020/09/26 11:59:59 anton Exp $ */
/*
* Copyright (c) 2018 Anton Lindqvist <anton@openbsd.org>
@@ -24,16 +24,28 @@
#define KIOSETBUFSIZE _IOW('K', 1, unsigned long)
#define KIOENABLE _IOW('K', 2, int)
#define KIODISABLE _IO('K', 3)
+#define KIOREMOTEATTACH _IOW('K', 4, struct kio_remote_attach *)
#define KCOV_MODE_NONE 0
#define KCOV_MODE_TRACE_PC 1
#define KCOV_MODE_TRACE_CMP 2
+#define KCOV_REMOTE_COMMON 0
+
+struct kio_remote_attach {
+ int subsystem;
+ int id;
+};
+
#ifdef _KERNEL
-#define KCOV_BUF_MAX_NMEMB (256 << 10)
+struct proc;
void kcov_exit(struct proc *);
+void kcov_remote_register(int, void *);
+void kcov_remote_unregister(int, void *);
+void kcov_remote_enter(int, void *);
+void kcov_remote_leave(int, void *);
#endif /* _KERNEL */