aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/device_if.m
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/device_if.m')
-rw-r--r--sys/kern/device_if.m17
1 files changed, 17 insertions, 0 deletions
diff --git a/sys/kern/device_if.m b/sys/kern/device_if.m
index 305110fc67fc..e58d39d68178 100644
--- a/sys/kern/device_if.m
+++ b/sys/kern/device_if.m
@@ -39,6 +39,11 @@
*/
INTERFACE device;
+# Needed for timestamping device probe/attach calls
+HEADER {
+ #include <sys/tslog.h>
+}
+
#
# Default implementations of some methods.
#
@@ -142,6 +147,12 @@ CODE {
* be returned to indicate the type of error
* @see DEVICE_ATTACH(), pci_get_vendor(), pci_get_device()
*/
+PROLOG {
+ TSENTER2(device_get_name(dev));
+}
+EPILOG {
+ TSEXIT2(device_get_name(dev));
+}
METHOD int probe {
device_t dev;
};
@@ -199,6 +210,12 @@ STATICMETHOD void identify {
* be returned to indicate the type of error
* @see DEVICE_PROBE()
*/
+PROLOG {
+ TSENTER2(device_get_name(dev));
+}
+EPILOG {
+ TSEXIT2(device_get_name(dev));
+}
METHOD int attach {
device_t dev;
};