summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_print.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1998-05-28 09:30:28 +0000
committerphk <phk@FreeBSD.org>1998-05-28 09:30:28 +0000
commitd3d65c6b2e376ac074f3ca386b6f5b70ea37636f (patch)
tree6beef0d8c93f6063bf0b9870b87a8c1ef8267cd4 /sys/ddb/db_print.c
parent3654f28d394a609d42e7000c62963c45e3bba3db (diff)
downloadFreeBSD-src-d3d65c6b2e376ac074f3ca386b6f5b70ea37636f.zip
FreeBSD-src-d3d65c6b2e376ac074f3ca386b6f5b70ea37636f.tar.gz
Some cleanups related to timecounters and weird ifdefs in <sys/time.h>.
Clean up (or if antipodic: down) some of the msgbuf stuff. Use an inline function rather than a macro for timecounter delta. Maintain process "on-cpu" time as 64 bits of microseconds to avoid needless second rollover overhead. Avoid calling microuptime the second time in mi_switch() if we do not pass through _idle in cpu_switch() This should reduce our context-switch overhead a bit, in particular on pre-P5 and SMP systems. WARNING: Programs which muck about with struct proc in userland will have to be fixed. Reviewed, but found imperfect by: bde
Diffstat (limited to 'sys/ddb/db_print.c')
-rw-r--r--sys/ddb/db_print.c28
1 files changed, 1 insertions, 27 deletions
diff --git a/sys/ddb/db_print.c b/sys/ddb/db_print.c
index f6db84f..49a580b 100644
--- a/sys/ddb/db_print.c
+++ b/sys/ddb/db_print.c
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_print.c,v 1.15 1998/05/19 11:02:23 phk Exp $
+ * $Id: db_print.c,v 1.16 1998/05/19 18:42:06 phk Exp $
*/
/*
@@ -35,8 +35,6 @@
* Miscellaneous printing.
*/
#include <sys/param.h>
-#include <sys/kernel.h>
-#include <sys/msgbuf.h>
#include <ddb/ddb.h>
#include <ddb/db_variables.h>
@@ -67,27 +65,3 @@ db_show_regs(dummy1, dummy2, dummy3, dummy4)
db_print_loc_and_inst(PC_REGS(DDB_REGS));
}
-
-DB_SHOW_COMMAND(msgbuf, db_show_msgbuf)
-{
- int i,j;
-
- if (!msgbufmapped) {
- db_printf("msgbuf not mapped yet\n");
- return;
- }
- db_printf("msgbufp = %p\n", msgbufp);
- db_printf("magic = %x, size = %d, r= %d, w = %d, ptr = %p\n",
- msgbufp->msg_magic,
- msgbufp->msg_size,
- msgbufp->msg_bufr,
- msgbufp->msg_bufx,
- msgbufp->msg_ptr);
- for (i = 0; i < msgbufp->msg_size; i++) {
- j = msgbufp->msg_ptr[(i + msgbufp->msg_bufr) % msgbufp->msg_size];
- if (j)
- db_printf("%c", j);
- }
- db_printf("\n");
-}
-
OpenPOWER on IntegriCloud