summaryrefslogtreecommitdiff
path: root/usr.sbin/btrace
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2024-11-26 10:28:28 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2024-11-26 10:28:28 +0000
commit01b8ed6aa673709aaaa6fa4820957bd172cc8e1e (patch)
tree582b4cc063cb104afebb141a5742bacff70982a0 /usr.sbin/btrace
parent33e06fc8f870a119b79b076d3d69e30e98a3f5ea (diff)
Generate a single event when timers advance for more than one tick.
Also report the number of events missed due to recursions or skipped ticks to btrace(8). From Christian Ludwig.
Diffstat (limited to 'usr.sbin/btrace')
-rw-r--r--usr.sbin/btrace/btrace.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/btrace/btrace.c b/usr.sbin/btrace/btrace.c
index aa75a12f676..e755431be8c 100644
--- a/usr.sbin/btrace/btrace.c
+++ b/usr.sbin/btrace/btrace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: btrace.c,v 1.92 2024/07/09 16:08:30 mpi Exp $ */
+/* $OpenBSD: btrace.c,v 1.93 2024/11/26 10:28:27 mpi Exp $ */
/*
* Copyright (c) 2019 - 2023 Martin Pieuchot <mpi@openbsd.org>
@@ -452,6 +452,10 @@ rules_do(int fd)
fprintf(stderr, "%llu events read\n", dtst.dtst_readevt);
fprintf(stderr, "%llu events dropped\n", dtst.dtst_dropevt);
fprintf(stderr, "%llu events filtered\n", bt_filtered);
+ fprintf(stderr, "%llu clock ticks skipped\n",
+ dtst.dtst_skiptick);
+ fprintf(stderr, "%llu recursive events dropped\n",
+ dtst.dtst_recurevt);
}
}