Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ddb Implement db_show_callout() again.
details: https://anonhg.NetBSD.org/src/rev/25234746580d
branches: trunk
changeset: 499761:25234746580d
user: eeh <eeh%NetBSD.org@localhost>
date: Tue Nov 28 19:20:37 2000 +0000
description:
Implement db_show_callout() again.
diffstat:
sys/ddb/db_xxx.c | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r 8e771989c4e7 -r 25234746580d sys/ddb/db_xxx.c
--- a/sys/ddb/db_xxx.c Tue Nov 28 18:44:46 2000 +0000
+++ b/sys/ddb/db_xxx.c Tue Nov 28 19:20:37 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_xxx.c,v 1.9 2000/05/25 19:57:36 jhawk Exp $ */
+/* $NetBSD: db_xxx.c,v 1.10 2000/11/28 19:20:37 eeh Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -198,6 +198,21 @@
db_expr_t count;
char *modif;
{
+ extern struct callout_queue *callwheel;
+ extern int callwheelsize;
+ int i;
- db_printf("`show callout' not currently implemented\n");
+ for (i=0; i<callwheelsize; i++) {
+ struct callout_queue *bucket = &callwheel[i];
+ struct callout *c = TAILQ_FIRST(bucket);
+
+ if (c) db_printf("bucket %d:\n", i);
+ while (c) {
+ db_printf("%p: time %llx arg %p flags %x func %p: ",
+ c, c->c_time, c->c_arg, c->c_flags, c->c_func);
+ db_printsym((u_long)c->c_func, DB_STGY_PROC, db_printf);
+ db_printf("\n");
+ c = TAILQ_NEXT(c, c_link);
+ }
+ }
}
Home |
Main Index |
Thread Index |
Old Index